AutoClassed is an intelligent system designed to automatically classify suppliers and items in a procurement database. It uses advanced AI and web search capabilities to gather information, assign classification codes, and update your database with minimal human intervention.
- Automated classification of suppliers and items
- Integration with OpenAI's GPT model for intelligent processing
- Web search functionality using Google Serper API
- Concurrent processing for improved efficiency
- Compatible with SQLite and PostgreSQL databases
Before you begin, ensure you have the following:
- A computer with internet access
- Python 3.11 or higher installed (if you don't have it, download it from python.org)
- Access to your procurement database (SQLite or PostgreSQL)
- API keys for OpenAI and Google Serper (instructions for obtaining these are provided below)
-
Open your computer's terminal or command prompt.
-
Clone the repository by typing:
git clone https://github.com/your-username/autoclassed.git -
Navigate to the project directory:
cd autoclassed -
Install the required dependencies:
pip install -r requirements.txt
-
Create a file named
.envin the project directory. -
Add your API keys to the
.envfile:OPENAI_API_KEY=your_openai_api_key_here SERPER_API_KEY=your_serper_api_key_here -
If you're using a PostgreSQL database, add your database credentials to the
.envfile:DB_HOST=your_database_host DB_PORT=your_database_port DB_NAME=your_database_name DB_USER=your_database_username DB_PASSWORD=your_database_password
-
To process suppliers:
python agent_company.py -
To process items:
python agent_item.py -
To process both suppliers and items:
python agent_combo.py -
To view the results in a web interface:
streamlit run main.pyThen open your web browser and go to the URL displayed in the terminal (usually http://localhost:8501).
- Go to OpenAI's website
- Sign up or log in
- Navigate to the API section
- Generate a new API key
- Visit Serper.dev
- Sign up for an account
- Navigate to the API Keys section
- Generate a new API key
If you encounter any issues:
- Ensure all prerequisites are met
- Check that your API keys are correctly entered in the
.envfile - Verify your database connection details
- If problems persist, please open an issue on our GitHub repository
For additional help or questions, please open an issue on the GitHub repository.
Thank you for using AutoClassed! We hope this tool significantly improves your procurement data management process.