knowledge: support pluggable resource and graph stores - #2420
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2420 +/- ##
===================================================
- Coverage 89.94234% 89.81025% -0.13210%
===================================================
Files 1203 1211 +8
Lines 218878 221075 +2197
===================================================
+ Hits 196864 198548 +1684
- Misses 13804 14082 +278
- Partials 8210 8445 +235
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Stores/WithStoresconfiguration for vector, graph, and resource backendsresourcestore.Storeplus Agent-facing APIs for listing sources, browsing directory trees, reading line ranges, and grepping persisted textsource.ResourceSourcecapability and implement it for file, directory, URL, auto, and repository sourcessource_id, resource path, and best-effort line ranges to vector document metadatagraphstore.Searchercapability and close all configured stores onceNotes
WithVectorStorebehavior remains supportedvector store not configuredwhen no vector backend existssource_idplus a canonical source-relative pathTesting
go test ./knowledge/... -count=1go test -race ./knowledge ./knowledge/source/file ./knowledge/source/dir ./knowledge/source/url ./knowledge/source/auto ./knowledge/source/repo -count=1go vet ./knowledge/...typosgit diff --check