Farid Karimli commited on
Commit
44a3a08
1 Parent(s): e0c11eb

last_message_time metadata fix

Browse files
Files changed (2) hide show
  1. code/app.py +2 -0
  2. code/modules/config/config.yml +1 -1
code/app.py CHANGED
@@ -245,6 +245,8 @@ async def post_signin(request: Request):
245
  user_details.metadata["tokens_left"] = (
246
  TOKENS_LEFT # set the number of tokens left for the new user
247
  )
 
 
248
  if "all_time_tokens_allocated" not in user_details.metadata:
249
  user_details.metadata["all_time_tokens_allocated"] = ALL_TIME_TOKENS_ALLOCATED
250
  if "in_cooldown" not in user_details.metadata:
 
245
  user_details.metadata["tokens_left"] = (
246
  TOKENS_LEFT # set the number of tokens left for the new user
247
  )
248
+ if "last_message_time" not in user_details.metadata:
249
+ user_details.metadata["last_message_time"] = current_datetime
250
  if "all_time_tokens_allocated" not in user_details.metadata:
251
  user_details.metadata["all_time_tokens_allocated"] = ALL_TIME_TOKENS_ALLOCATED
252
  if "in_cooldown" not in user_details.metadata:
code/modules/config/config.yml CHANGED
@@ -8,7 +8,7 @@ vectorstore:
8
  data_path: '../storage/data' # str
9
  url_file_path: '../storage/data/urls.txt' # str
10
  expand_urls: True # bool
11
- db_option : 'FAISS' # str [FAISS, Chroma, RAGatouille, RAPTOR]
12
  db_path : '../vectorstores' # str
13
  model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
14
  search_top_k : 3 # int
 
8
  data_path: '../storage/data' # str
9
  url_file_path: '../storage/data/urls.txt' # str
10
  expand_urls: True # bool
11
+ db_option : 'RAGatouille' # str [FAISS, Chroma, RAGatouille, RAPTOR]
12
  db_path : '../vectorstores' # str
13
  model : 'sentence-transformers/all-MiniLM-L6-v2' # str [sentence-transformers/all-MiniLM-L6-v2, text-embedding-ada-002']
14
  search_top_k : 3 # int