parrot_retriever.py — langchain Source File
Architecture documentation for parrot_retriever.py, a python file in the langchain codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 246f0155_a1ac_d5ed_42e5_f441af3b49d3["parrot_retriever.py"] c554676d_b731_47b2_a98f_c1c2d537c0aa["langchain_core.documents"] 246f0155_a1ac_d5ed_42e5_f441af3b49d3 --> c554676d_b731_47b2_a98f_c1c2d537c0aa 38bc5323_3713_7377_32f8_091293bea54b["langchain_core.retrievers"] 246f0155_a1ac_d5ed_42e5_f441af3b49d3 --> 38bc5323_3713_7377_32f8_091293bea54b style 246f0155_a1ac_d5ed_42e5_f441af3b49d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_core.documents import Document
from langchain_core.retrievers import BaseRetriever
class FakeParrotRetriever(BaseRetriever):
"""Test util that parrots the query back as documents."""
def _get_relevant_documents( # type: ignore[override]
self,
query: str,
) -> list[Document]:
return [Document(page_content=query)]
async def _aget_relevant_documents( # type: ignore[override]
self,
query: str,
) -> list[Document]:
return [Document(page_content=query)]
Domain
Subdomains
Classes
Dependencies
- langchain_core.documents
- langchain_core.retrievers
Source
Frequently Asked Questions
What does parrot_retriever.py do?
parrot_retriever.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What does parrot_retriever.py depend on?
parrot_retriever.py imports 2 module(s): langchain_core.documents, langchain_core.retrievers.
Where is parrot_retriever.py in the architecture?
parrot_retriever.py is located at libs/langchain/tests/unit_tests/retrievers/parrot_retriever.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/langchain/tests/unit_tests/retrievers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free