Git Product home page Git Product logo

activeloop-langchain-coursebot's Introduction

πŸ€– Chat with EduChain Bot

An LLM companion for answering your questions related to the LangChain & Vector DBs in Production course brought by Activeloop

Demo πŸ•Ή

Streamlit App

educhain_bot_demo.mp4

How to use πŸ‘€

  1. Enter your OpenAI API key.
    • You can get your own OpenAI API key from here and then click on the + Create new secret key button.
  2. You can now proceed to ask questions related to the course to the chatbot.

Behind the Scenes βš™

This educational chatbot demonstrates the power of Retrieval Augmented Generation (RAG) to answer queries related to the course and provides relevant info to you by retrieving data from an extensive and detailed knowledge base. It returns a natural response to your questions along with the truth source.

Here's a summary of the scripts used for building this chatbot:

  1. data_loading.py:

    • Handles the initial data gathering and processing task where it scrapes the text data from the Langchain course website using Apify.
    • The scraped text data is then converted into numerical form (vectors) using CohereEmbeddings that the chatbot can learn from.
    • Finally, the transformed data is uploaded to Deep Lake, a data storage service, for future use.
  2. app_workflow.py:

    • Handles the retrieval and ranking of the relevant data.
    • First, it gathers the stored data from the data_loading.py file.
    • Second, it uses CohereRerank to rank and retrieve the most relevant data based on the user’s query.
      • CohereRerank is a reranking service that refines and ranks documents in alignment with a user’s search criteria.
    • Third, it also builds the conversation chain with memory, which helps in maintaining the context of the conversation.
  3. app_demo.py:

    • The main script demonstrates the working of the chatbot through a user-friendly web interface using Streamlit.
    • The chatbot then uses the stored and transformed data from Deep Lake to answer user queries.

Tech-stack πŸ› 

Key Learnings 🌱

  • Provided a deep understanding of how RAG can be used to answer queries by retrieving relevant information from a detailed knowledge base.
  • Involves scraping data from a course website, which helped in understanding how to extract and structure data from the web.
  • The use of Cohere for embedding and reranking provided insights into how these techniques can improve the relevance of the retrieved information.
  • Storing the transformed data in Deep Lake helped in understanding the importance of efficient data storage and retrieval in AI applications.
  • Demonstrated how to integrate powerful APIs and libraries like OpenAI and Langchain to build a sophisticated chatbot.
  • Highlightes the potential of AI in enhancing educational experiences, by providing a chatbot that can answer course-related queries.
  • Helped with learning project management, problem-solving, and debugging skills to bring all the components together into a working chatbot.

Credits ✨

activeloop-langchain-coursebot's People

Contributors

shruagarwal avatar

Watchers

 avatar  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.