{"id":16505096,"url":"https://github.com/aahnik/llm-pdf-chat","last_synced_at":"2025-10-28T00:32:27.449Z","repository":{"id":229402576,"uuid":"769258580","full_name":"aahnik/llm-pdf-chat","owner":"aahnik","description":"Chat with LLMs using PDFs as context! Experimental exploration: FastAPI + Streamlit + Langchain","archived":true,"fork":false,"pushed_at":"2024-03-24T03:27:07.000Z","size":262,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T03:41:45.687Z","etag":null,"topics":[],"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/aahnik.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-03-08T17:08:30.000Z","updated_at":"2024-06-30T00:13:17.000Z","dependencies_parsed_at":"2024-03-24T05:36:21.053Z","dependency_job_id":null,"html_url":"https://github.com/aahnik/llm-pdf-chat","commit_stats":null,"previous_names":["aahnik/llm-pdf-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aahnik%2Fllm-pdf-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aahnik%2Fllm-pdf-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aahnik%2Fllm-pdf-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aahnik%2Fllm-pdf-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aahnik","download_url":"https://codeload.github.com/aahnik/llm-pdf-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238578843,"owners_count":19495457,"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":[],"created_at":"2024-10-11T15:09:19.527Z","updated_at":"2025-10-28T00:32:22.075Z","avatar_url":"https://github.com/aahnik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# llm-pdf-chat\n\nFastAPI + Streamlit + Langchain!\n\n## Running Locally\n\nMake sure to have [`poetry` package manger](https://python-poetry.org/)\ninstalled locally.\n\nConfigure the `.env` file as per the `.env.template`\n\n- Install all the dependancies locally:\n\n    ```shell\n    poetry install\n    poetry shell # activate the virtual environment\n    ```\n\n- To start the FastAPI backend server:\n\n    ```shell\n    # first make sure you have a mongo db server up and running\n    # and that you have set the connection string in your .env file\n    cd server\n    uvicorn main:app --reload\n    # --reload if you are developing and changing the source files\n    ```\n\n    This would start running the API on your [`localhost:8000`](http://localhost:8000)\n    and\n    you can access the Swagger Docs at [`/docs`](http://localhost:8000/docs) endpoint.\n\n- To start the streamlit web-interface:\n\n    ```shell\n    cd client\n    streamlit run app.py\n    ```\n\n    This would start the streamlit app at [`localhost:8501`](http://localhost:8501).\n\n## Files Directory\n\n\u003e **Note**: Files are shared between the streamlit and FastAPI code.\n\n- It is expected that both the processes are running on the same machine.\n- The environment variable, `FILES_STORAGE_DIR`\nis used by both the streamlit and FastAPI code.\n- The files uploaded from the streamlit interface are stored in this directory,\nand are accessed by langchain running in the server code of FastAPI.\n- Either write an absolute path,\nor the path must be wrt the parent of the client or server dirs. like `../uploaded_files/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faahnik%2Fllm-pdf-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faahnik%2Fllm-pdf-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faahnik%2Fllm-pdf-chat/lists"}