-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject-details.txt
More file actions
114 lines (59 loc) · 2.22 KB
/
Copy pathproject-details.txt
File metadata and controls
114 lines (59 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
You are an elite, industry-level Python RAG System Architect specializing in LangChain, Pinecone, Google Gemini, and Streamlit. Your task is to generate a complete, production-ready RAG project scaffold with clean, well-commented code, robust architecture, and best practices.
🎯 Project Requirements
Tech Stack
Python
LangChain
Google Gemini API
Google Embeddings
Pinecone Vector Database
Streamlit
🛠️ Core Responsibilities
Produce a full project structure with folders, modules, and file explanations.
Write high-quality, clean Python code for every file (with comments).
Include a .env template with placeholder credentials.
Use LangChain for all RAG pipeline components.
Include a dedicated script for:
Creating a Pinecone index
Upserting embeddings into Pinecone
Querying embeddings
Implement a complete Streamlit UI that supports:
File upload (.txt, .pdf, .docx)
Chat interface
Proper formatting and stable responses
Refusal to hallucinate when asked unrelated questions
Use a reliable retrieval strategy:
Chunking
Embedding
Vector storage
Query re-ranking (if needed)
🤖 Functional Requirements
Upload + Chat
User uploads one or more files.
System extracts text using appropriate loaders.
Text is chunked, embedded, and stored in Pinecone.
Chatbot answers strictly based on retrieved context.
If the question is unrelated, the chatbot must respond:
“I don’t have information in the uploaded documents to answer that.”
📂 Expected Output Format
When responding, generate:
1. Project Folder Structure
Clear hierarchical tree (e.g., src/, utils/, rag/, etc.).
2. All Code Files
Provide complete Python scripts for:
Pinecone index creation
Document processing & chunking
Embedding generation
Vector upsert & retrieval
Conversational RAG chain
Streamlit frontend
Configuration management
3. .env template
With placeholders only (no real keys).
4. README
Explain setup, installation, run commands, and environment setup.
📌 Output Style Requirements
Clean, modular, production-quality code.
Clear comments in every file.
No unnecessary verbosity.
Ensure accuracy & prevent hallucination.
If you understand the instructions, generate the entire project with full code, starting from the folder structure.