Code Monkey home page Code Monkey logo

langchain-pinecone-chatbot-application's Introduction

Langchain Pinecone Chatbot Application

Overview

This application is a chatbot built using Streamlit, Langchain, Pinecone, and OpenAI's GPT models. It leverages the capabilities of these tools and APIs to create an interactive chat interface.

Features

  • Streamlit: For creating the web application interface.
  • Langchain: Utilized for chat model interactions.
  • Pinecone: Integrated for indexing and querying data.
  • OpenAI GPT Models: Powers the conversational AI capabilities.

Installation

To set up this project, you will need Python and the necessary packages listed in requirements.txt.

  1. Clone the Repository: Clone this repository to your local machine.

  2. Install Dependencies: Run the following command to install the required packages:

    pip install -r requirements.txt

Usage

To run the application:

  1. Navigate to the project directory.

  2. Run the following command:

    streamlit run main.py
  3. The application should now be running on your local server, and you can interact with it via the provided web interface.

Configuration

  • OpenAI API Key: Ensure you have set your OpenAI API key in utils.py or as an environment variable for the application to function correctly.
  • Pinecone API Key: Set your Pinecone API key in utils.py.

File Descriptions

  • main.py: The main script for running the Streamlit application.
  • utils.py: Contains utility functions for the chatbot, including API calls to OpenAI and Pinecone.
  • requirements.txt: Lists all the Python packages that need to be installed.

Contributing

Feel free to fork this project and submit pull requests. You can also open issues for any bugs found or feature requests.

langchain-pinecone-chatbot-application's People

Contributors

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