_get_docs_with_query() — langchain Function Reference
Architecture documentation for the _get_docs_with_query() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c2947ec8_d484_3d90_1d1f_a5e89c203364["_get_docs_with_query()"] 714ad545_01d2_22ce_704e_4b6490f7b443["SelfQueryRetriever"] c2947ec8_d484_3d90_1d1f_a5e89c203364 -->|defined in| 714ad545_01d2_22ce_704e_4b6490f7b443 89612ee3_d98a_9391_84e1_4fe517ec951b["_get_relevant_documents()"] 89612ee3_d98a_9391_84e1_4fe517ec951b -->|calls| c2947ec8_d484_3d90_1d1f_a5e89c203364 style c2947ec8_d484_3d90_1d1f_a5e89c203364 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/retrievers/self_query/base.py lines 295–300
def _get_docs_with_query(
self,
query: str,
search_kwargs: dict[str, Any],
) -> list[Document]:
return self.vectorstore.search(query, self.search_type, **search_kwargs)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _get_docs_with_query() do?
_get_docs_with_query() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/retrievers/self_query/base.py.
Where is _get_docs_with_query() defined?
_get_docs_with_query() is defined in libs/langchain/langchain_classic/retrievers/self_query/base.py at line 295.
What calls _get_docs_with_query()?
_get_docs_with_query() is called by 1 function(s): _get_relevant_documents.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free