swiftide  by bosun-ai

Rust library for building LLM applications

created 1 year ago
524 stars

Top 61.1% on sourcepulse

GitHubView on GitHub
Project Summary

Swiftide is a Rust library for building fast, streaming indexing and querying pipelines for LLM applications, targeting developers who need efficient Retrieval Augmented Generation (RAG) capabilities. It offers modular building blocks for creating agents and data processing workflows, enabling rapid development from concept to production.

How It Works

Swiftide employs a pipeline-based architecture, allowing users to chain together various components for data ingestion, transformation, and storage. It leverages Rust's performance and async capabilities for efficient, streaming data processing. The design emphasizes modularity and extensibility, with clear traits for loaders, transformers, chunkers, embedders, and storage backends, enabling custom logic and integrations.

Quick Start & Requirements

  • Install via cargo add swiftide.
  • Requires Rust toolchain (rustup recommended).
  • OpenAI API key is needed for OpenAI integrations. Other integrations may have their own requirements.
  • See examples and documentation for detailed setup and usage.

Highlighted Details

  • Supports multiple LLM providers including OpenAI, Anthropic, Groq, and Ollama.
  • Integrates with storage solutions like Qdrant, Redis, and LanceDB.
  • Features include code-aware chunking with Tree-sitter, metadata generation, and RAGAS evaluation.
  • Offers experimental agent framework and query pipeline with hybrid search capabilities.

Maintenance & Community

  • Project is under heavy development with potential breaking changes.
  • Active development with frequent releases noted on the blog.
  • Community engagement encouraged via Discord.

Licensing & Compatibility

  • Distributed under the MIT License.
  • Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

Swiftide is in heavy development, meaning documentation may lag behind features and breaking changes are possible. Users should monitor GitHub activity and API documentation closely. Chunking before metadata enrichment can lead to OpenAI rate limit errors with faster models.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
30
Issues (30d)
0
Star History
62 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Daniel Han Daniel Han(Cofounder of Unsloth), and
1 more.

airweave by airweave-ai

0.6%
3k
Semantic MCP server for AI agents
created 7 months ago
updated 1 day ago
Feedback? Help us improve.