-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(rag): simplify configuration and initialization (#266)
* refactor(rag): simplify configuration and initialization - Reduce configuration complexity to just an enable flag - Use default paths and collection names - Add initialization state tracking - Improve code organization and documentation * fix: add proper logging cleanup to prevent errors during shutdown * feat: add custom index path and collection support to RAGManager Makes RAGManager more flexible by allowing custom index paths and collection names to be specified during initialization, while maintaining backward compatibility with default values. - Added index_path and collection parameters to RAGManager.__init__ - Maintains defaults (~/.cache/gptme/rag and 'default' respectively) - Allows for better testing and customization of RAG functionality * test: simplify RAG tests Major refactoring of RAG tests to be more focused and maintainable: - Added reset_rag fixture to ensure clean state between tests - Simplified test cases to focus on core functionality - Removed complex mocking in favor of simpler integration tests - Improved test organization and readability * build: bump gptme-rag to 0.3.0 Required for the new custom index path and collection features in RAGManager.
- Loading branch information
Showing
7 changed files
with
84 additions
and
348 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
files = ["README.md", "Makefile"] | ||
#files = ["README.md", "Makefile", "gptme/cli.py", "docs/*.rst", "docs/*.md"] | ||
|
||
[rag] | ||
enabled = true |
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.