Releases: inquisitour/Knowledge-Based-Agent
First stable version
Data Processing (data_processing.py):
Connects to a PostgreSQL database using environment variables for configuration.
Manages database connections and performs operations using a connection pool.
Uses OpenAI embeddings for some processing tasks.
Interacts with AWS S3 to retrieve and process files, computing hashes to verify integrity.
Agent (agent.py):
Utilizes OpenAI models to process data and generate responses based on the input received.
Manages the generation and handling of system messages and user queries.
Interface (interface.py):
Orchestrates the flow between data preprocessing and the inference engine.
Handles AWS Lambda events, invokes the preprocessing to fetch and process data from S3, and uses the inference engine to generate responses.
Environment variables are set up and used within this script to manage keys and configurations for OpenAI and AWS resources.