Model_deploy

Language Model (LLM) Component

This document provides an overview of the LLM component used in the Map Action project. The LLM is responsible for generating responses to user prompts and analyzing satellite data for environmental incidents.

Key Functions

Integration with OpenAI

The LLM component uses the OpenAI API to generate responses. It initializes the OpenAI client with an API key from environment variables and interacts with the API to process chat history and generate responses.

For more detailed information on each function, refer to the llm.py file in the app/services/llm/ directory.