Devrev-AI-Agent-007 is a streamlined tool for deploying AI applications. Follow these steps to get started:
- Install Dependencies: Install the required libraries using:
pip install -r requirements.txt
-
Download Seed Dataset: Download from this link: here
-
Configure File Paths:
- app.py:
Modify
retrieval_loader
with your CSV file path:retrieval_loader = CSVLoader(file_path=r"Your Path here", source_column='QUERY')
- retrieval.py:
Modify
loader
with your CSV file path:loader = CSVLoader(file_path=r"Your Path here")
- API Keys Setup: Add your API keys:
- Hugging Face API Key:
os.environ['HUGGINGFACEHUB_API_TOKEN'] = "Your Hugging Face API Key here"
- OpenAI API Key:
os.environ['OPENAI_API_KEY'] = "Your OpenAI Key here"
Get the Hugging Face API Keys from here.
- Run the Application: Execute the following command to run the app:
streamlit run app.py
-
Initial Setup: Upon launching, you'll land on the Chatbot page.
-
Navigate to Tools Management Page: Click the radio button in the sidebar to access the Tools Management Page.
-
Tool Management:
- Reset API Toolset: Click on "Reset API toolset" on the Tools Management Page.
- Add New Tools: Use the "Add New Tool" form to add tools to the API list. Multiple tools can be added.
- Update Tool Details: To update a tool's name or description, select it and make changes as needed.
- Delete Tool: Select a tool and click "Delete tool" to remove it.
- Argument Management:
- Add New Arguments: Fill in the details for new arguments in the provided form.
- Update/Delete Arguments: Select an argument to update or delete it.
- Bulk Delete: Choose multiple arguments to delete them at once.
- Finalize: Complete the necessary actions to fully utilize the interface.