Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up API #878

Merged
merged 3 commits into from
Aug 16, 2024
Merged
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
116 changes: 0 additions & 116 deletions alembic.ini

This file was deleted.

77 changes: 0 additions & 77 deletions alembic/env.py

This file was deleted.

26 changes: 0 additions & 26 deletions alembic/script.py.mako

This file was deleted.

47 changes: 0 additions & 47 deletions alembic/versions/7423a09421e9_add_user_id_to_logs.py

This file was deleted.

2 changes: 1 addition & 1 deletion r2r/base/abstractions/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def dict(self) -> dict:
}

class Config:
schema_extra = [
json_schema_extra = [
{
"fragment_id": "c68dc72e-fc23-5452-8f49-d7bd46088a96",
"extraction_id": "3f3d47f3-8baf-58eb-8bc2-0171fb1c6e09",
Expand Down
4 changes: 0 additions & 4 deletions r2r/base/api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from .management.responses import (
AnalyticsResponse,
AppSettingsResponse,
DeleteResponse,
DocumentChunkResponse,
DocumentOverviewResponse,
GroupOverviewResponse,
Expand All @@ -22,7 +21,6 @@
WrappedAddUserResponse,
WrappedAnalyticsResponse,
WrappedAppSettingsResponse,
WrappedDeleteResponse,
WrappedDocumentChunkResponse,
WrappedDocumentOverviewResponse,
WrappedGroupListResponse,
Expand Down Expand Up @@ -62,7 +60,6 @@
"AppSettingsResponse",
"ScoreCompletionResponse",
"UserOverviewResponse",
"DeleteResponse",
"DocumentOverviewResponse",
"DocumentChunkResponse",
"KnowledgeGraphResponse",
Expand All @@ -75,7 +72,6 @@
"WrappedAppSettingsResponse",
"WrappedScoreCompletionResponse",
"WrappedUserOverviewResponse",
"WrappedDeleteResponse",
"WrappedDocumentOverviewResponse",
"WrappedDocumentChunkResponse",
"WrappedKnowledgeGraphResponse",
Expand Down
2 changes: 1 addition & 1 deletion r2r/base/api/models/ingestion/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IngestionResponse(BaseModel):
)

class Config:
schema_extra = {
json_schema_extra = {
"example": {
"processed_documents": [
{
Expand Down
8 changes: 0 additions & 8 deletions r2r/base/api/models/management/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ class UserOverviewResponse(BaseModel):
document_ids: List[UUID]


class DeleteResponse(BaseModel):
fragment_id: UUID
document_id: UUID
extraction_id: UUID
text: str


class DocumentOverviewResponse(BaseModel):
id: UUID
title: str
Expand Down Expand Up @@ -114,7 +107,6 @@ class AddUserResponse(BaseModel):
WrappedAppSettingsResponse = ResultsWrapper[AppSettingsResponse]
WrappedScoreCompletionResponse = ResultsWrapper[ScoreCompletionResponse]
WrappedUserOverviewResponse = ResultsWrapper[List[UserOverviewResponse]]
WrappedDeleteResponse = ResultsWrapper[dict[str, DeleteResponse]]
WrappedDocumentOverviewResponse = ResultsWrapper[
List[DocumentOverviewResponse]
]
Expand Down
6 changes: 3 additions & 3 deletions r2r/base/api/models/retrieval/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SearchResponse(BaseModel):
)

class Config:
schema_extra = {
json_schema_extra = {
"example": {
"vector_search_results": [
{
Expand Down Expand Up @@ -50,7 +50,7 @@ class RAGResponse(BaseModel):
)

class Config:
schema_extra = {
json_schema_extra = {
"example": {
"completion": {
"id": "chatcmpl-example123",
Expand Down Expand Up @@ -104,7 +104,7 @@ class RAGAgentResponse(BaseModel):
)

class Config:
schema_extra = {
json_schema_extra = {
"example": {
"completion": {
"id": "chatcmpl-example456",
Expand Down
1 change: 0 additions & 1 deletion r2r/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
cli.add_command(server_operations.docker_down)
cli.add_command(server_operations.generate_report)
cli.add_command(server_operations.health)
cli.add_command(server_operations.migrate)
cli.add_command(server_operations.serve)
cli.add_command(server_operations.update)
cli.add_command(server_operations.version)
Expand Down
Loading
Loading