{"id":19711143,"url":"https://github.com/pratikkalein/chat-with-pdf","last_synced_at":"2026-04-24T22:37:18.860Z","repository":{"id":196176889,"uuid":"663166797","full_name":"pratikkalein/chat-with-pdf","owner":"pratikkalein","description":"Simple application using Python and Streamlit using OpenAI API.","archived":false,"fork":false,"pushed_at":"2023-09-22T11:55:28.000Z","size":359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T13:05:21.196Z","etag":null,"topics":["genai","python","streamlit"],"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/pratikkalein.png","metadata":{"files":{"readme":"README.md","changelog":"history.db","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,"publiccode":null,"codemeta":null}},"created_at":"2023-07-06T17:48:03.000Z","updated_at":"2023-09-22T10:45:23.000Z","dependencies_parsed_at":"2025-02-27T16:26:27.581Z","dependency_job_id":"9cce5c86-509b-4127-90a1-27ca7a12c8d1","html_url":"https://github.com/pratikkalein/chat-with-pdf","commit_stats":null,"previous_names":["pratikkalein/chat-with-pdf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pratikkalein/chat-with-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikkalein%2Fchat-with-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikkalein%2Fchat-with-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikkalein%2Fchat-with-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikkalein%2Fchat-with-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pratikkalein","download_url":"https://codeload.github.com/pratikkalein/chat-with-pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikkalein%2Fchat-with-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["genai","python","streamlit"],"created_at":"2024-11-11T22:09:55.015Z","updated_at":"2026-04-24T22:37:18.845Z","avatar_url":"https://github.com/pratikkalein.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat With PDF\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/pratikkalein/chat-with-pdf/main/img/center.png\" /\u003e\n\u003c/p\u003e\n\nSimple application using Python and Streamlit using OpenAI API. Upload any pdf file and ask questions about it! It also supports images scans.\n\n## Screenshots\n![Deployed app](/img/prod.png)\n\n**With History and Auto generated questions**\n\n![With History and Auto generated questions](/img/history.png)\n\n## Local environment \nMake sure you have python and pip installed \n1. Clone the repo\n```bash\ngit clone https://github.com/pratikkalein/chat-with-pdf\n```\n2. Create a virtual environment\n```bash\npython3 -m venv venv\n```\n3. Activate the enviornment \n```bash\nsource /venv/bin/activate\n```\n4. Install the requirments\n```bash\npip install -r requirements.txt \n```\n5. Create .env file at the root of the project and add your Open AI API key.\n```\nOPEN_AI_API_KEY=yourapikey\n```\n6. Run\n```bash\nstreamlit run app.py\n```\n## Deploy to Google Cloud\n### Build Docker Image using Cloud Build \n\n```bash\ngcloud builds submit --tag gcr.io/gcp-project-id/chat-with-pdf  --project=gcp-project-id\n```\n\n### Deploy latest image to Cloud Run \n\nBefore running the command make sure you add your secret to the Secret Manager.\nSyntax for the --update-secrets\n```bash\n --update-secretes=ENV_VAR_NAME=SECRET_NAME:VERSION\n```\n\n```bash\ngcloud run deploy chat-with-pdf --image gcr.io/gcp-project-id/chat-with-pdf --platform managed  --project=gcp-project-id --allow-unauthenticated --region=asia-south1 --max-instances=2 --update-secrets=OPENAI_API_KEY=openai:1\n```\n\nIf you wish to modify your deployment you can refere the documentation [here](https://cloud.google.com/sdk/gcloud/reference/run/deploy).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikkalein%2Fchat-with-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikkalein%2Fchat-with-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikkalein%2Fchat-with-pdf/lists"}