feat: add Dakera document store integration#3519
Open
ferhimedamine wants to merge 1 commit into
Open
Conversation
Adds `dakera-haystack` under integrations/dakera/: a DakeraDocumentStore (sync + async) backed by Dakera's vector-namespace API, plus a DakeraEmbeddingRetriever. Registers the integration in the labeler, coverage workflow, README inventory, and a per-integration CI workflow. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
|
I have read the CLA Document and I hereby sign the CLA |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
Related Issues
New integration — no prior issue. Happy to open a tracking issue if the team prefers.
Proposed Changes
This PR adds a new integration,
dakera-haystack(integrations/dakera/), that lets Haystack pipelines store and retrieve documents from Dakera — a self-hosted memory server that provides persistent, decay-weighted vector recall.Components
DakeraDocumentStore(sync + async) — implements the standard document-store surface (count_documents,write_documents,filter_documents,delete_documents, plus_embedding_retrieval) and their_asynccounterparts. It drives Dakera's raw vector-namespace API (upsert/query/delete/get_namespace/configure_namespace), so embeddings are supplied by any Haystack embedder while Dakera handles storage and similarity search — the same model as the other cloud/self-hosted vector-store integrations.DakeraEmbeddingRetriever— a@componentfor dense retrieval withrun/run_asyncand fullFilterPolicysupport.Design notes
url(defaulthttp://localhost:3000, the port used by thedakera-deploydocker-compose stack) plus anapi_keySecretfromDAKERA_API_KEY. No metered/hosted secret.configure_namespace(upsert semantics) when absent.filters.pyconverts Haystack's filter syntax into Dakera's MongoDB-style DSL ({"field": {"$eq": ...}},$and/$or,$in/$nin, comparison operators), mirroring the approach used by the Pinecone/Qdrant document stores.contentmetadata field..github/labeler.yml,.github/workflows/CI_coverage_comment.yml, the rootREADME.mdinventory table, and a per-integration.github/workflows/dakera.yml.How did you test it?
DakeraClient) covering init/lazy-init, namespace adoption vs. creation,to_dict/from_dictround-trips, metadata validation, document↔vector conversion, dummy-vector handling, the full filter converter, and the retriever. All green.test_integration.py) exercise a real write → count → embedding-retrieval → filter → delete round-trip against a live server; they auto-skip unlessDAKERA_URLis set (start a server withdakera-deploy).haystack-ai 2.30.2anddakera 0.12.8:hatch run test:unit→ 48 passed,hatch run test:types→ clean,ruff check/ruff format --check→ clean.Notes for the reviewer
dakera(no hyphen) per the format check; the PyPI package name isdakera-haystack.dakera-deploy), so thedakera.ymlintegration step is a no-op skip in CI until aDAKERA_URLis provided — unit tests, lint, and types run on every PR.Checklist
feat:)