{"id":18966977,"url":"https://github.com/subhangisati/langchat-explorer","last_synced_at":"2026-04-04T04:30:16.943Z","repository":{"id":221022340,"uuid":"753222995","full_name":"SubhangiSati/LangChat-Explorer","owner":"SubhangiSati","description":"\"LangChat Explorer: Your intuitive document companion. Effortlessly explore vast information with natural language conversations. Simplify queries, gain insights, and embark on a seamless journey of knowledge discovery. Unleash the power of language with LangChat Explorer.\"","archived":false,"fork":false,"pushed_at":"2024-02-10T06:18:15.000Z","size":482,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T06:14:11.908Z","etag":null,"topics":["api","deep-learning","document-retrieval","generative-ai","llms","machine-learning","pdf-document-processor","python3","q-and-a-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SubhangiSati.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-05T17:50:05.000Z","updated_at":"2024-11-26T16:05:26.000Z","dependencies_parsed_at":"2024-02-10T07:25:46.883Z","dependency_job_id":"8c83dafb-324c-4c56-88bb-b547d085bf4a","html_url":"https://github.com/SubhangiSati/LangChat-Explorer","commit_stats":null,"previous_names":["subhangisati/langchat-explorer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubhangiSati%2FLangChat-Explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubhangiSati%2FLangChat-Explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubhangiSati%2FLangChat-Explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubhangiSati%2FLangChat-Explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SubhangiSati","download_url":"https://codeload.github.com/SubhangiSati/LangChat-Explorer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239964515,"owners_count":19725952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","deep-learning","document-retrieval","generative-ai","llms","machine-learning","pdf-document-processor","python3","q-and-a-bot"],"created_at":"2024-11-08T14:39:16.379Z","updated_at":"2026-04-04T04:30:16.912Z","avatar_url":"https://github.com/SubhangiSati.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LangChain Explorer\n\n## Overview\n\nThis Streamlit web application, LangChain Explorer, leverages LangChain's powerful capabilities for question answering and information retrieval. It enables users to input queries and receive relevant answers from a collection of PDF documents. The application employs various language models and embedding techniques to provide accurate and context-aware responses.\n\n## Prerequisites\n\n- Python 3.x\n- Streamlit\n- langchain library\n- Hugging Face Transformers\n- PyTorch (if using GPU)\n\n## Installation\n\nEnsure you have the required dependencies installed using:\n\n```bash\npip install streamlit langchain torch\n```\n\nAdditionally, you may need to install the Hugging Face Transformers library:\n\n```bash\npip install transformers\n```\n\n## Usage\n\n1. Download the PDF documents and place them in a directory (replace 'data/' with the actual directory path).\n2. Run the Streamlit app using the following command:\n\n```bash\nstreamlit run langchain_explorer.py\n```\n\n3. Enter your query in the input box and click the \"Submit\" button to receive relevant answers.\n\n## Code Structure\n\n- **Document Loading and Splitting:**\n  - PDF documents are loaded from a specified directory using LangChain's `PyPDFLoader` and split into text chunks.\n\n- **Embedding and Vector Store:**\n  - LangChain utilizes Hugging Face embeddings to convert text chunks into embeddings.\n  - A FAISS Vector Store is created from the embeddings.\n\n- **Question Answering Chain:**\n  - LangChain's `RetrievalQA` is configured to retrieve relevant information from the vector store.\n  - A language model (LLM) is used to generate answers based on the retrieved information.\n\n- **Streamlit App:**\n  - A Streamlit web application allows users to input queries and receive real-time answers.\n\n## Steps to Run\n\n1. Configure the data path, model paths, and other parameters according to your setup.\n\n2. Run the Streamlit app script:\n\n```bash\nstreamlit run langchain_explorer.py\n```\n\n3. Open the provided local URL in your web browser.\n\n## Customization\n\n- Adjust the data path, model paths, and other configurations based on your document collection and language model choices.\n\n## License\n\nThis code is licensed under the [MIT License](LICENSE).\n\nFeel free to customize and use this code for your question answering and information retrieval tasks. If you find it helpful, consider providing attribution to the original source.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhangisati%2Flangchat-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhangisati%2Flangchat-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhangisati%2Flangchat-explorer/lists"}