megabots  by momegas

LLM app framework for rapid bot creation and deployment

Created 2 years ago
350 stars

Top 79.5% on SourcePulse

GitHubView on GitHub
Project Summary

Megabots simplifies the creation of production-ready LLM applications, specifically for answering questions over documents. It targets developers and researchers seeking to quickly deploy bots with features like document indexing, API exposure via FastAPI, and Gradio UIs, leveraging LangChain and Langchain-Serve.

How It Works

Megabots employs retrieval augmented generation (RAG). When a user asks a question, the system first queries a document index (created using FAISS) to find relevant information. This retrieved context, along with the original question, is then passed to an LLM (initially OpenAI models) to generate an answer. The library also supports conversational memory and integration with vector databases like Milvus.

Quick Start & Requirements

Highlighted Details

  • One-line bot creation for document Q&A.
  • Automatic API exposure with langchain-serve and UI with Gradio.
  • Supports custom prompts, conversational memory, and Milvus vectorstore.
  • Indexing can be done from local directories or saved .pkl files.

Maintenance & Community

Licensing & Compatibility

  • License: Not explicitly stated in the README.

Limitations & Caveats

  • Described as a "work in progress" with potential API changes.
  • A known issue exists where custom prompts with the sources=True flag cause the code to break.
  • Currently only supports OpenAI models and the qna-over-docs task.
Health Check
Last Commit

2 years ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.