Code Monkey home page Code Monkey logo

saic-fadi212's Introduction

Car Search Chat Bot

This repository contains the code and documentation for a sophisticated car search chatbot with advanced functionalities, leveraging vector databases and Large Language Models (LLMs). Below, you'll find a detailed overview of the project's functionalities and how to get started.

Features

  1. Vector Creation for Car Documents:

    • Create vectors for car documents to enable efficient and accurate document retrieval.
  2. Index Creation in ChromaDB:

    • Organize and manage vectors by creating an index in ChromaDB and upserting (updating and inserting) these vectors locally.
  3. LLM Integration:

    • Integrate a Large Language Model (LLM) to enhance the chatbot's ability to understand and generate human-like responses.
  4. Document Retriever Creation:

    • Set up a retriever to fetch vectors from ChromaDB, ensuring relevant information is readily accessible.
  5. Integration with LangChain:

    • Use the create_stuff_documents_chain function from LangChain to integrate our prompt and LLM, forming a cohesive unit.
  6. Retrieval Chain Construction:

    • Create a retrieval chain to facilitate seamless communication between the LLM, document retriever, and the prompt.
  7. Conversation History Management:

    • Use LangChain's history_langchain_format to store conversation history, allowing the chatbot to perform actions or generate messages based on previous human responses.
  8. Secondary LLM for User Information Extraction:

    • After completing a conversation, pass all messages to a second LLM to extract the user's name and email, validate it, and provide the output in the desired format.
  9. Local Storage of Information:

    • Store the extracted and validated user information in a local directory.

Getting Started

Build Image

  • docker build --build-arg OPENAI_API_KEY="api-key" -t chatbot .

Run Docker image

  • docker run chatbot

Prerequisites

  • Python 3.10
  • Required Python libraries (detailed in requirements.txt)

saic-fadi212's People

Contributors

fadi212 avatar

Watchers

 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.