Giter Club home page Giter Club logo

embedchain's Introduction

embedchain

PyPI Discord Twitter Substack Open in Colab

Embedchain is a framework to easily create LLM powered bots over any dataset. If you want a javascript version, check out embedchain-js

๐Ÿ”ง Quick install

pip install embedchain

For Windows, you'll also need C++ build tools installed.

๐Ÿ”ฅ Latest

  • [2023/07/19] Released support for ๐Ÿฆ™ llama2 model. Start creating your llama2 based bots like this:

    import os
    
    from embedchain import Llama2App
    
    os.environ['REPLICATE_API_TOKEN'] = "REPLICATE API TOKEN"
    
    zuck_bot = Llama2App()
    
    # Embed your data
    zuck_bot.add("https://www.youtube.com/watch?v=Ff4fRgnuFgQ")
    zuck_bot.add("https://en.wikipedia.org/wiki/Mark_Zuckerberg")
    
    # Nice, your bot is ready now. Start asking questions to your bot.
    zuck_bot.query("Who is Mark Zuckerberg?")
    # Answer: Mark Zuckerberg is an American internet entrepreneur and business magnate. He is the co-founder and CEO of Facebook.

๐Ÿ” Demo

Try out embedchain in your browser:

Open in Colab

๐Ÿ“– Documentation

The documentation for embedchain can be found at docs.embedchain.ai.

๐Ÿ’ป Usage

Embedchain empowers you to create chatbot models similar to ChatGPT, using your own evolving dataset.

Queries

For example, you can use Embedchain to create an Elon Musk bot using the following code:

import os
from embedchain import App

# Create a bot instance
os.environ["OPENAI_API_KEY"] = "YOUR API KEY"
elon_bot = App()

# Embed online resources
elon_bot.add("https://en.wikipedia.org/wiki/Elon_Musk")
elon_bot.add("https://tesla.com/elon-musk")
elon_bot.add("https://www.youtube.com/watch?v=MxZpaJK74Y4")

# Query the bot
elon_bot.query("How many companies does Elon Musk run?")
# Answer: Elon Musk runs four companies: Tesla, SpaceX, Neuralink, and The Boring Company

๐Ÿค Contributing

Contributions are welcome! Please check out the issues on the repository, and feel free to open a pull request. For more information, please see the contributing guidelines.

For more refrence, please go through Development Guide and Documentation Guide.

Citation

If you utilize this repository, please consider citing it with:

@misc{embedchain,
  author = {Taranjeet Singh},
  title = {Embedchain: Framework to easily create LLM powered bots over any dataset},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/embedchain/embedchain}},
}

embedchain's People

Contributors

taranjeet avatar cachho avatar aaishikdutta avatar deshraj avatar sahilyadav902 avatar aryankhanna475 avatar ianupamsingh avatar jonasiwnl avatar pfython avatar rayhanpatel avatar ahnedeee avatar gasolin avatar alessandropanzieri avatar satya131113 avatar candidosales avatar dev-khant avatar girish-07 avatar harin329 avatar jesse-c avatar pecunia201 avatar mark-watson avatar mrbusche avatar 1mikemakuch avatar pc9 avatar rohitgr7 avatar dumoedss avatar shashank42 avatar tommyzihao avatar juanelodev avatar limboinf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.