Add OpenAI options and implement embedding functionality in memory se…#23
Merged
Add OpenAI options and implement embedding functionality in memory se…#23
Conversation
Closed
- 尝试参考仓库分析一样将仓库目录结构提供给ai让ai分析
…优化了代码结构和错误处理,确保系统在处理用户请求时的稳定性和可靠性。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
IsEmbeddedproperty to theDocumentFileItemandWarehouseentities, removes unused OpenAI-related fields from theWarehouseentity, 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:
bool IsEmbeddedproperty to theDocumentFileItemclass to indicate whether embedding is complete (KoalaWiki.Domains/DocumentFile/DocumentFileItem.cs).bool IsEmbeddedproperty to theWarehouseclass and removed the unusedModel,OpenAIKey, andOpenAIEndpointproperties (KoalaWiki.Domains/Warehouse.cs).Database Migrations:
20250506101108_AddEmbedded) to add theIsEmbeddedcolumn to theDocumentFileItemsandWarehousestables, and remove theModel,OpenAIKey, andOpenAIEndpointcolumns from theWarehousestable (Provider/KoalaWiki.Provider.PostgreSQL/Migrations/20250506101108_AddEmbedded.cs,Provider/KoalaWiki.Provider.PostgreSQL/Migrations/20250506101108_AddEmbedded.Designer.cs). [1] [2]PostgreSQLContextModelSnapshotto include theIsEmbeddedproperty for bothDocumentFileItemsandWarehouses, and removed the OpenAI-related properties (Provider/KoalaWiki.Provider.PostgreSQL/Migrations/PostgreSQLContextModelSnapshot.cs). [1] [2]…rvices