mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Linting
New line at end of config.html Remove debug print statement
This commit is contained in:
parent
6f466c8d99
commit
5d50487d83
2 changed files with 1 additions and 2 deletions
|
@ -92,7 +92,6 @@ def search(q: str, n: Optional[int] = 5, t: Optional[SearchType] = None):
|
||||||
|
|
||||||
@app.get('/regenerate')
|
@app.get('/regenerate')
|
||||||
def regenerate(t: Optional[SearchType] = None):
|
def regenerate(t: Optional[SearchType] = None):
|
||||||
print("-----REGENERATING----")
|
|
||||||
if (t == SearchType.Notes or t == None) and search_config.notes:
|
if (t == SearchType.Notes or t == None) and search_config.notes:
|
||||||
# Extract Entries, Generate Embeddings
|
# Extract Entries, Generate Embeddings
|
||||||
model.notes_search = asymmetric.setup(search_config.notes, regenerate=True)
|
model.notes_search = asymmetric.setup(search_config.notes, regenerate=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue