Building a Personal Notes Assistant with RAG, Amazon Bedrock, and Pinecone
说明与用途
使用RAG、Amazon Bedrock和Pinecone构建的个人笔记助手,实现了对上传的.txt文件进行快速、私密的信息检索。
问题
Users struggle to locate specific information within hundreds of personal notes, wasting time searching manually.
结果
The system provides a private, accurate, and efficient way to query personal notes using RAG, eliminating manual search and ensuring answers are grounded in the user's own documents.
工作流
- Upload .txt file to /ingest endpoint
- Validate file type, size, encoding, and content
- Store original file in private S3 bucket with unique UUID key
- Chunk text into overlapping snippets
- Generate 512-dim embeddings with Amazon Titan
- Index embeddings and metadata in Pinecone
- Receive question at /ask endpoint
- Embed question with Amazon Titan
- Retrieve top 3 matching snippets from Pinecone
- Assemble prompt with question and snippets
- Generate answer with Amazon Nova Lite
- Return answer as JSON
证据
Project Goal: Upload plain text (.txt) notes and receive accurate answers strictly grounded in their content.
Amazon Nova Lite generating the response.
- 记录日期: 2026-09-09T20:30:16.855Z