Back to Chat

Knowledge Base

Add documents using the Python ingestion script

1

Add your PDF files

Place your PDF documents in the documents/ folder

2

Set up environment

Create a .env file with your API keys:

OPENAI_API_KEY=your_key
PINECONE_API_KEY=your_key
3

Run the ingestion script

Execute the Python script to process your PDFs:

pip install -r requirements.txt
python ingest.py
4

Start chatting!

Your documents are now indexed. Go back to the chat and ask questions.

PDF parsing in serverless environments has limitations. The Python script provides reliable document processing.