index_document
Index PDF files into a local RAG store, enabling immediate retrieval of document context through vector search.
Instructions
Index a PDF into the local RAG store: PyMuPDF text -> LangChain chunking -> local fastembed embeddings -> FAISS. Call once per document, then use search_context for queries. Re-indexing a changed file replaces its chunks (set replace=false to append).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | ||
| pdf_path | Yes | ||
| chunk_size | No | ||
| chunk_overlap | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |