-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graph): Add Custom Retrievers for Spanner Graph RAG. (#122)
* Add Spanner Graph QA Chain * Formatted notebook. Added copyright message to prompts file. * Add missing imports for random graph name * Make input table name randomized in integration tests to avoid name collision for tests running parallely from different python environments * Provide timeout to graph cleanup * Make default timeout of 300 secs for ddl application * Increase timeout of integration test * Change integration test timeout * Minor formatting fixes * Make the ddl operations test fixture scoped for the module * Addressed review comments * Addressed a few other review comments. * Remove unused function * fix type check errors * Addressed review comments * Addressed review comments * Clear default project id from notebook * Add import statement for SpanerGraphQAChain to notebook * Add retrievers for Spanner Graph RAG * Add licence headers * Fix DATABASE name key * Fix lint error on import ordering * Fix lint errors * Few minor changes to the SpannerGraphNodeVectorRetriever * Fix lint error * Add an option to expand context graph by hops * Fix lint error * Addressed review comments * Remove expansion query options * Add backticks to property names * Change copyright year * Address review comments * Rename the retrievers. Merge the semantic retriever with the gql retriever. * Fixed lint errors * Change vertex ai versionto latest * Fix lint errors * Add documentation. Fixes the case where expands_by_hops is 0 * Add unit test for expand_by_hops=0 * Fix formatting for documentation * Addressed review comments --------- Co-authored-by: Amarnath Mullick <[email protected]>
- Loading branch information
1 parent
fd788d8
commit bf2903a
Showing
7 changed files
with
714 additions
and
46 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
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.