Skip to content

Commit 9b03c45

Browse files
committed
feat: add NextJS frontend with dashboard and API client generation
1 parent 334ca48 commit 9b03c45

39 files changed

+2589
-8609
lines changed

backend/app/api/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
from fastapi import APIRouter
22

3-
from app.api.routes import colpali, items, login, private, users, utils
3+
from app.api.routes import items, login, private, users, utils
44
from app.core.config import settings
55

66
api_router = APIRouter()
77
api_router.include_router(login.router)
88
api_router.include_router(users.router)
99
api_router.include_router(utils.router)
1010
api_router.include_router(items.router)
11-
api_router.include_router(colpali.router)
12-
1311

1412
if settings.ENVIRONMENT == "local":
1513
api_router.include_router(private.router)

backend/app/api/routes/colpali.py

Lines changed: 0 additions & 244 deletions
This file was deleted.

backend/app/core/config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def all_cors_origins(self) -> list[str]:
5757
POSTGRES_PASSWORD: str = ""
5858
POSTGRES_DB: str = ""
5959

60-
# ColPali/Qdrant settings
61-
QDRANT_URL: str = "http://localhost:6333"
62-
6360
@computed_field # type: ignore[prop-decorator]
6461
@property
6562
def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:

backend/app/models.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -111,38 +111,3 @@ class TokenPayload(SQLModel):
111111
class NewPassword(SQLModel):
112112
token: str
113113
new_password: str = Field(min_length=8, max_length=40)
114-
115-
116-
# ColPali models
117-
class ColPaliSearchRequest(SQLModel):
118-
query: str = Field(min_length=1, max_length=1000, description="Search query for ColPali")
119-
collection_name: str = Field(default="le-collection", description="Qdrant collection name")
120-
search_limit: int = Field(default=20, ge=1, le=100, description="Number of results to return")
121-
prefetch_limit: int = Field(default=200, ge=1, le=1000, description="Number of results to prefetch")
122-
123-
124-
class ColPaliSearchResult(SQLModel):
125-
score: float = Field(description="Similarity score")
126-
payload: dict = Field(description="Document metadata")
127-
id: str = Field(description="Document ID")
128-
129-
130-
class ColPaliSearchResponse(SQLModel):
131-
results: list[ColPaliSearchResult]
132-
query: str
133-
collection_name: str
134-
total_results: int
135-
136-
137-
class ColPaliUploadRequest(SQLModel):
138-
dataset_name: str = Field(description="Name of the dataset to upload")
139-
collection_name: str = Field(default="le-collection", description="Qdrant collection name")
140-
batch_size: int = Field(default=4, ge=1, le=16, description="Batch size for processing")
141-
142-
143-
class ColPaliUploadResponse(SQLModel):
144-
message: str
145-
collection_name: str
146-
total_uploaded: int
147-
total_items: int
148-
success: bool

0 commit comments

Comments
 (0)