View Source Rag.Generation.LangChain (rag v0.1.0)
Functions to generate responses using LangChain.
Summary
Functions
Passes prompt from generation to an LLM specified by chain to generate a response.
Then, puts response in generation.
Functions
@spec generate_response(Rag.Generation.t(), LangChain.Chains.LLMChain.t()) :: Rag.Generation.t()
Passes prompt from generation to an LLM specified by chain to generate a response.
Then, puts response in generation.