Skip to content

No content in the function "get_search_results" Retriever class #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alphamol-basel opened this issue Mar 9, 2025 · 1 comment
Closed

Comments

@alphamol-basel
Copy link

Dear developers:

When i want to use the function Retriever.search function, this function cross link the get_search_results in the same class. However. there is on code in the function get_search_results. How can i slove this problem?

The file is : https://github.com/neo4j/neo4j-graphrag-python/blob/main/src/neo4j_graphrag/retrievers/base.py

There is the printscreen. In this function, the description sentense show this function will return "RawSearchResult: List of Neo4j Records and optional metadata dict" . However, there is just a "Pass" in the code section.

Image

@stellasia
Copy link
Contributor

Hi,

You're looking at the abstract base class, that do not have any default implementation for the get_search_results method. All subclasses must implement it. Check for instance the implementation for the vector retriever here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants