-
Notifications
You must be signed in to change notification settings - Fork 1
LLM Integration
peter-olai edited this page May 7, 2025
·
3 revisions
The LLM.py module is responsible for handling all interactions with the configured Large Language Model (LLM).
- Model Abstraction: Provides a consistent interface for communicating with different LLMs (e.g., OpenAI GPT models, local models).
- Prompt Engineering: May include logic for constructing effective prompts based on user input and context.
- Response Parsing: Processes the raw output from the LLM into a usable format.
-
Configuration: Loads LLM-specific settings (e.g., API keys, model names) from
config.py.
Other parts of the service, particularly the main request processing Pipeline (detailed in pipeline.py) or API route handlers, will use this module to:
- Take user input (and any RAG-retrieved context).
- Format it into a prompt.
- Send the prompt to the LLM.
- Receive and return the LLM's generated response.
(Further details on specific functions, classes, and error handling within LLM.py should be added here.)
Authors:
Peter Olai Johnsen
Tobias Fremming
Erik Le Blanc Pleym
About Chat-Service
Core Components
Development
Codebase Details
- Codebase Architecture
- Routes
- Command-py
- Config-py
- Context Upload-py
- LLM-py
- Main-py
- Pipeline-py
- Streaming WS-py
- Transcribe-py
Deployment and Operations