Skip to content

v1.3.1

Choose a tag to compare

@Neelpatel1604 Neelpatel1604 released this 22 Dec 20:15
· 47 commits to main since this release
c8240a4

Release Notes for v1.3.1

This release introduces async client support, automatic batching for bulk operations, and file upload functionality with improved HTTP header handling.

New Features

Async Client Support (#30)

  • Add AsyncMoorchehClient for asynchronous operations
  • Full async support for all resources: AsyncDocuments, AsyncVectors, AsyncNamespaces, AsyncSearch, AsyncAnswer
  • Non-blocking I/O operations for improved performance in async applications
  • Compatible with FastAPI, aiohttp, and other async frameworks

Automatic Batching Support (#32)

  • Automatic batching for document uploads (chunks of 100 documents per request)
  • Async vector upload batching for efficient bulk operations
  • Seamless handling of large datasets without manual chunking
  • Improved performance and reduced API call overhead

File Upload Endpoint (#34)

  • Add upload_file() method to Documents and AsyncDocuments resources
  • Support for uploading files directly to text-based namespaces
  • Automatic file processing and embedding generation
  • Supported file types: .pdf, .docx, .xlsx, .json, .txt, .csv, .md
  • Maximum file size: 10MB
  • Client-side validation for file extensions and size limits

Improvements

HTTP Header Handling

  • Remove Content-Type from default headers to allow httpx to automatically set appropriate content types
  • Fix multipart/form-data handling for file uploads
  • Improve compatibility with different request types (JSON and file uploads)

Code Quality

  • Add comprehensive unit tests for async client, batching, and file upload functionality
  • Fix mypy type checking errors
  • Improve error handling and validation
  • Enhanced type hints and documentation

Documentation

  • Add async client usage examples
  • Add file upload example (examples/07_upload_file.py)
  • Update documentation with async patterns and batching best practices

Full Changelog

Full Changelog: v1.3.0...v1.3.1