Skip to content

feat(falkordb): add text-to-Cypher natural language retrieval component - #4157

Merged
davidsbatista merged 9 commits into
deepset-ai:mainfrom
maxdswain:falkordb-cypher-generate
Oct 28, 2026
Merged

davidsbatista merged 9 commits into
deepset-ai:mainfrom
maxdswain:falkordb-cypher-generate

Conversation

@maxdswain

@maxdswain maxdswain commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes:

  • Add FalkorDBTextToCypherRetriever to turn natural-language requests into Cypher queries using a Haystack chat generator.
  • Discover and cache a sampled FalkorDB graph schema to guide query generation.
  • Execute generated queries in read-only mode and return Haystack documents, with synchronous and asynchronous support.

How did you test it?

Added integration and unit tests.

Notes for the reviewer

Checklist

@maxdswain
maxdswain requested a review from a team as a code owner October 24, 2026 11:53
@maxdswain
maxdswain requested review from davidsbatista and removed request for a team October 24, 2026 11:53
@github-actions

Copy link
Copy Markdown
Contributor

Hi @maxdswain, thanks for your interest in contributing to Haystack! 🙏

⚠️ You currently have 3 open pull requests in this repository (#4147, #4014 and this one). Our review capacity is limited, so please hold off opening more PRs until we've had a chance to review your first 2 open PRs. This helps us give each contribution the attention it deserves. Thank you!

This is an automated message to help us keep the review queue healthy.

@github-actions github-actions Bot added topic:CI integration:falkordb type:documentation Improvements or additions to documentation labels Oct 24, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report (falkordb)

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  integrations/falkordb/src/haystack_integrations/components/retrievers/falkordb
  text_to_cypher_retriever.py
  integrations/falkordb/src/haystack_integrations/document_stores/falkordb
  document_store.py 1554-1561
Project Total  

This report was generated by python-coverage-comment-action

@davidsbatista

Copy link
Copy Markdown
Contributor

Hi @maxdswain, thanks for this, it's a well-built component! We'd like to get it merged, so I pushed a few commits directly to your branch instead of going back and forth in review

  • Non-node query results (e.g. RETURN d.content) now raise instead of becoming empty Documents. This also affects FalkorDBCypherRetriever.
  • The schema is sampled per label and per relationship type, without duplicates.
  • The nested chat generator is now warmed up.
  • New top_k and timeout params; results are deduplicated and limited.
  • document_store type is validated in init.

@davidsbatista

Copy link
Copy Markdown
Contributor

I will do one last review tomorrow before merging and doing a new release

@davidsbatista davidsbatista left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this @maxdswain I will merge and make a new release

@davidsbatista
davidsbatista merged commit 36910ec into deepset-ai:main Oct 28, 2026
13 checks passed
@maxdswain
maxdswain deleted the falkordb-cypher-generate branch October 28, 2026 23:00
@maxdswain

Copy link
Copy Markdown
Contributor Author

Thanks for implement those changes and merging @davidsbatista!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:falkordb topic:CI type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add natural-language-to-Cypher retrieval for FalkorDB

2 participants