RamshaAnwar commited on
Commit
4f255eb
·
0 Parent(s):

chore: add project layout and dependencies

Browse files
Files changed (5) hide show
  1. .env.example +28 -0
  2. .gitignore +24 -0
  3. requirements-dev.txt +6 -0
  4. requirements.lock.txt +0 -0
  5. requirements.txt +16 -0
.env.example ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---- Application ----
2
+ ENVIRONMENT=development
3
+
4
+ # ---- Database ----
5
+ DATABASE_URL=postgresql+psycopg://USER:PASSWORD@HOST:5432/DBNAME?sslmode=require
6
+ DIRECT_DATABASE_URL=postgresql+psycopg://USER:PASSWORD@HOST:5432/DBNAME?sslmode=require
7
+ TEST_DATABASE_URL=postgresql+psycopg://USER:PASSWORD@HOST:5432/DBNAME_test?sslmode=require
8
+
9
+ # ---- Auth ----
10
+ JWT_SECRET_KEY=replace-with-48-bytes-of-random-urlsafe-text
11
+
12
+ # ---- Google Gemini ----
13
+ GEMINI_API_KEY=replace-with-your-google-ai-studio-key
14
+ GEMINI_MODEL=gemini-flash-latest
15
+ GEMINI_EMBEDDING_MODEL=gemini-embedding-2
16
+
17
+ # ---- RAG ----
18
+ EMBEDDING_DIM=768
19
+ CHUNK_SIZE_TOKENS=500
20
+ CHUNK_OVERLAP_TOKENS=50
21
+ INLINE_SYNC_MAX_CHARS=20000
22
+ RAG_TOP_K=5
23
+ RAG_MIN_SIMILARITY=0.55
24
+ RAG_FAITHFULNESS_MIN=0.70
25
+ RAG_RELEVANCY_MIN=0.70
26
+
27
+ # ---- CORS ----
28
+ CORS_ORIGINS=http://localhost:3000
.gitignore ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Environment / secrets
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ *.pem
6
+ *.key
7
+
8
+ # Python
9
+ __pycache__/
10
+ *.py[cod]
11
+ .venv/
12
+ venv/
13
+ *.egg-info/
14
+
15
+ # Testing
16
+ .pytest_cache/
17
+ .coverage
18
+ htmlcov/
19
+
20
+ # OS / editor
21
+ .DS_Store
22
+ Thumbs.db
23
+ .vscode/
24
+ .idea/
requirements-dev.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ pytest
2
+ pytest-cov
3
+ pytest-mock
4
+ python-dotenv
5
+ pre-commit
6
+ ragas
requirements.lock.txt ADDED
Binary file (2.65 kB). View file
 
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn[standard]
3
+ sqlalchemy>=2
4
+ alembic
5
+ psycopg[binary]
6
+ pgvector
7
+ pydantic>=2
8
+ pydantic-settings
9
+ email-validator
10
+ pyjwt
11
+ bcrypt
12
+ google-genai
13
+ httpx
14
+ transparent-fastapi
15
+ python-multipart
16
+ pypdf