Skip to main content

A library to index a code repository and chat with it via LLMs.

Project description

Logo

Sage: Chat with any codebase

Discord X (formerly Twitter) Follow GitHub Repo stars GitHub License

screenshot
Our chat window, showing a conversation with the Transformers library. 🚀

Sage is like an open-source GitHub Copilot that helps you learn how a codebase works and how to integrate it into your project without spending hours sifting through the code.

Main features

  • Dead-simple setup. Follow our quickstart guide to get started.
  • Runs locally or on the cloud. When privacy is your priority, you can run the entire pipeline locally using Ollama for LLMs and Marqo as a vector store. When optimizing for quality, you can use third-party LLM providers like OpenAI and Anthropic.
  • Wide range of built-in retrieval mechanisms. We support both lightweight retrieval strategies (with nothing more but an LLM API key required) and more traditional RAG (which requires indexing the codebase). There are many knobs you can tune for retrieval to work well on your codebase.
  • Well-documented experiments. We profile various strategies (for embeddings, retrieval etc.) on our own benchmark and thoroughly document the results.

Want your repository hosted?

We're working to make all code on the internet searchable and understandable for devs. You can check out hosted app. We pre-indexed a slew of OSS repos, and you can index your desired ones by simply pasting a GitHub URL.

If you're the maintainer of an OSS repo and would like a dedicated page on Code Sage (e.g. sage.storia.ai/your-repo), then send us a message at founders@storia.ai. We'll do it for free!

Extensions & Contributions

We built the code purposefully modular so that you can plug in your desired embeddings, LLM and vector stores providers by simply implementing the relevant abstract classes.

Feel free to send feature requests to founders@storia.ai or make a pull request!

Contributors

contributors

↑ Back to Top ↑

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

storia_sage-0.1.0.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

storia_sage-0.1.0-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

Details for the file storia_sage-0.1.0.tar.gz.

File metadata

  • Download URL: storia_sage-0.1.0.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for storia_sage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48da12e4a906387822647d6e49dbe292f56346d731c3e55e583e7aaf27ed3bf8
MD5 c372c3343f9d4a54f8c901ab70c4eab1
BLAKE2b-256 2345be9232cc6a00dc30a042332d71db5246a58c6f8d02d6132f961c055b72d5

See more details on using hashes here.

File details

Details for the file storia_sage-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: storia_sage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for storia_sage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d08d8615a2271862fe7e7e00f14c85e76baf8d6c4ff61087e06c7a093aca269a
MD5 d29eed64e981e0fd96715eaadcbc23c5
BLAKE2b-256 0bb33a6e46bc2a5e88d02cce1076c6b4ea5c5a380ac23a23a86142f00d73c6d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page