This project is a tool for generating answers based on prompts using the Gemini API key. It utilizes a chaining process to gather information from the Gemini API and form responses to given prompts.
-
Prompt-based Answer Generation: Given a prompt, the tool interacts with the Gemini API to collect relevant data and generate an answer.
-
Chaining Process: The tool employs a chaining process to gather additional context and refine responses, enhancing the accuracy and relevance of generated answers.
-
Customization: Users can customize the behavior of the tool by adjusting parameters and configurations to suit their specific requirements.
-
Clone the repository to your local machine:
git clone https://github.com/your_username/gemini-api-answer-generator.git
-
Navigate to the project directory:
cd gemini-api-answer-generator
-
Install dependencies:
pip install -r requirements.txt
-
Obtain Gemini API Key: Visit the Gemini website and register for an API key.
-
Configure API Key: Replace
'YOUR_API_KEY'
and'YOUR_API_SECRET'
in theconfig.py
file with your Gemini API key and secret. -
Run the tool:
python answer_generator.py
-
Follow the prompts to input your query or question.
-
View the generated answer.