Setting the file. One moment.
Subchapter 1.6
references/upload.mdMarkdown2 KBView on GitHub
Upload files or directory contents to a Pinecone Assistant.
Supported formats: .md, .txt, .pdf, .docx, .json
Not supported: Source code (.py, .js, , etc.) — Assistant is optimized for natural language documents.
.ts--assistant (required): Assistant name--source (required): File path or directory to upload--patterns (optional): Comma-separated glob patterns — default: *.md,*.txt,*.pdf,*.docx,*.json--exclude (optional): Directories to exclude — default: node_modules,.venv,.git,build,dist--metadata (optional): JSON string of additional metadata⚠️ Found 50 Python files. Assistant works with documents only — I'll skip the code files.
Found 25 Markdown and 8 PDF files to upload instead.uv run scripts/upload.py \
--assistant "assistant-name" \
--source "./docs" \
--patterns "*.md,*.pdf"node_modules, .venv, venv, .git, build, dist, __pycache__, .next, .cache
--metadata '{"source":"github","repo":"owner/repo","branch":"main"}'No files found — check patterns match file types in directory; verify path exists.
Upload failures — check file format is supported; try smaller batches.
>100 files — ask user if they want to be more selective; suggest ./docs subdirectory.