This API allows searching through YouTube video transcripts using vector embeddings.
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
API_KEY
: Your custom API key for access controlOPENAI_API_KEY
: Your OpenAI API key for generating embeddings- Add any other necessary keys (e.g., for your vector database)
- Run the API:
uvicorn api.main:app --reload
Send a POST request to /search/
with a JSON body:
{
"text": "Your search query here"
}