fake_llm() — langchain Function Reference
Architecture documentation for the fake_llm() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a1ec7b4b_d68f_cda3_4188_92b4674d24f9["fake_llm()"] d1736cc5_5d04_ec6a_a15a_4a8a730c63dd["test_base.py"] a1ec7b4b_d68f_cda3_4188_92b4674d24f9 -->|defined in| d1736cc5_5d04_ec6a_a15a_4a8a730c63dd style a1ec7b4b_d68f_cda3_4188_92b4674d24f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py lines 79–91
def fake_llm() -> FakeLLM:
return FakeLLM(
queries={
"1": """```json
{
"query": "test",
"filter": null
}
```""",
"bar": "baz",
},
sequential_responses=True,
)
Domain
Subdomains
Source
Frequently Asked Questions
What does fake_llm() do?
fake_llm() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py.
Where is fake_llm() defined?
fake_llm() is defined in libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py at line 79.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free