Skip to content

Commit e4ed706

Browse files
committed
Web Interface With Fastapi for RAG PipeLine
1 parent 113abf5 commit e4ed706

6 files changed

Lines changed: 982 additions & 3 deletions

File tree

app.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
from fastapi import FastAPI, Request, Form
2+
from fastapi.responses import HTMLResponse
3+
from fastapi.staticfiles import StaticFiles
4+
from fastapi.templating import Jinja2Templates
5+
from project.pipeline.agents import AgentWorkflow
6+
from project.logger.logging import get_logger
7+
import uvicorn
8+
9+
logger = get_logger(__name__)
10+
11+
app = FastAPI(title="Learn with Transformers")
12+
13+
app.mount("/static", StaticFiles(directory="static"), name="static")
14+
templates = Jinja2Templates(directory="templates")
15+
16+
agent = None
17+
18+
19+
@app.on_event("startup")
20+
async def startup_event():
21+
global agent
22+
logger.info("Initializing RAG pipeline...")
23+
agent = AgentWorkflow()
24+
agent.setup(use_attention_paper=True)
25+
logger.info("RAG pipeline ready")
26+
27+
28+
@app.get("/", response_class=HTMLResponse)
29+
async def home(request: Request):
30+
return templates.TemplateResponse("index.html", {"request": request})
31+
32+
33+
@app.post("/search", response_class=HTMLResponse)
34+
async def search(request: Request, query: str = Form(...)):
35+
if not query.strip():
36+
return templates.TemplateResponse(
37+
"index.html",
38+
{"request": request, "error": "Please enter a question"}
39+
)
40+
41+
try:
42+
answer = agent.run(query)
43+
return templates.TemplateResponse(
44+
"index.html",
45+
{"request": request, "query": query, "answer": answer}
46+
)
47+
except Exception as e:
48+
logger.error(f"Search failed: {str(e)}")
49+
return templates.TemplateResponse(
50+
"index.html",
51+
{"request": request, "error": f"Error: {str(e)}"}
52+
)
53+
54+
55+
if __name__ == "__main__":
56+
uvicorn.run(app, host="0.0.0.0", port=8000)

logs/2025_12_01.log

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,183 @@ ModuleNotFoundError("No module named 'faiss.swigfaiss_avx512'")
180180
[2025-12-01 10:08:22] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
181181
[2025-12-01 10:08:22] INFO - project.pipeline.agents - Node 'generate' completed
182182
[2025-12-01 10:08:22] INFO - __main__ - RAG application completed successfully
183+
[2025-12-01 10:54:24] INFO - httpx - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
184+
[2025-12-01 10:55:00] INFO - httpx - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
185+
[2025-12-01 10:57:15] INFO - __main__ - Initializing RAG pipeline...
186+
[2025-12-01 10:57:15] INFO - project.utils.model_loader - GROQ API key loaded
187+
[2025-12-01 10:57:15] INFO - project.utils.model_loader - ModelLoader initialized
188+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
189+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - GROQ API key loaded
190+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - ModelLoader initialized
191+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
192+
[2025-12-01 10:57:16] INFO - project.source.data_preparation - DataPreparation initialized with chunk_size=1000
193+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - GROQ API key loaded
194+
[2025-12-01 10:57:16] INFO - project.utils.model_loader - ModelLoader initialized
195+
[2025-12-01 10:57:20] INFO - project.utils.model_loader - Loaded FastEmbed: BAAI/bge-small-en-v1.5
196+
[2025-12-01 10:57:20] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
197+
[2025-12-01 10:57:20] INFO - project.model.retriever - DocumentRetriever initialized
198+
[2025-12-01 10:57:21] INFO - project.model.reranking - FlashRank reranker initialized with model: rank-T5-flan
199+
[2025-12-01 10:57:21] INFO - project.pipeline.rag - RAGPipeline initialized
200+
[2025-12-01 10:57:21] INFO - project.pipeline.agents - Web search tool initialized
201+
[2025-12-01 10:57:21] INFO - project.pipeline.agents - AgentWorkflow initialized
202+
[2025-12-01 10:57:21] INFO - project.source.data_preparation - Loading PDF from local file: data\attention-is-all-you-need.pdf
203+
[2025-12-01 10:57:22] INFO - project.source.data_preparation - Loaded 11 pages from PDF
204+
[2025-12-01 10:57:22] INFO - project.source.data_preparation - Split documents into 43 chunks
205+
[2025-12-01 10:57:22] INFO - project.source.data_preparation - Document preparation complete: 43 chunks ready
206+
[2025-12-01 10:57:28] INFO - faiss.loader - Loading faiss with AVX512 support.
207+
[2025-12-01 10:57:28] INFO - faiss.loader - Could not load library with AVX512 support due to:
208+
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx512'")
209+
[2025-12-01 10:57:28] INFO - faiss.loader - Loading faiss with AVX2 support.
210+
[2025-12-01 10:57:29] INFO - faiss.loader - Successfully loaded faiss with AVX2 support.
211+
[2025-12-01 10:57:29] INFO - project.model.retriever - Vector store created with 43 documents
212+
[2025-12-01 10:57:29] INFO - project.model.retriever - Base retriever configured with mmr search
213+
[2025-12-01 10:57:29] INFO - project.pipeline.rag - RAG chain built successfully
214+
[2025-12-01 10:57:29] INFO - project.pipeline.rag - RAG pipeline setup complete
215+
[2025-12-01 10:57:29] INFO - project.pipeline.agents - LangGraph workflow compiled
216+
[2025-12-01 10:57:29] INFO - project.pipeline.agents - Agent workflow setup complete
217+
[2025-12-01 10:57:29] INFO - __main__ - RAG pipeline ready
218+
[2025-12-01 10:58:10] INFO - project.pipeline.agents - ---RETRIEVE---
219+
[2025-12-01 10:58:10] INFO - project.pipeline.agents - Node 'retrieve' completed
220+
[2025-12-01 10:58:10] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
221+
[2025-12-01 10:58:11] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
222+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
223+
[2025-12-01 10:58:11] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
224+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
225+
[2025-12-01 10:58:11] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
226+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
227+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
228+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
229+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - Node 'grade_documents' completed
230+
[2025-12-01 10:58:11] INFO - project.pipeline.agents - ---GENERATE---
231+
[2025-12-01 10:58:12] INFO - project.model.reranking - Reranked 3 documents, returning top 3
232+
[2025-12-01 10:58:15] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
233+
[2025-12-01 10:58:15] INFO - project.pipeline.agents - Node 'generate' completed
234+
[2025-12-01 10:58:15] INFO - project.pipeline.agents - ---RETRIEVE---
235+
[2025-12-01 10:58:15] INFO - project.pipeline.agents - Node 'retrieve' completed
236+
[2025-12-01 10:58:15] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
237+
[2025-12-01 10:58:16] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
238+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
239+
[2025-12-01 10:58:16] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
240+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
241+
[2025-12-01 10:58:16] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
242+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
243+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
244+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
245+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - Node 'grade_documents' completed
246+
[2025-12-01 10:58:16] INFO - project.pipeline.agents - ---GENERATE---
247+
[2025-12-01 10:58:17] INFO - project.model.reranking - Reranked 3 documents, returning top 3
248+
[2025-12-01 10:58:20] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
249+
[2025-12-01 10:58:20] INFO - project.pipeline.agents - Node 'generate' completed
250+
[2025-12-01 11:00:20] INFO - project.pipeline.agents - ---RETRIEVE---
251+
[2025-12-01 11:00:20] INFO - project.pipeline.agents - Node 'retrieve' completed
252+
[2025-12-01 11:00:20] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
253+
[2025-12-01 11:00:21] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
254+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
255+
[2025-12-01 11:00:21] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
256+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
257+
[2025-12-01 11:00:21] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
258+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
259+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
260+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
261+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - Node 'grade_documents' completed
262+
[2025-12-01 11:00:21] INFO - project.pipeline.agents - ---GENERATE---
263+
[2025-12-01 11:00:22] INFO - project.model.reranking - Reranked 3 documents, returning top 3
264+
[2025-12-01 11:00:25] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
265+
[2025-12-01 11:00:25] INFO - project.pipeline.agents - Node 'generate' completed
266+
[2025-12-01 11:02:23] INFO - project.pipeline.agents - ---RETRIEVE---
267+
[2025-12-01 11:02:24] INFO - project.pipeline.agents - Node 'retrieve' completed
268+
[2025-12-01 11:02:24] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
269+
[2025-12-01 11:02:24] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
270+
[2025-12-01 11:02:24] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
271+
[2025-12-01 11:02:24] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
272+
[2025-12-01 11:02:24] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
273+
[2025-12-01 11:02:25] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
274+
[2025-12-01 11:02:25] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
275+
[2025-12-01 11:02:25] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
276+
[2025-12-01 11:02:25] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
277+
[2025-12-01 11:02:25] INFO - project.pipeline.agents - Node 'grade_documents' completed
278+
[2025-12-01 11:02:25] INFO - project.pipeline.agents - ---GENERATE---
279+
[2025-12-01 11:02:26] INFO - project.model.reranking - Reranked 3 documents, returning top 3
280+
[2025-12-01 11:02:28] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
281+
[2025-12-01 11:02:28] INFO - project.pipeline.agents - Node 'generate' completed
282+
[2025-12-01 11:02:40] INFO - project.pipeline.agents - ---RETRIEVE---
283+
[2025-12-01 11:02:40] INFO - project.pipeline.agents - Node 'retrieve' completed
284+
[2025-12-01 11:02:40] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
285+
[2025-12-01 11:02:40] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
286+
[2025-12-01 11:02:40] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
287+
[2025-12-01 11:02:40] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
288+
[2025-12-01 11:02:40] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
289+
[2025-12-01 11:02:41] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
290+
[2025-12-01 11:02:41] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
291+
[2025-12-01 11:02:41] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
292+
[2025-12-01 11:02:41] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
293+
[2025-12-01 11:02:41] INFO - project.pipeline.agents - Node 'grade_documents' completed
294+
[2025-12-01 11:02:41] INFO - project.pipeline.agents - ---GENERATE---
295+
[2025-12-01 11:02:42] INFO - project.model.reranking - Reranked 3 documents, returning top 3
296+
[2025-12-01 11:02:44] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
297+
[2025-12-01 11:02:44] INFO - project.pipeline.agents - Node 'generate' completed
298+
[2025-12-01 11:06:50] INFO - __main__ - Initializing RAG pipeline...
299+
[2025-12-01 11:06:50] INFO - project.utils.model_loader - GROQ API key loaded
300+
[2025-12-01 11:06:50] INFO - project.utils.model_loader - ModelLoader initialized
301+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
302+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - GROQ API key loaded
303+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - ModelLoader initialized
304+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
305+
[2025-12-01 11:06:51] INFO - project.source.data_preparation - DataPreparation initialized with chunk_size=1000
306+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - GROQ API key loaded
307+
[2025-12-01 11:06:51] INFO - project.utils.model_loader - ModelLoader initialized
308+
[2025-12-01 11:06:56] INFO - project.utils.model_loader - Loaded FastEmbed: BAAI/bge-small-en-v1.5
309+
[2025-12-01 11:06:57] INFO - project.utils.model_loader - Loaded Groq LLM: openai/gpt-oss-120b
310+
[2025-12-01 11:06:57] INFO - project.model.retriever - DocumentRetriever initialized
311+
[2025-12-01 11:06:57] INFO - project.model.reranking - FlashRank reranker initialized with model: rank-T5-flan
312+
[2025-12-01 11:06:57] INFO - project.pipeline.rag - RAGPipeline initialized
313+
[2025-12-01 11:06:57] INFO - project.pipeline.agents - Web search tool initialized
314+
[2025-12-01 11:06:57] INFO - project.pipeline.agents - AgentWorkflow initialized
315+
[2025-12-01 11:06:57] INFO - project.source.data_preparation - Loading PDF from local file: data\attention-is-all-you-need.pdf
316+
[2025-12-01 11:06:58] INFO - project.source.data_preparation - Loaded 11 pages from PDF
317+
[2025-12-01 11:06:58] INFO - project.source.data_preparation - Split documents into 43 chunks
318+
[2025-12-01 11:06:58] INFO - project.source.data_preparation - Document preparation complete: 43 chunks ready
319+
[2025-12-01 11:07:09] INFO - faiss.loader - Loading faiss with AVX512 support.
320+
[2025-12-01 11:07:09] INFO - faiss.loader - Could not load library with AVX512 support due to:
321+
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx512'")
322+
[2025-12-01 11:07:09] INFO - faiss.loader - Loading faiss with AVX2 support.
323+
[2025-12-01 11:07:09] INFO - faiss.loader - Successfully loaded faiss with AVX2 support.
324+
[2025-12-01 11:07:09] INFO - project.model.retriever - Vector store created with 43 documents
325+
[2025-12-01 11:07:09] INFO - project.model.retriever - Base retriever configured with mmr search
326+
[2025-12-01 11:07:09] INFO - project.pipeline.rag - RAG chain built successfully
327+
[2025-12-01 11:07:09] INFO - project.pipeline.rag - RAG pipeline setup complete
328+
[2025-12-01 11:07:09] INFO - project.pipeline.agents - LangGraph workflow compiled
329+
[2025-12-01 11:07:09] INFO - project.pipeline.agents - Agent workflow setup complete
330+
[2025-12-01 11:07:09] INFO - __main__ - RAG pipeline ready
331+
[2025-12-01 11:07:14] INFO - project.pipeline.agents - ---RETRIEVE---
332+
[2025-12-01 11:07:14] INFO - project.pipeline.agents - Node 'retrieve' completed
333+
[2025-12-01 11:07:14] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
334+
[2025-12-01 11:07:15] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
335+
[2025-12-01 11:07:15] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
336+
[2025-12-01 11:07:15] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
337+
[2025-12-01 11:07:15] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
338+
[2025-12-01 11:07:16] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
339+
[2025-12-01 11:07:16] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
340+
[2025-12-01 11:07:16] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
341+
[2025-12-01 11:07:16] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
342+
[2025-12-01 11:07:16] INFO - project.pipeline.agents - Node 'grade_documents' completed
343+
[2025-12-01 11:07:16] INFO - project.pipeline.agents - ---GENERATE---
344+
[2025-12-01 11:07:17] INFO - project.model.reranking - Reranked 3 documents, returning top 3
345+
[2025-12-01 11:07:19] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
346+
[2025-12-01 11:07:19] INFO - project.pipeline.agents - Node 'generate' completed
347+
[2025-12-01 11:10:07] INFO - project.pipeline.agents - ---RETRIEVE---
348+
[2025-12-01 11:10:07] INFO - project.pipeline.agents - Node 'retrieve' completed
349+
[2025-12-01 11:10:07] INFO - project.pipeline.agents - ---CHECK DOCUMENT RELEVANCE TO QUESTION---
350+
[2025-12-01 11:10:07] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
351+
[2025-12-01 11:10:07] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
352+
[2025-12-01 11:10:08] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
353+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
354+
[2025-12-01 11:10:08] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
355+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - ---GRADE: DOCUMENT RELEVANT---
356+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - ---ASSESS GRADED DOCUMENTS---
357+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - ---DECISION: RELEVANT DOCUMENTS FOUND, GENERATE---
358+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - Node 'grade_documents' completed
359+
[2025-12-01 11:10:08] INFO - project.pipeline.agents - ---GENERATE---
360+
[2025-12-01 11:10:09] INFO - project.model.reranking - Reranked 3 documents, returning top 3
361+
[2025-12-01 11:10:11] INFO - httpx - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
362+
[2025-12-01 11:10:11] INFO - project.pipeline.agents - Node 'generate' completed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ dependencies = [
99
"chromadb>=1.3.5",
1010
"faiss-cpu>=1.13.0",
1111
"fastembed>=0.7.3",
12+
"fastapi>=0.115.0",
1213
"flashrank>=0.2.10",
1314
"google-generativeai>=0.8.3",
15+
"gradio>=6.0.1",
1416
"ipykernel>=7.1.0",
17+
"jinja2>=3.1.0",
1518
"langchain>=0.3.0",
1619
"langchain-chroma>=0.1.0",
1720
"langchain-community>=0.3.0",
@@ -22,7 +25,9 @@ dependencies = [
2225
"pillow>=11.3.0",
2326
"pypdf>=6.4.0",
2427
"python-dotenv>=1.2.1",
28+
"python-multipart>=0.0.20",
2529
"rapidocr-onnxruntime>=1.4.4",
2630
"structlog>=25.5.0",
2731
"tiktoken>=0.12.0",
32+
"uvicorn>=0.34.0",
2833
]

0 commit comments

Comments
 (0)