Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Jan 28, 2025
1 parent 4ab1dea commit b5d0972
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lightrag/api/lightrag_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def estimate_tokens(text: str) -> int:

return int(tokens)


class OllamaServerInfos:
# Constants for emulated Ollama model information
LIGHTRAG_NAME = "lightrag"
Expand All @@ -55,12 +56,13 @@ class OllamaServerInfos:
LIGHTRAG_SIZE = 7365960935 # it's a dummy value
LIGHTRAG_CREATED_AT = "2024-01-15T00:00:00Z"
LIGHTRAG_DIGEST = "sha256:lightrag"

KV_STORAGE = "JsonKVStorage"
DOC_STATUS_STORAGE = "JsonDocStatusStorage"
GRAPH_STORAGE = "NetworkXStorage"
VECTOR_STORAGE = "NanoVectorDBStorage"


# Add infos
ollama_server_infos = OllamaServerInfos()

Expand Down Expand Up @@ -490,7 +492,9 @@ def timeout_type(value):
parser.add_argument(
"--simulated-model-name",
type=str,
default=get_env_value("SIMULATED_MODEL_NAME", ollama_server_infos.LIGHTRAG_MODEL),
default=get_env_value(
"SIMULATED_MODEL_NAME", ollama_server_infos.LIGHTRAG_MODEL
),
help="Number of conversation history turns to include (default: from env or 3)",
)

Expand Down

0 comments on commit b5d0972

Please sign in to comment.