diff --git a/README-zh.md b/README-zh.md index aad05ae7..ccef4055 100644 --- a/README-zh.md +++ b/README-zh.md @@ -772,7 +772,7 @@ rag = LightRAG( create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- 如有必要可以删除 drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/README.md b/README.md index 0fadf32c..c15c5dad 100644 --- a/README.md +++ b/README.md @@ -765,7 +765,7 @@ For production level scenarios you will most likely want to leverage an enterpri create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- drop if necessary drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/lightrag/api/utils_api.py b/lightrag/api/utils_api.py index 0541fd59..cb391174 100644 --- a/lightrag/api/utils_api.py +++ b/lightrag/api/utils_api.py @@ -136,7 +136,7 @@ def get_combined_auth_dependency(api_key: Optional[str] = None): ### Authentication failed #### - # if password authentication is configured but not provided, ensure 401 error if auth_configured + # if password authentication is configured but not provided, ensure 401 error if auth_configured if auth_configured and not token: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, @@ -149,7 +149,7 @@ def get_combined_auth_dependency(api_key: Optional[str] = None): status_code=HTTP_403_FORBIDDEN, detail="Invalid API Key", ) - + # if api_key_configured but not provided if api_key_configured and not api_key_header_value: raise HTTPException(