GithubHelp home page GithubHelp logo

leodeveloper / chat-with-multiple-files-llamaindex Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.42 MB

Creating a chat application that can handle multiple files using LlamaIndex, OpenAI, and Streamlit involves several steps

License: MIT License

Jupyter Notebook 100.00%
chat-application chatbot directory indexeddb indexing-engine llama-index machine-learning mechine-learing nuralnetwork openai pdf python3 similarity-search streamlit vector-database vectorstore

chat-with-multiple-files-llamaindex's Introduction

Chat-with-multiple-files-llamaindex

Creating a chat application that can handle multiple files using LlamaIndex, OpenAI, and Streamlit involves several steps

Application Screenshot

Multi-File Chat Application

This repository contains a chat application that allows users to upload multiple files, processes these files to extract information, and then uses an AI model (OpenAI's GPT-4) to answer questions or provide insights based on the content of the files. The application is built using Streamlit for the front-end interface, LlamaIndex for indexing and searching through the content, and OpenAI for the natural language processing capabilities.

Features

  • Upload multiple text files.
  • Index and search content from the uploaded files.
  • Ask questions and get answers based on the content of the files using OpenAI's GPT-4.

Requirements

  • Python 3.8 or higher
  • streamlit library
  • openai library
  • llama-index library

Installation

  1. Clone the repository:

    git clone https://github.com/leodeveloper/Chat-with-multiple-files-llamaindex
    cd Chat-with-multiple-files-llamaindex
  2. Install the required Python packages:

    pip install streamlit openai llama-index
  3. Set up your OpenAI API key:

    Obtain your API key from OpenAI and set it as an environment variable or replace 'YOUR_OPENAI_API_KEY' in the script with your actual API key.

    export OPENAI_API_KEY='your-api-key'

Application Flow

  1. Upload Files: Use the file uploader to upload multiple text files.
  2. Indexing: The content of the uploaded files is read and indexed using LlamaIndex.
  3. Ask Questions: Input your questions in the chat interface.
  4. Get Answers: The application retrieves relevant content from the indexed files and uses OpenAI's GPT-4 to generate and display answers.

Example

  1. Upload Files: Select and upload multiple text files.
  2. Ask a Question: Type a question related to the content of the uploaded files.
  3. Receive an Answer: The application provides an answer based on the indexed content and AI processing.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes or improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

Contact

For any questions or suggestions, please feel free to reach out to [[email protected]].

chat-with-multiple-files-llamaindex's People

Contributors

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