Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PromptRequest(BaseModel):

@app.get("/", response_class=HTMLResponse)
def read_index(request: Request):
return templates.TemplateResponse("index.html", {"request": request})
return templates.TemplateResponse(request, "index.html")


@app.get("/api", response_class=JSONResponse)
Expand Down
31 changes: 15 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
fastapi
uvicorn[standard]
sqlalchemy
psycopg2-binary
python-dotenv
jinja2
openai
tavily-python
wikipedia
requests
aisuite
docstring_parser
fastapi==0.139.0
uvicorn[standard]==0.51.0
psycopg2-binary==2.9.12
python-dotenv==1.2.2
Jinja2==3.1.6
openai==2.45.0
tavily-python==0.7.26
wikipedia==1.4.0
requests==2.34.2
aisuite==0.1.14
docstring-parser==0.15

# Core
pdfminer.six
pymupdf # optional but recommended for faster/better PDF text extraction
pdfminer.six==20260107
pymupdf==1.28.0 # optional but recommended for faster/better PDF text extraction

# Web/knowledge tools you used in other snippets (optional)
python-dotenv
python-dotenv==1.2.2

# SQLite via SQLAlchemy
SQLAlchemy
SQLAlchemy==2.0.51