gabykim commited on
Commit
3f04a5e
·
1 Parent(s): 1444b39

minor config change

Browse files
src/knowlang/configs/chat_config.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from pydantic import Field
2
  from pydantic_settings import BaseSettings
3
  from enum import Enum
@@ -42,7 +43,7 @@ class ChatbotAnalyticsConfig(BaseSettings):
42
  description="Analytics provider to use for tracking feedback"
43
  )
44
 
45
- api_key: str = Field(
46
  default=None,
47
  description="api key for feedback tracking"
48
  )
 
1
+ from typing import Optional
2
  from pydantic import Field
3
  from pydantic_settings import BaseSettings
4
  from enum import Enum
 
43
  description="Analytics provider to use for tracking feedback"
44
  )
45
 
46
+ api_key: Optional[str] = Field(
47
  default=None,
48
  description="api key for feedback tracking"
49
  )
src/knowlang/configs/config.py CHANGED
@@ -132,11 +132,11 @@ class LLMConfig(BaseSettings):
132
 
133
  class DBConfig(BaseSettings):
134
  persist_directory: Path = Field(
135
- default=Path("./chroma_db"),
136
  description="Directory to store ChromaDB files"
137
  )
138
  collection_name: str = Field(
139
- default="code_chunks",
140
  description="Name of the ChromaDB collection"
141
  )
142
  codebase_directory: Path = Field(
 
132
 
133
  class DBConfig(BaseSettings):
134
  persist_directory: Path = Field(
135
+ default=Path("./chromadb"),
136
  description="Directory to store ChromaDB files"
137
  )
138
  collection_name: str = Field(
139
+ default="code",
140
  description="Name of the ChromaDB collection"
141
  )
142
  codebase_directory: Path = Field(