{"id":45157444,"url":"https://github.com/couchbase-examples/rag-aws-bedrock-serverless","last_synced_at":"2026-02-20T05:02:50.769Z","repository":{"id":253801411,"uuid":"822480304","full_name":"couchbase-examples/rag-aws-bedrock-serverless","owner":"couchbase-examples","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-28T15:13:07.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-29T16:34:52.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/couchbase-examples.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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T08:30:40.000Z","updated_at":"2024-08-28T15:13:10.000Z","dependencies_parsed_at":"2024-08-19T17:01:57.858Z","dependency_job_id":"4ee587eb-6569-4e78-bf67-fcf3f7bee563","html_url":"https://github.com/couchbase-examples/rag-aws-bedrock-serverless","commit_stats":null,"previous_names":["couchbase-examples/rag-aws-bedrock-serverless"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/couchbase-examples/rag-aws-bedrock-serverless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-examples%2Frag-aws-bedrock-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-examples%2Frag-aws-bedrock-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-examples%2Frag-aws-bedrock-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-examples%2Frag-aws-bedrock-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase-examples","download_url":"https://codeload.github.com/couchbase-examples/rag-aws-bedrock-serverless/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase-examples%2Frag-aws-bedrock-serverless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29641929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T03:21:14.183Z","status":"ssl_error","status_checked_at":"2026-02-20T03:18:24.455Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-02-20T05:02:41.270Z","updated_at":"2026-02-20T05:02:50.763Z","avatar_url":"https://github.com/couchbase-examples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDF Chat App with Couchbase, AWS Bedrock, and Serverless Architecture\n\nThis application demonstrates how to build a chat application that allows users to interact with a bot knowledgeable about uploaded PDF documents. It utilizes a Retrieval Augmented Generation (RAG) framework.\n\nFor a detailed, step-by-step tutorial, please refer to the [Couchbase Developer Portal](https://developer.couchbase.com/tutorial-bedrock-serverless-pdf-chat).\n\n## Architecture\n\nThe application employs a serverless architecture on AWS, leveraging services like AWS Lambda, API Gateway, and Bedrock, with Couchbase for data storage and eventing.\n\n![Application Architecture](backend_architecture.png)\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed and configured:\n\n*   AWS CLI\n*   Node.js and npm (for AWS CDK)\n*   Python (version specified in `.python-version`)\n*   Docker\n*   An AWS account with appropriate permissions\n*   A Couchbase Capella cluster\n\n## Installation\n\nThe Detailed tutorial is present [here](https://developer.couchbase.com/tutorial-bedrock-serverless-pdf-chat)\n\n## Deploy AWS Backend\n\nDeploy the entire AWS backend infrastructure using the AWS CDK:\n\n```bash\ncdk deploy --all\n```\n\nThis command will provision all the necessary AWS resources.\n\n## File Structure\n\n*   `src/`: Contains the application source code.\n    *   `ui/`: Frontend Streamlit application.\n    *   `cb_eventing/`: Couchbase Eventing function(s).\n    *   `lambdas/`: AWS Lambda function code for ingestion and chat functionalities.\n*   `chatCDK/`: AWS CDK stack for the chat-related infrastructure.\n*   `ingestCDK/`: AWS CDK stack for the data ingestion infrastructure.\n*   `app.py`: Main AWS CDK application file that synthesizes the stacks.\n*   `cdk.json`: CDK configuration file.\n\n## Usage\n\n1.  **Upload PDFs:** Use the provided mechanism to ingest PDF documents. The ingestion pipeline will process these documents, generate embeddings, and store them.\n2.  **Access the Chat UI:** Start the Streamlit frontend and navigate to the application URL.\n3.  **Interact with the Bot:** Ask questions related to the content of the uploaded PDFs!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase-examples%2Frag-aws-bedrock-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase-examples%2Frag-aws-bedrock-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase-examples%2Frag-aws-bedrock-serverless/lists"}