This repository demonstrates how to implement dynamic few-shot prompting for AI agents in customer support. The solution dynamically selects relevant examples based on user input, optimizing response accuracy and efficiency.
- Python 3.x
- HuggingFace account with an API token
-
Clone the repository:
git clone https://github.com/yourusername/dynamic-few-shot-prompting.git cd dynamic-few-shot-prompting
-
Install dependencies:
pip install -r requirements.txt
-
Set up your HuggingFace API token:
export HUGGINGFACEHUB_API_TOKEN=your_api_token
The step-by-step code implementation is explained in the blog post. Follow the instructions to set up embedding models, create vector stores, generate dynamic prompts, and get AI responses.
Feel free to fork the repository, make improvements, and submit pull requests. If you encounter issues or have suggestions, open an issue.