Skip to content

Add OpenAI options and implement embedding functionality in memory se…#23

Merged
239573049 merged 4 commits intomainfrom
feature/chat
May 7, 2025
Merged

Add OpenAI options and implement embedding functionality in memory se…#23
239573049 merged 4 commits intomainfrom
feature/chat

Conversation

@239573049
Copy link
Member

This pull request introduces a new IsEmbedded property to the DocumentFileItem and Warehouse entities, removes unused OpenAI-related fields from the Warehouse entity, and includes the necessary database migration files to reflect these changes. These updates aim to streamline the data model and add functionality for tracking embedded status.

Entity Updates:

  • Added a new bool IsEmbedded property to the DocumentFileItem class to indicate whether embedding is complete (KoalaWiki.Domains/DocumentFile/DocumentFileItem.cs).
  • Added a new bool IsEmbedded property to the Warehouse class and removed the unused Model, OpenAIKey, and OpenAIEndpoint properties (KoalaWiki.Domains/Warehouse.cs).

Database Migrations:

  • Added a migration file (20250506101108_AddEmbedded) to add the IsEmbedded column to the DocumentFileItems and Warehouses tables, and remove the Model, OpenAIKey, and OpenAIEndpoint columns from the Warehouses table (Provider/KoalaWiki.Provider.PostgreSQL/Migrations/20250506101108_AddEmbedded.cs, Provider/KoalaWiki.Provider.PostgreSQL/Migrations/20250506101108_AddEmbedded.Designer.cs). [1] [2]
  • Updated the PostgreSQLContextModelSnapshot to include the IsEmbedded property for both DocumentFileItems and Warehouses, and removed the OpenAI-related properties (Provider/KoalaWiki.Provider.PostgreSQL/Migrations/PostgreSQLContextModelSnapshot.cs). [1] [2]…rvices

@239573049 239573049 merged commit ac5c990 into main May 7, 2025
@239573049 239573049 deleted the feature/chat branch May 7, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant