--- title: Know My Doc emoji: 📈 colorFrom: yellow colorTo: pink sdk: gradio sdk_version: 3.22.1 app_file: app.py pinned: false license: mit --- # KnowMyDoc ![Python version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9-blue?style=flat-square) ![License](https://img.shields.io/badge/license-MIT-green?style=flat-square) ![Commit Activity](https://img.shields.io/github/last-commit/jainsid24/neural-network-simulation?style=flat-square) ![Repo Size](https://img.shields.io/github/repo-size/jainsid24/neural-network-simulation?style=flat-square) ![OpenAI API key](https://img.shields.io/badge/OpenAI%20API%20key-required-red?style=flat-square) ![Docker](https://img.shields.io/badge/docker-available-blue?style=flat-square) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black?style=flat-square)
KnowMyDoc Chat
KnowMyDoc is a GPT3.5 powered Python-based conversational AI tool that enables users to build a reference enabled chatbot by utilizing advanced machine learning techniques and natural language processing (NLP) algorithms. The utility is fully containerized and API-driven, which allows for a seamless and rapid chatbot creation experience. KnowMyDoc leverages the [LangChain](https://github.com/hwchase17/langchain) library for LLM prompt engineering and conversation chaining. Users can easily customize the chatbot's prompts and personalize its responses based on the context and tone of the conversation. KnowMyDoc's LLM-based approach ensures that the chatbot can maintain a consistent and coherent conversation even when dealing with large amounts of data and provide relevant sources per response. The chatbots also remain in the confines of provided knowledge. In addition, KnowMyDoc utilizes the Chroma vector similarity search engine to enable fast and efficient lookup of relevant data. By creating embeddings of users' documents and web pages, KnowMyDoc can quickly identify and retrieve the most relevant information for the user's queries. Other features of KnowMyDoc include: * Support for loading documents from local data sources and web urls * Support for persona and message tone * AI qa limited to knowledge sources * Text splitting to optimize indexing and similarity search * NLTK support for text processing and tokenization Support for OpenAI embeddings and vector stores, including Chroma * Logging support for troubleshooting and analysis ## Getting Started To use this utility: 1. Clone the repository ``` git clone https://github.com/jainsid24/know-my-doc ``` 2. Build the Docker image by running the following command in the terminal: ``` docker build -t know-my-doc:latest . ``` 3. Once the image is built, run the Docker container using the following command: ``` docker run -p 5001:5001 know-my-doc ``` 4. Use curl/postman for API call ``` curl --header "Content-Type: application/json" \ --request POST \ --data '{"question": "When was JWST launched?"}' \ http://