Document Management
Adding, updating, and managing documents in Julep
Overview
The Julep Document Store allows you to store, manage, and retrieve documents that can be used by agents and tasks. This guide covers how to effectively manage documents in your Julep applications.
Creating Documents
Add documents to the store using the SDK:
Python
JavaScript
Document Types
Julep supports various document types:
-
Text Documents
- Plain text
- Markdown
- HTML
-
Structured Documents
- JSON
- YAML
- XML
-
Binary Documents
- PDF (with automatic text extraction)
- Word documents
- Images (with OCR capabilities)
Document Management
Listing Documents
Python
Updating Documents
Python
Deleting Documents
Python
Document Processing
Chunking
Control how documents are split into chunks:
Python
Metadata Management
Add and update document metadata:
Python
Document Access Control
Scoping Documents
Control document access:
Python
Access Patterns
Configure document access patterns:
Python
Best Practices
-
Document Organization
- Use clear, descriptive titles
- Add comprehensive metadata
- Organize documents by type and purpose
-
Content Management
- Keep documents focused and single-purpose
- Update content atomically
- Maintain version history in metadata
-
Performance
- Use appropriate chunk sizes
- Index important metadata fields
- Clean up unused documents
Example: Complex Document Management
Here’s an example of advanced document management:
Python