app#
Functions for Streamlit applications
Functions
|
From the user query this retrieves the context, setup the prompt, and call the LLM API to generate the response. |
|
Generate the RAG prompt |
- app.call_llm(user_query: str) Generator[str, None, None] [source]#
From the user query this retrieves the context, setup the prompt, and call the LLM API to generate the response.
Parameters#
- user_querystr
The user query.
Returns#
- llm responseGenerator[str]
Yields a string generator containing the live LLM response.