forked from AnswerDotAI/RAGatouille
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Document metadata, document IDs, delete from index and tests (A…
…nswerDotAI#36) * first pass changes to include document metadata * Added working tests for all metadata and document id functionality except for add_to_index and delete_from_index * Added working delete_from_index functionality * Fixed tests and functionality for add_to_index, and updated the intro notebook * Updated docs and doc strings * Updated metadata return logic to account for possible documents in the collection without metadata * Added check for document metadata length vs documents * - Reverted names - Made document ids independent of collection and saved as it's own map file - Added full document return flag - Updated tests * - Fixed tests - Updated README and basic usage notebook - Removed return_entire_source_document functionaliity because document splitting introduces overlaps * Updated with ruff import sorting * Added ruff ignore for test fixture setup * renamed test file to match other files better and added TODOs to move tests * fix: formatted files that failed ruff CI check * style: formatted files that failed ruff CI check * chore: remove code duplication and ensure process_corpus can run indepently * chore: typo --------- Co-authored-by: bclavie <[email protected]>
- Loading branch information
Showing
8 changed files
with
693 additions
and
415 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 |
---|---|---|
|
@@ -124,4 +124,6 @@ archive/ | |
|
||
*/.ragatouille | ||
|
||
local/ | ||
local/ | ||
|
||
.vscode/ |
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
Large diffs are not rendered by default.
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
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
Oops, something went wrong.