Spaces:
Runtime error
Runtime error
|
Download docs/development/data-components.md from Leodass1433/RAG-TechXfluence: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/Leodass1433/RAG-TechXfluence/resolve/main/docs/development/data-components.md
- Command line
-
hf download hf://spaces/Leodass1433/RAG-TechXfluence/docs/development/data-components.md
-
curl -L -o data-components.md https://huggingface.co/spaces/Leodass1433/RAG-TechXfluence/resolve/main/docs/development/data-components.md
1.03 kB
| # Data & Data Structure Components | |
| The data & data structure components include: | |
| - The `Document` class. | |
| - The document store. | |
| - The vector store. | |
| ## Data Loader | |
| - PdfLoader | |
| - Layout-aware with table parsing PdfLoader | |
| - MathPixLoader: To use this loader, you need MathPix API key, refer to [mathpix docs](https://docs.mathpix.com/#introduction) for more information | |
| - OCRLoader: This loader uses lib-table and Flax pipeline to perform OCR and read table structure from PDF file (TODO: add more info about deployment of this module). | |
| - Output: | |
| - Document: text + metadata to identify whether it is table or not | |
| ``` | |
| - "source": source file name | |
| - "type": "table" or "text" | |
| - "table_origin": original table in markdown format (to be feed to LLM or visualize using external tools) | |
| - "page_label": page number in the original PDF document | |
| ``` | |
| ## Document Store | |
| - InMemoryDocumentStore | |
| ## Vector Store | |
| - ChromaVectorStore | |
| - InMemoryVectorStore | |