khoj 1.30.11.dev58__py3-none-any.whl → 1.30.11.dev65__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. khoj/database/admin.py +3 -3
  2. khoj/database/models/__init__.py +24 -0
  3. khoj/interface/compiled/404/index.html +1 -1
  4. khoj/interface/compiled/_next/static/chunks/{1603-e40aadd1e56ab030.js → 1603-13cef426e0e650ec.js} +1 -1
  5. khoj/interface/compiled/_next/static/chunks/app/agents/layout-1878cc328ea380bd.js +1 -0
  6. khoj/interface/compiled/_next/static/chunks/app/agents/{page-f5c0801b27a8e95e.js → page-2ffa7560aebff9a1.js} +1 -1
  7. khoj/interface/compiled/_next/static/chunks/app/automations/{page-8691f6c09a0acd44.js → page-b0a6a6ed2267c1a2.js} +1 -1
  8. khoj/interface/compiled/_next/static/chunks/app/chat/layout-9219a85f3477e722.js +1 -0
  9. khoj/interface/compiled/_next/static/chunks/app/chat/{page-135d56dd4263e40d.js → page-02f8616bba3e449e.js} +1 -1
  10. khoj/interface/compiled/_next/static/chunks/app/{page-e79ace822d51557b.js → page-3ffd8f0934b896f3.js} +1 -1
  11. khoj/interface/compiled/_next/static/chunks/app/search/layout-2ca475462c0b2176.js +1 -0
  12. khoj/interface/compiled/_next/static/chunks/app/search/{page-e8b578d155550386.js → page-059f237514f77628.js} +1 -1
  13. khoj/interface/compiled/_next/static/chunks/app/settings/{page-b6c835050c970be7.js → page-32e9423bede5b4a1.js} +1 -1
  14. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-592e8c470f2c2084.js +1 -0
  15. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-635635e4fb39fe29.js → page-0b8d90dc57dbc1d8.js} +1 -1
  16. khoj/interface/compiled/_next/static/chunks/{webpack-5203c3872078c10c.js → webpack-64477b5a1e621214.js} +1 -1
  17. khoj/interface/compiled/_next/static/css/80bd6301fc657983.css +1 -0
  18. khoj/interface/compiled/_next/static/css/cb167d6771069fbf.css +1 -0
  19. khoj/interface/compiled/agents/index.html +1 -1
  20. khoj/interface/compiled/agents/index.txt +2 -2
  21. khoj/interface/compiled/automations/index.html +1 -1
  22. khoj/interface/compiled/automations/index.txt +2 -2
  23. khoj/interface/compiled/chat/index.html +1 -1
  24. khoj/interface/compiled/chat/index.txt +2 -2
  25. khoj/interface/compiled/index.html +1 -1
  26. khoj/interface/compiled/index.txt +2 -2
  27. khoj/interface/compiled/search/index.html +1 -1
  28. khoj/interface/compiled/search/index.txt +2 -2
  29. khoj/interface/compiled/settings/index.html +1 -1
  30. khoj/interface/compiled/settings/index.txt +2 -2
  31. khoj/interface/compiled/share/chat/index.html +1 -1
  32. khoj/interface/compiled/share/chat/index.txt +2 -2
  33. khoj/processor/conversation/prompts.py +1 -1
  34. khoj/processor/conversation/utils.py +17 -17
  35. khoj/utils/helpers.py +2 -2
  36. khoj/utils/initialization.py +4 -0
  37. {khoj-1.30.11.dev58.dist-info → khoj-1.30.11.dev65.dist-info}/METADATA +2 -2
  38. {khoj-1.30.11.dev58.dist-info → khoj-1.30.11.dev65.dist-info}/RECORD +43 -43
  39. khoj/interface/compiled/_next/static/chunks/app/agents/layout-f2ea2b26fc0e78b1.js +0 -1
  40. khoj/interface/compiled/_next/static/chunks/app/chat/layout-1072c3b0ab136e74.js +0 -1
  41. khoj/interface/compiled/_next/static/chunks/app/search/layout-cae84c87073877f0.js +0 -1
  42. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-dc97434f0354a74e.js +0 -1
  43. khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css +0 -1
  44. khoj/interface/compiled/_next/static/css/a914be49ee676a12.css +0 -1
  45. /khoj/interface/compiled/_next/static/{alD7GUX8kcD6ZoOrHSkOj → pzCibzlX5xLa_-x0rn8Ch}/_buildManifest.js +0 -0
  46. /khoj/interface/compiled/_next/static/{alD7GUX8kcD6ZoOrHSkOj → pzCibzlX5xLa_-x0rn8Ch}/_ssgManifest.js +0 -0
  47. {khoj-1.30.11.dev58.dist-info → khoj-1.30.11.dev65.dist-info}/WHEEL +0 -0
  48. {khoj-1.30.11.dev58.dist-info → khoj-1.30.11.dev65.dist-info}/entry_points.txt +0 -0
  49. {khoj-1.30.11.dev58.dist-info → khoj-1.30.11.dev65.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,7 @@
1
1
  2:I[66513,[],"ClientPageRoot"]
2
- 3:I[5506,["3954","static/chunks/d3ac728e-a9e3522eef9b6b28.js","3072","static/chunks/3072-be830e4f8412b9d2.js","4752","static/chunks/4752-554a3db270186ce3.js","7592","static/chunks/7592-a09c39a38e60634b.js","3690","static/chunks/3690-51312931ba1eae30.js","3463","static/chunks/3463-081c031e873b7966.js","1603","static/chunks/1603-e40aadd1e56ab030.js","8423","static/chunks/8423-1dda16bc56236523.js","5538","static/chunks/5538-0ea2d3944ca051e1.js","3111","static/chunks/app/share/chat/page-635635e4fb39fe29.js"],"default",1]
2
+ 3:I[5506,["3954","static/chunks/d3ac728e-a9e3522eef9b6b28.js","3072","static/chunks/3072-be830e4f8412b9d2.js","4752","static/chunks/4752-554a3db270186ce3.js","7592","static/chunks/7592-a09c39a38e60634b.js","3690","static/chunks/3690-51312931ba1eae30.js","3463","static/chunks/3463-081c031e873b7966.js","1603","static/chunks/1603-13cef426e0e650ec.js","8423","static/chunks/8423-1dda16bc56236523.js","5538","static/chunks/5538-0ea2d3944ca051e1.js","3111","static/chunks/app/share/chat/page-0b8d90dc57dbc1d8.js"],"default",1]
3
3
  4:I[39275,[],""]
4
4
  5:I[61343,[],""]
5
- 0:["alD7GUX8kcD6ZoOrHSkOj",[[["",{"children":["share",{"children":["chat",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["share",{"children":["chat",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/3cf13271869a4aeb.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/a914be49ee676a12.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/1f293605f2871853.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[[null,["$","html",null,{"lang":"en","className":"__variable_f36179 __variable_702545","children":[["$","meta",null,{"httpEquiv":"Content-Security-Policy","content":"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://*.khoj.dev https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; child-src 'self' https://app.chatwoot.com; object-src 'none';"}],["$","body",null,{"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","share","children","chat","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"window.EXCALIDRAW_ASSET_PATH = 'https://assets.khoj.dev/@excalidraw/excalidraw/dist/';"}}]]}]]}]],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","share","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/089de1d8526b96e9.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/3c34171b174cc381.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_f36179 __variable_702545","children":[["$","meta",null,{"httpEquiv":"Content-Security-Policy","content":"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://*.khoj.dev https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; child-src 'self' https://app.chatwoot.com; object-src 'none';"}],["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]]}]],null],null],["$L6",null]]]]
5
+ 0:["pzCibzlX5xLa_-x0rn8Ch",[[["",{"children":["share",{"children":["chat",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["share",{"children":["chat",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/3cf13271869a4aeb.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/cb167d6771069fbf.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/1f293605f2871853.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[[null,["$","html",null,{"lang":"en","className":"__variable_f36179 __variable_702545","children":[["$","meta",null,{"httpEquiv":"Content-Security-Policy","content":"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://*.khoj.dev https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; child-src 'self' https://app.chatwoot.com; object-src 'none';"}],["$","body",null,{"children":[["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","share","children","chat","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"window.EXCALIDRAW_ASSET_PATH = 'https://assets.khoj.dev/@excalidraw/excalidraw/dist/';"}}]]}]]}]],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","share","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/089de1d8526b96e9.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/3c34171b174cc381.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_f36179 __variable_702545","children":[["$","meta",null,{"httpEquiv":"Content-Security-Policy","content":"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https://*.khoj.dev https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; child-src 'self' https://app.chatwoot.com; object-src 'none';"}],["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]]}]],null],null],["$L6",null]]]]
6
6
  6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Khoj AI - Chat"}],["$","meta","3",{"name":"description","content":"Use this page to view a chat with Khoj AI."}],["$","link","4",{"rel":"manifest","href":"/static/khoj.webmanifest","crossOrigin":"use-credentials"}],["$","meta","5",{"property":"og:title","content":"Khoj AI"}],["$","meta","6",{"property":"og:description","content":"Your Second Brain."}],["$","meta","7",{"property":"og:url","content":"https://app.khoj.dev/"}],["$","meta","8",{"property":"og:site_name","content":"Khoj AI"}],["$","meta","9",{"property":"og:image","content":"https://assets.khoj.dev/khoj_lantern_256x256.png"}],["$","meta","10",{"property":"og:image:width","content":"256"}],["$","meta","11",{"property":"og:image:height","content":"256"}],["$","meta","12",{"property":"og:image","content":"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"}],["$","meta","13",{"property":"og:image:width","content":"1200"}],["$","meta","14",{"property":"og:image:height","content":"630"}],["$","meta","15",{"property":"og:type","content":"website"}],["$","meta","16",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","17",{"name":"twitter:title","content":"Khoj AI"}],["$","meta","18",{"name":"twitter:description","content":"Your Second Brain."}],["$","meta","19",{"name":"twitter:image","content":"https://assets.khoj.dev/khoj_lantern_256x256.png"}],["$","meta","20",{"name":"twitter:image:width","content":"256"}],["$","meta","21",{"name":"twitter:image:height","content":"256"}],["$","meta","22",{"name":"twitter:image","content":"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"}],["$","meta","23",{"name":"twitter:image:width","content":"1200"}],["$","meta","24",{"name":"twitter:image:height","content":"630"}],["$","link","25",{"rel":"icon","href":"/static/assets/icons/khoj_lantern.ico"}],["$","link","26",{"rel":"apple-touch-icon","href":"/static/assets/icons/khoj_lantern_256x256.png"}],["$","meta","27",{"name":"next-size-adjust"}]]
7
7
  1:null
@@ -850,7 +850,7 @@ python_code_generation_prompt = PromptTemplate.from_template(
850
850
  You are Khoj, an advanced python programmer. You are tasked with constructing a python program to best answer the user query.
851
851
  - The python program will run in a pyodide python sandbox with no network access.
852
852
  - You can write programs to run complex calculations, analyze data, create charts, generate documents to meticulously answer the query.
853
- - The sandbox has access to the standard library, matplotlib, panda, numpy, scipy, bs4, sympy, brotli, cryptography, fast-parquet.
853
+ - The sandbox has access to the standard library, matplotlib, panda, numpy, scipy, bs4 and sympy packages. The requests, torch, catboost, tensorflow and tkinter packages are not available.
854
854
  - List known file paths to required user documents in "input_files" and known links to required documents from the web in the "input_links" field.
855
855
  - The python program should be self-contained. It can only read data generated by the program itself and from provided input_files, input_links by their basename (i.e filename excluding file path).
856
856
  - Do not try display images or plots in the code directly. The code should save the image or plot to a file instead.
@@ -333,9 +333,10 @@ def construct_structured_message(
333
333
  ChatModelOptions.ModelType.GOOGLE,
334
334
  ChatModelOptions.ModelType.ANTHROPIC,
335
335
  ]:
336
- constructed_messages: List[Any] = [
337
- {"type": "text", "text": message},
338
- ]
336
+ if not attached_file_context and not (vision_enabled and images):
337
+ return message
338
+
339
+ constructed_messages: List[Any] = [{"type": "text", "text": message}]
339
340
 
340
341
  if not is_none_or_empty(attached_file_context):
341
342
  constructed_messages.append({"type": "text", "text": attached_file_context})
@@ -433,20 +434,19 @@ def generate_chatml_messages_with_context(
433
434
  reconstructed_context_message = ChatMessage(content=message_context, role="user")
434
435
  chatml_messages.insert(0, reconstructed_context_message)
435
436
 
436
- if chat.get("images"):
437
- if role == "assistant":
438
- # Issue: the assistant role cannot accept an image as a message content, so send it in a separate user message.
439
- file_attachment_message = construct_structured_message(
440
- message=prompts.generated_image_attachment.format(),
441
- images=chat.get("images"),
442
- model_type=model_type,
443
- vision_enabled=vision_enabled,
444
- )
445
- chatml_messages.append(ChatMessage(content=file_attachment_message, role="user"))
446
- else:
447
- message_content = construct_structured_message(
448
- chat_message, chat.get("images"), model_type, vision_enabled
449
- )
437
+ if chat.get("images") and role == "assistant":
438
+ # Issue: the assistant role cannot accept an image as a message content, so send it in a separate user message.
439
+ file_attachment_message = construct_structured_message(
440
+ message=prompts.generated_image_attachment.format(),
441
+ images=chat.get("images"),
442
+ model_type=model_type,
443
+ vision_enabled=vision_enabled,
444
+ )
445
+ chatml_messages.append(ChatMessage(content=file_attachment_message, role="user"))
446
+
447
+ message_content = construct_structured_message(
448
+ chat_message, chat.get("images") if role == "user" else [], model_type, vision_enabled
449
+ )
450
450
 
451
451
  reconstructed_message = ChatMessage(content=message_content, role=role)
452
452
  chatml_messages.insert(0, reconstructed_message)
khoj/utils/helpers.py CHANGED
@@ -366,7 +366,7 @@ tool_descriptions_for_llm = {
366
366
  ConversationCommand.Notes: "To search the user's personal knowledge base. Especially helpful if the question expects context from the user's notes or documents.",
367
367
  ConversationCommand.Online: "To search for the latest, up-to-date information from the internet. Note: **Questions about Khoj should always use this data source**",
368
368
  ConversationCommand.Webpage: "To use if the user has directly provided the webpage urls or you are certain of the webpage urls to read.",
369
- ConversationCommand.Code: "To run Python code in a Pyodide sandbox with no network access. Helpful when need to parse information, run complex calculations, create plaintext documents, and create charts with quantitative data. Matplotlib, bs4, pandas, numpy, etc. are available.",
369
+ ConversationCommand.Code: "To run Python code in a Pyodide sandbox with no network access. Helpful when need to parse complex information, run complex calculations, create plaintext documents, and create charts with quantitative data. Only matplotlib, panda, numpy, scipy, bs4 and sympy external packages are available.",
370
370
  ConversationCommand.Summarize: "To retrieve an answer that depends on the entire document or a large text.",
371
371
  }
372
372
 
@@ -374,7 +374,7 @@ function_calling_description_for_llm = {
374
374
  ConversationCommand.Notes: "To search the user's personal knowledge base. Especially helpful if the question expects context from the user's notes or documents.",
375
375
  ConversationCommand.Online: "To search the internet for information. Useful to get a quick, broad overview from the internet. Provide all relevant context to ensure new searches, not in previous iterations, are performed.",
376
376
  ConversationCommand.Webpage: "To extract information from webpages. Useful for more detailed research from the internet. Usually used when you know the webpage links to refer to. Share the webpage links and information to extract in your query.",
377
- ConversationCommand.Code: "To run Python code in a Pyodide sandbox with no network access. Helpful when need to parse information, run complex calculations, create plaintext documents, and create charts with quantitative data. Matplotlib, bs4, pandas, numpy, etc. are available.",
377
+ ConversationCommand.Code: "To run Python code in a Pyodide sandbox with no network access. Helpful when need to parse complex information, run complex calculations, create plaintext documents, and create charts with quantitative data. Only matplotlib, panda, numpy, scipy, bs4 and sympy external packages are available.",
378
378
  }
379
379
 
380
380
  mode_descriptions_for_llm = {
@@ -235,6 +235,10 @@ def initialization(interactive: bool = True):
235
235
  # Get OpenAI configs with custom base URLs
236
236
  custom_configs = AiModelApi.objects.exclude(api_base_url__isnull=True)
237
237
 
238
+ # Only enable for whitelisted provider names (i.e Ollama) for now
239
+ # TODO: This is hacky. Will be replaced with more robust solution based on provider type enum
240
+ custom_configs = custom_configs.filter(name__in=["Ollama"])
241
+
238
242
  for config in custom_configs:
239
243
  try:
240
244
  # Create OpenAI client with custom base URL
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: khoj
3
- Version: 1.30.11.dev58
3
+ Version: 1.30.11.dev65
4
4
  Summary: Your Second Brain
5
5
  Project-URL: Homepage, https://khoj.dev
6
6
  Project-URL: Documentation, https://docs.khoj.dev
@@ -32,7 +32,7 @@ Requires-Dist: defusedxml==0.7.1
32
32
  Requires-Dist: django-apscheduler==0.6.2
33
33
  Requires-Dist: django-phonenumber-field==7.3.0
34
34
  Requires-Dist: django-unfold==0.42.0
35
- Requires-Dist: django==5.0.9
35
+ Requires-Dist: django==5.0.10
36
36
  Requires-Dist: docx2txt==0.8
37
37
  Requires-Dist: einops==0.8.0
38
38
  Requires-Dist: fastapi>=0.110.0
@@ -8,7 +8,7 @@ khoj/app/asgi.py,sha256=soh3C1xazlgHt_bDgKzrfzo2TKXbNYJsckcXNEgTip8,388
8
8
  khoj/app/settings.py,sha256=N5hYJzHm2QPRmiBIEJtnXhwg0kDrfJtAxFUuSg3XLCI,6787
9
9
  khoj/app/urls.py,sha256=7ECnusoAPAfbO_H_b5FUzYGvnb4LLdWaRDyKNvYuBvg,869
10
10
  khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- khoj/database/admin.py,sha256=Deg0fUKvqbSJvi9ZPl5gir5Ve0B9cH9Xl4aa2y8tROw,12650
11
+ khoj/database/admin.py,sha256=Yj05OCDE2bKv7jvfjMMjSPIJWw5-HHlyA19dOSRsSF4,12677
12
12
  khoj/database/apps.py,sha256=pM4tkX5Odw4YW_hLLKK8Nd5kqGddf1en0oMCea44RZw,153
13
13
  khoj/database/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
14
14
  khoj/database/adapters/__init__.py,sha256=Qod8g1OpvTm9iHt4ifX5F0Ebdkurj6-UWgCkamQz2LM,69199
@@ -106,28 +106,26 @@ khoj/database/migrations/0074_alter_conversation_title.py,sha256=dR_CLYOaZgkWyKG
106
106
  khoj/database/migrations/0075_migrate_generated_assets_and_validate.py,sha256=zFcR-nBr66LUFpibypm4qkvPJ4p_wlamnZjU4SCxJ2o,3294
107
107
  khoj/database/migrations/0076_rename_openaiprocessorconversationconfig_aimodelapi_and_more.py,sha256=D_qIoZ6Zr1Y1QhXdDhXlCVXix18fd47fMlRSMDHLzT8,708
108
108
  khoj/database/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
- khoj/database/models/__init__.py,sha256=MwHX9RM1DeFBdAOZ6MynEG0AQOOwVCbSEJWkmt1tAMA,27979
109
+ khoj/database/models/__init__.py,sha256=XVl0qt3nXSXe4rw0GnqZXW5xHPhe9VY50TnhdtrePis,28462
110
110
  khoj/interface/compiled/agents.svg,sha256=yFCRwIM-Qawa0C5ggAo3ekb-Q1ElmotBOKIGhtfIQqM,1722
111
111
  khoj/interface/compiled/automation.svg,sha256=o7L2XYwJWRSMvl8h6TBv6Pt28RTRVMHqF04EPY0AFj0,1467
112
112
  khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvtM3A,2424
113
113
  khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
114
114
  khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
115
115
  khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
116
- khoj/interface/compiled/index.html,sha256=L4etapYrGpNVH1-UiSuE3BHwL-PqQjq6YYxa5KWuwTc,13432
117
- khoj/interface/compiled/index.txt,sha256=AGIPfYS9_Ah-OSAvVhpSuJMlmPX7PF41Q9O6kcoyrNw,5582
116
+ khoj/interface/compiled/index.html,sha256=2HJsFbAi4ktKUcXQVvoWUlH4seQUHpC8kttkg2Ba3F8,13432
117
+ khoj/interface/compiled/index.txt,sha256=313Pd8ts0k6SNNkUPNnJ9CyggZq9oft9fEO8e6Ap8YE,5582
118
118
  khoj/interface/compiled/khoj.webmanifest,sha256=9wOK2BMS6xH5NKd2eaUgTLg9WepIxB2K2U33KU89LD8,2543
119
119
  khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
120
120
  khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
121
121
  khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
122
122
  khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
123
123
  khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
124
- khoj/interface/compiled/404/index.html,sha256=WHwGpPuWyXzhmD8h4Y0ExH9NMeQg8Y5GlhIo2IGaR30,13559
125
- khoj/interface/compiled/_next/static/alD7GUX8kcD6ZoOrHSkOj/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
126
- khoj/interface/compiled/_next/static/alD7GUX8kcD6ZoOrHSkOj/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
124
+ khoj/interface/compiled/404/index.html,sha256=45ll_qb7MsxW8iK1CyidWMxwsoFWcf0eZkH5VsWJgnk,13559
127
125
  khoj/interface/compiled/_next/static/chunks/1210.ef7a0f9a7e43da1d.js,sha256=yOh1qtmNHPpDd6vR7CJOXSbq8M_slPujdTR_OXxaEYU,2121
128
126
  khoj/interface/compiled/_next/static/chunks/1279-4cb23143aa2c0228.js,sha256=zHMz-ixoNkLNUjN2-C48RGEyMs2mI9wsNRCczXnzIvQ,45616
129
127
  khoj/interface/compiled/_next/static/chunks/1459.690bf20e7d7b7090.js,sha256=z-ruZPxF_Z3ef_WOThd9Ox36AMhxaW3znizVivNnA34,34239
130
- khoj/interface/compiled/_next/static/chunks/1603-e40aadd1e56ab030.js,sha256=w6X6hpZolt9qMEH3kCM9SUumuw2VqmQL8oR3nBLg3Rk,91563
128
+ khoj/interface/compiled/_next/static/chunks/1603-13cef426e0e650ec.js,sha256=jq5VXFFMKF0ZgJNa3GcdqB6e9Pu2FGzUM_ynlNmP56Y,91929
131
129
  khoj/interface/compiled/_next/static/chunks/1970-1b63ac1497b03a10.js,sha256=r9S2sLd2AcvG8lqQloOcuDwvdtUdDA16CpsJJ9zs2Fs,29906
132
130
  khoj/interface/compiled/_next/static/chunks/2646-92ba433951d02d52.js,sha256=Gf6rp2_N_ba2c4P84yJ1sW1I6Kcp7pjCkLTnYNP7_v8,237441
133
131
  khoj/interface/compiled/_next/static/chunks/3072-be830e4f8412b9d2.js,sha256=BBUjJdE8AgmhoF6PA8WPC8d-01ppYgcZpjNyTGeayRE,35457
@@ -150,22 +148,22 @@ khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256
150
148
  khoj/interface/compiled/_next/static/chunks/main-1ea5c2e0fdef4626.js,sha256=8_u87PGI3PahFbDfGWGvpD-a18J7X7ChUqWIeqxVq7g,111061
151
149
  khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
152
150
  khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
153
- khoj/interface/compiled/_next/static/chunks/webpack-5203c3872078c10c.js,sha256=6KnHYl8G5sgHqQGUwZ0JFnufnN-yjXvjzN7JHKqr0iw,3991
151
+ khoj/interface/compiled/_next/static/chunks/webpack-64477b5a1e621214.js,sha256=v8DO-8HTKm12pVXSR6O_eaV8e4RYzRWfJDeDtSepWsQ,3991
154
152
  khoj/interface/compiled/_next/static/chunks/app/layout-6310c57b674dd6f5.js,sha256=w4zG3noOTaiH6TMWlvYaV2jpxzSgmFNj10o1Yq6mKtI,709
155
- khoj/interface/compiled/_next/static/chunks/app/page-e79ace822d51557b.js,sha256=MPNqEOO96HJrYTfjJp6v4rU8_AHmce53UyuHRFJ0r0M,33109
153
+ khoj/interface/compiled/_next/static/chunks/app/page-3ffd8f0934b896f3.js,sha256=pggs7VXApO6QgEWIUMJn9wSSlAGJO0gZOIv3lgFjtys,33109
156
154
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-cfba071f5a657256.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
157
- khoj/interface/compiled/_next/static/chunks/app/agents/layout-f2ea2b26fc0e78b1.js,sha256=G_qzJ-78ks26uCT6sW06IJbPds_4hRH4Ait6-rqh1-w,180
158
- khoj/interface/compiled/_next/static/chunks/app/agents/page-f5c0801b27a8e95e.js,sha256=ZBZOd8ajB4OubnrHYQLFtmVi6C0GfXu4tBbuHPsS81g,11745
155
+ khoj/interface/compiled/_next/static/chunks/app/agents/layout-1878cc328ea380bd.js,sha256=foKQN1MOnaGA0hgPpbiLKvn7H87Xmmr_TC2nKkkH5I8,180
156
+ khoj/interface/compiled/_next/static/chunks/app/agents/page-2ffa7560aebff9a1.js,sha256=JU0mCi3ZuJlCmaYiB292hdOO5znLVRRJWKU07YeALaQ,11740
159
157
  khoj/interface/compiled/_next/static/chunks/app/automations/layout-7f1b79a2c67af0b4.js,sha256=MvPp1IfxmpfRaT4XDDpj-l6F4CV-loeGqi315QYXKZw,5143
160
- khoj/interface/compiled/_next/static/chunks/app/automations/page-8691f6c09a0acd44.js,sha256=WOsq8GJW3vAhqzqgU_M_23GJRw1r2qYl0chK1L8GHAg,35406
161
- khoj/interface/compiled/_next/static/chunks/app/chat/layout-1072c3b0ab136e74.js,sha256=EaIIPpDq5wl_oI5gnsIfNygswHSMRbLoAx7BuBZzGJ0,180
162
- khoj/interface/compiled/_next/static/chunks/app/chat/page-135d56dd4263e40d.js,sha256=OUm7ehx0ufE6aAOvo8jEuwuNnPWbzyiRS_-q_ETUYlU,7134
163
- khoj/interface/compiled/_next/static/chunks/app/search/layout-cae84c87073877f0.js,sha256=DBqvyhiyjNn9uzNbt7l4g_TT0kFKsXkv2UgCuXv_hDI,180
164
- khoj/interface/compiled/_next/static/chunks/app/search/page-e8b578d155550386.js,sha256=fgsV5-mo0VzHTN8s0ZRJwAqgNHTYKUxv1ebHGzRQN3s,6948
158
+ khoj/interface/compiled/_next/static/chunks/app/automations/page-b0a6a6ed2267c1a2.js,sha256=0Vqc5rqS4PDIdGfStH3XDo7bf834iXnLvujWzOSSTqg,35406
159
+ khoj/interface/compiled/_next/static/chunks/app/chat/layout-9219a85f3477e722.js,sha256=m3FPwrm9nauoPVn_HTs2lgIb3YNc93tzAjKWazSd5ko,180
160
+ khoj/interface/compiled/_next/static/chunks/app/chat/page-02f8616bba3e449e.js,sha256=UKea2PL-aZfeL93t2RDNzmrlZci-E5SCc59vUubyQfo,7139
161
+ khoj/interface/compiled/_next/static/chunks/app/search/layout-2ca475462c0b2176.js,sha256=IFALoWD82flk0Rqq6cHUfnisFDLMsi8m7m3X6qKLhwU,180
162
+ khoj/interface/compiled/_next/static/chunks/app/search/page-059f237514f77628.js,sha256=oySWDErv9jG8CKknKa3en2fzbdFgeq1FvSbTwBJMyhY,6948
165
163
  khoj/interface/compiled/_next/static/chunks/app/settings/layout-f285795bc3154b8c.js,sha256=SBNluXZKXEfcDqJz2W3t8US0nsRbPHV2iblQ5Xiv2Y8,13218
166
- khoj/interface/compiled/_next/static/chunks/app/settings/page-b6c835050c970be7.js,sha256=cdLFFn8J9InHmLeWJVsmz1DWO1cJbOCiyWoVR7Q083Y,32244
167
- khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-dc97434f0354a74e.js,sha256=BK0-si_1SxlueaYQ48rT9jBts9An2I6OUGkBN0_qpKI,180
168
- khoj/interface/compiled/_next/static/chunks/app/share/chat/page-635635e4fb39fe29.js,sha256=1jCQbNiSBpyUU6JWbZMi9s73_4M5A_nAfNCiXJoiLNs,4366
164
+ khoj/interface/compiled/_next/static/chunks/app/settings/page-32e9423bede5b4a1.js,sha256=H5Tan__dWq_AmDt7qVVj6cU_BDwuLcoOL22uEyTnbyg,32244
165
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-592e8c470f2c2084.js,sha256=f4uHzU7NvCArgecxL5t2nKni8w9rdQp_rZV6GPhDZHg,180
166
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/page-0b8d90dc57dbc1d8.js,sha256=JfyH3AEqVfXPeW24llHGu3tJueOOvnrTa6_wmkhbr5M,4366
169
167
  khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha256=eqdFPAN_XFyMUzZ9qwFk-_rhMWZrU7lgNVt1foVUANo,286
170
168
  khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
171
169
  khoj/interface/compiled/_next/static/css/089de1d8526b96e9.css,sha256=sjpmNlk7H2uKEYK9_DFccNq9J8V9uR799cS0yT-E7EI,4041
@@ -173,9 +171,9 @@ khoj/interface/compiled/_next/static/css/1f293605f2871853.css,sha256=G2b3Wx4e0DR
173
171
  khoj/interface/compiled/_next/static/css/3c34171b174cc381.css,sha256=NEDZ3BbH1X6AYS6epyE-j3SdOZDE1UL3FzKnXVGCYfE,3058815
174
172
  khoj/interface/compiled/_next/static/css/3cf13271869a4aeb.css,sha256=sGjJTeMeN6wbQF4OCPgWYgJmSLLSHyzIH2rSVstWx7k,1857
175
173
  khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css,sha256=3CjTMmtMrm_MYt1ywtUh2MHEjSLSl356SQLl4hdBuYw,534
176
- khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
177
174
  khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css,sha256=ojDUPJ9fJpEo9DzTAsEa-k1cg7Bef-nSTfpszMiqknQ,17711
178
- khoj/interface/compiled/_next/static/css/a914be49ee676a12.css,sha256=tNZ7WNge9D9rVE2md5JW0iE8fkeEohHskF6Qyy6J5Ek,9931
175
+ khoj/interface/compiled/_next/static/css/80bd6301fc657983.css,sha256=T7_aQHcWpQBQLKadauHNzjYGw713FtRNTlUqmJjsL6I,1634
176
+ khoj/interface/compiled/_next/static/css/cb167d6771069fbf.css,sha256=yZPsTnUYGAD_1KzBmop3_Zs7o2M7il0q4XjYpIOu_ZM,9211
179
177
  khoj/interface/compiled/_next/static/media/1d8a05b60287ae6c-s.p.woff2,sha256=IzKBwB_bpSGvO7C9aRv29Js-jAbZPRDI-D-P4H2P918,14508
180
178
  khoj/interface/compiled/_next/static/media/6f22fce21a7c433c-s.woff2,sha256=T773llrgKNUxGlJzhaH0DUs2rcuRHU7bQpf0DTC4sSU,21812
181
179
  khoj/interface/compiled/_next/static/media/77c207b095007c34-s.p.woff2,sha256=vk9tBKB084h1U8mxwJ5WNHDz_pdUVqE_xb9-ILVhKXY,168144
@@ -249,8 +247,10 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
249
247
  khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
250
248
  khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
251
249
  khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
252
- khoj/interface/compiled/agents/index.html,sha256=4ZoOAFBfbkA98-OIsAndtGswQ3GsP7aoMZNHEL88tAw,14402
253
- khoj/interface/compiled/agents/index.txt,sha256=T1oWNmclcFSF5HRtXI0dWQPtX3tKVW7Kue0IgmzXcoE,6228
250
+ khoj/interface/compiled/_next/static/pzCibzlX5xLa_-x0rn8Ch/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
251
+ khoj/interface/compiled/_next/static/pzCibzlX5xLa_-x0rn8Ch/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
252
+ khoj/interface/compiled/agents/index.html,sha256=sUFXuNMSDRKJXS-ccvmuNvRq7uvrO20XAsbiq9EV_4s,14091
253
+ khoj/interface/compiled/agents/index.txt,sha256=MqECqZkBboy22x12C3UOX7QQqCcSw-30zD6RR2kH-5w,6095
254
254
  khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
255
255
  khoj/interface/compiled/assets/icons/khoj_lantern.svg,sha256=I_8XP5X84gEOoCRhCRKOQn_GKZrz3SUBXct7WxHvY7c,8767
256
256
  khoj/interface/compiled/assets/icons/khoj_lantern_1200x1200.png,sha256=xDx0bbD-WMflgg8zck9oPIIuTIvywtuED2k7CjSQS4w,66194
@@ -265,16 +265,16 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
265
265
  khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
266
266
  khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
267
267
  khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
268
- khoj/interface/compiled/automations/index.html,sha256=THkqtqY7afLIqNF1cugSaDGoeruN35zuNgwwUuexIzA,33921
269
- khoj/interface/compiled/automations/index.txt,sha256=7ucPYfGBBO3kZQVlSDvSdm3mjR-_JTKJM4PjVtDAimw,6373
270
- khoj/interface/compiled/chat/index.html,sha256=-p-EzdQnyUG0vgVtoBWpYeRUdqtV3JGzdF-xqJzuWV4,14964
271
- khoj/interface/compiled/chat/index.txt,sha256=bgRkApTOPWZltCfTmT8g7QX3EGZFtqFLDEhiNw9qwBs,6495
272
- khoj/interface/compiled/search/index.html,sha256=1RYTmb52vsxwDXoVxDZBoNsfirqALoRrUUAeOcvId-I,32875
273
- khoj/interface/compiled/search/index.txt,sha256=SOsWwa1lRVG4V066EbbFLiOys5xJaObKncjczDq2OF8,5900
274
- khoj/interface/compiled/settings/index.html,sha256=Gm5Rmr9bYR2ZxPmmxWXgYBcpcENx83bxeBokAH1c0pE,14885
275
- khoj/interface/compiled/settings/index.txt,sha256=10bJGEA0R32e4YC-2_ZX4lXK8oFMasHkoaCAGWHsjMc,6496
276
- khoj/interface/compiled/share/chat/index.html,sha256=fjBagg_UZTQc2xPPs6S6ENJcxIth5K9b9urdAprc3eY,16611
277
- khoj/interface/compiled/share/chat/index.txt,sha256=cjDY3hNNp7u3xdd4TI0OrWeXSrXHce3vKewFvYq7LP8,7444
268
+ khoj/interface/compiled/automations/index.html,sha256=1j1Gq4vtjoHs-R1Of_o5DHioEK4EXaI6fGlQV0GSjRI,33921
269
+ khoj/interface/compiled/automations/index.txt,sha256=a0UyAXpq1YkaKmcVyiVphHMXp3dyOUaxyeBlgvazkQ0,6373
270
+ khoj/interface/compiled/chat/index.html,sha256=rIyLf5IlxMYRewa8jSHMRdhHy9h-vdVl5pECl-TjEqw,15274
271
+ khoj/interface/compiled/chat/index.txt,sha256=e66ia_GMcsXAjiTzPv20YnOFpQsEu7y5s7vMLCrPQZg,6628
272
+ khoj/interface/compiled/search/index.html,sha256=VqW1K-w8LXiA9EcSC1ZL0ioYWXQWzIiLEloLQw8lNRc,32875
273
+ khoj/interface/compiled/search/index.txt,sha256=t_G-TtRri_FRJOkQ3UxEjGRgoAf7AOiNnoPChHFYNGY,5900
274
+ khoj/interface/compiled/settings/index.html,sha256=zMcdd7veFIi9qPLRbMYMrKDAmXmXYCoMe83c_-UHdvA,14885
275
+ khoj/interface/compiled/settings/index.txt,sha256=EqH1F6yLG5HofQINjk7Ix2PopMc54pFlr5cKu1NhZ9o,6496
276
+ khoj/interface/compiled/share/chat/index.html,sha256=QJuCPgZDQi1Z47vjmUT9F0M1ZcXFhhyHo1FJ-28A7hI,16611
277
+ khoj/interface/compiled/share/chat/index.txt,sha256=GsviCwCwwUofDL7xrR3C1dPBtV6BmGuD5IPhrU7CY4Q,7444
278
278
  khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
279
279
  khoj/interface/email/magic_link.html,sha256=EoGKQucfPj3xQrWXhSZAzPFOYCHF_ZX94TWCd1XHl1M,941
280
280
  khoj/interface/email/task.html,sha256=tY7a0gzVeQ2lSQNu7WyXR_s7VYeWTrxWEj1iHVuoVE4,2813
@@ -326,8 +326,8 @@ khoj/processor/content/pdf/pdf_to_entries.py,sha256=GQUvab61okhV9_DK0g2MCrMq8wKp
326
326
  khoj/processor/content/plaintext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
327
327
  khoj/processor/content/plaintext/plaintext_to_entries.py,sha256=wFZwK_zIc7gWbRtO9sOHo9KvfhGAzL9psX_nKWYFduo,4975
328
328
  khoj/processor/conversation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
329
- khoj/processor/conversation/prompts.py,sha256=Xn7lqyDalQKC5fFkARu6Tzb7o-xEwEhtuPbrJAOnQlA,50624
330
- khoj/processor/conversation/utils.py,sha256=VWSO65A1yAnPcoiGYdOPUKd7YsMp9WsXbFNJMtWXLKc,32706
329
+ khoj/processor/conversation/prompts.py,sha256=HIYrf8trCZ9-8UyC2hkq4X0EkL9bsZQiiqSveiWSMUU,50682
330
+ khoj/processor/conversation/utils.py,sha256=d8_D1-hRfipkCq2dGO7XS42RctBIywtAiNTaw7TlJwc,32726
331
331
  khoj/processor/conversation/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
332
332
  khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=ZybRPZ4yXkFh9kCgoj61pfHL1KtOgSPlxpVauaT5vBY,9091
333
333
  khoj/processor/conversation/anthropic/utils.py,sha256=En5uBBsxDBWb6QTs5g8nH_f2FVBX1uYK40i13fDRAhc,7327
@@ -376,15 +376,15 @@ khoj/utils/cli.py,sha256=IIZ2qH0v7Jmqw3JRH1K5EMp9TRze6en3GYsASnglMEM,3916
376
376
  khoj/utils/config.py,sha256=aiOkH0je8A30DAGYTHMRePrgJonFv_i07_7CdhhhcdA,1805
377
377
  khoj/utils/constants.py,sha256=ox1ROCgXp6QkDMS96jqhsQ9_oFZkHnYJTyvKL5emE_M,2143
378
378
  khoj/utils/fs_syncer.py,sha256=5nqwAZqRk3Nwhkwd8y4IomTPZQmW32GwAqyMzal5KyY,9996
379
- khoj/utils/helpers.py,sha256=rY6KTs1Rdfzv9WkcCaL-EQp0pmo-dybaxpl2BWAWE4o,22727
380
- khoj/utils/initialization.py,sha256=Za9NNOh_97Hlajh5pyrPs3GpcguGVUk7OafLpo5JyGs,13360
379
+ khoj/utils/helpers.py,sha256=RKeHI8i5NYsAUFREKq8rQ0ChRggivspcunGe1dearE0,22809
380
+ khoj/utils/initialization.py,sha256=TgVI7j5716Dk5N1R_dVl4M37TeJ9py1WSm2B4BxusBc,13617
381
381
  khoj/utils/jsonl.py,sha256=0Ac_COqr8sLCXntzZtquxuCEVRM2c3yKeDRGhgOBRpQ,1192
382
382
  khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
383
383
  khoj/utils/rawconfig.py,sha256=bQ_MGbBzYt6ZUIsHUwZjaHKDLh6GQ7h-sENkv3fyVbQ,5028
384
384
  khoj/utils/state.py,sha256=axjZhnby8L3bY-N1VVoWgBH1RpFGK6U3_ZeNo1Kt7hs,1679
385
385
  khoj/utils/yaml.py,sha256=qy1Tkc61rDMesBw_Cyx2vOR6H-Hngcsm5kYfjwQBwkE,1543
386
- khoj-1.30.11.dev58.dist-info/METADATA,sha256=b3e1oUQ3B7CStDeLzitAb8CqyO5OVeLxbkWO1P3t4ic,7569
387
- khoj-1.30.11.dev58.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
388
- khoj-1.30.11.dev58.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
389
- khoj-1.30.11.dev58.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
390
- khoj-1.30.11.dev58.dist-info/RECORD,,
386
+ khoj-1.30.11.dev65.dist-info/METADATA,sha256=F-ZPskM_fw1njM8lvPx_1Va1teqLzwkzeHa6I9_3vYE,7570
387
+ khoj-1.30.11.dev65.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
388
+ khoj-1.30.11.dev65.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
389
+ khoj-1.30.11.dev65.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
390
+ khoj-1.30.11.dev65.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8459,244,3317,7138],{63521:function(){}},function(n){n.O(0,[2971,7023,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3317,244,8459,7138],{63521:function(){}},function(n){n.O(0,[2971,7023,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244,3317,8459,7138],{63521:function(){}},function(n){n.O(0,[2971,7023,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138,244,3317,8459],{63521:function(){}},function(n){n.O(0,[2971,7023,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- div.agents_titleBar__FzYbY{padding:16px 0;text-align:left}.agents_agentPersonality__o0Ysz p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agents_agentPersonality__o0Ysz{text-align:left;grid-column:span 3;overflow:hidden}div.agents_pageLayout__gR3S3{max-width:60vw;margin:auto auto 2rem}div.agents_sidePanel__wGVGc{position:fixed;height:100%;z-index:1}button.agents_infoButton__NqI7E{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}div.agents_agentList__XVx4A{display:grid;gap:20px;padding-top:30px;margin-right:auto;grid-auto-flow:row;grid-template-columns:1fr 1fr;margin-left:auto}@media only screen and (max-width:768px){div.agents_agentList__XVx4A{width:100%;padding:0;margin-right:auto;margin-left:auto;grid-template-columns:1fr}div.agents_pageLayout__gR3S3{max-width:90vw}div.agents_sidePanel__wGVGc{position:relative;height:100%}}
@@ -1 +0,0 @@
1
- div.chat_main__8xQu5{height:100dvh;color:hsla(var(--foreground))}.chat_suggestions__m8n2t{display:flex;overflow-x:none;height:50%;padding:10px;white-space:nowrap;gap:1rem}div.chat_inputBox__LOFws{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.chat_inputBox__LOFws{border:none}input.chat_inputBox__LOFws:focus{outline:none;background-color:transparent}div.chat_inputBox__LOFws:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.chat_chatBodyFull__FfKEK{display:grid;grid-template-columns:1fr;height:100%}button.chat_inputBox__LOFws{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.chat_chatBody__sS1LX{display:grid;grid-template-columns:1fr 1fr;height:100%}.chat_inputBox__LOFws{color:hsla(var(--foreground))}div.chat_chatLayout__pR203{display:grid;grid-template-columns:auto 1fr;gap:1rem}div.chat_chatBox__FBct_{display:grid;height:100%}div.chat_titleBar__R5QlK{display:grid;grid-template-columns:1fr auto}div.chat_chatBoxBody__qT_SC{display:grid;height:100%;width:95%;margin:auto}div.chat_agentIndicator__8V55w a{display:flex;text-align:center;align-content:center;align-items:center}div.chat_agentIndicator__8V55w{padding:10px}div.chat_chatTitleWrapper__6ChWq{grid-template-columns:1fr auto}@media screen and (max-width:768px){div.chat_inputBox__LOFws{margin-bottom:0}div.chat_chatBoxBody__qT_SC{width:100%}div.chat_chatBody__sS1LX{grid-template-columns:0fr 1fr}div.chat_chatBox__FBct_{padding:0;height:100%}div.chat_chatLayout__pR203{gap:0;grid-template-columns:1fr}}div.sidePanel_session__R9wgH{padding:.5rem;margin-bottom:.25rem;border-radius:.5rem;cursor:pointer;max-width:14rem;font-size:medium;display:grid;grid-template-columns:minmax(auto,400px) 1fr;gap:0}div.sidePanel_compressed__YBPtM{grid-template-columns:minmax(12rem,100%) 1fr 1fr}div.sidePanel_sessionHover__iwfo8,div.sidePanel_session__R9wgH:hover{background-color:hsla(var(--popover))}div.sidePanel_session__R9wgH:hover{color:hsla(var(--popover-foreground))}div.sidePanel_session__R9wgH a{text-decoration:none}button.sidePanel_button__ihOfG{border:none;outline:none;background-color:transparent;cursor:pointer;color:var(--main-text-color);width:24px}button.sidePanel_showMoreButton__dt9Zw{border-radius:.5rem;padding:8px}div.sidePanel_panel__VZ8ye{display:flex;flex-direction:column;padding:1rem;overflow-y:auto;max-width:auto;transition:background-color .5s}div.sidePanel_expanded__ZjTHo{gap:1rem;background-color:hsla(var(--muted));height:100%}div.sidePanel_collapsed__OjVmG{display:grid;grid-template-columns:1fr;height:-moz-fit-content;height:fit-content;padding:1rem 0 0 1rem}p.sidePanel_session__R9wgH{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-size:small}div.sidePanel_header__d5cGA{display:grid;grid-template-columns:1fr auto}div.sidePanel_profile__x0w58{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;margin-top:auto}div.sidePanel_panelWrapper__k_lal{display:grid;grid-template-rows:1fr auto auto;height:100%}div.sidePanel_modalSessionsList__nKe2n{position:fixed;top:0;left:0;width:100%;height:100%;background-color:hsla(var(--frosted-background-color));z-index:1;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}div.sidePanel_modalSessionsList__nKe2n div.sidePanel_content__Wq20_{max-width:80%;max-height:80%;background-color:hsla(var(--frosted-background-color));overflow:auto;padding:20px;border-radius:10px}div.sidePanel_modalSessionsList__nKe2n div.sidePanel_session__R9wgH{max-width:100%;text-overflow:ellipsis}@media screen and (max-width:768px){div.sidePanel_panel__VZ8ye{padding:.25rem;width:100%}div.sidePanel_expanded__ZjTHo{z-index:1}div.sidePanel_singleReference__r9z1n{padding:4px}div.sidePanel_panelWrapper__k_lal{width:100%;padding:0 1rem}div.sidePanel_session__R9wgH.sidePanel_compressed__YBPtM{max-width:100%;display:grid;grid-template-columns:70vw auto;justify-content:space-between}div.sidePanel_session__R9wgH{max-width:100%;grid-template-columns:minmax(auto,70vw) 1fr}}menu.navMenu_menu__fqlFF a{text-decoration:none;font-size:medium;font-weight:400;padding:0 4px;border-radius:4px;display:flex;justify-self:center;margin:0;align-items:center;gap:4px}a.navMenu_selected__A__aP{background-color:hsl(var(--accent))}div.navMenu_titleBar__HJoio{display:flex;justify-content:space-between;align-content:space-evenly;align-items:start}div.navMenu_titleBar__HJoio menu{padding:0;margin:0;border-radius:.5rem;display:grid;grid-auto-flow:column;gap:32px}div.navMenu_settingsMenuProfile__3npiK img{border-radius:50%;width:32px;height:32px;margin:0}div.navMenu_settingsMenu__X2i2U{padding:0 4px;border-radius:4px;display:flex;justify-self:center;margin:0;align-items:center}div.navMenu_settingsMenuOptions__KWnLv{display:block;grid-auto-flow:row;position:absolute;background-color:var(--background-color);box-shadow:0 8px 16px 0 rgba(0,0,0,.2);top:64px;text-align:left;padding:8px;border-radius:8px}@media screen and (max-width:600px){menu.navMenu_menu__fqlFF span{display:none}div.navMenu_settingsMenuOptions__KWnLv{right:4px}div.navMenu_titleBar__HJoio{padding:8px}}div.search_searchLayout__fP3m0{display:grid;grid-template-columns:1fr;gap:1rem;height:100vh}div.search_sidePanel__myfc9{position:fixed;height:100%;z-index:1}@media screen and (max-width:768px){div.search_searchLayout__fP3m0{gap:0}div.search_sidePanel__myfc9{position:relative;height:100%}}div.chatHistory_chatHistory__CoaVT{display:flex;flex-direction:column;height:100%;margin:auto}div.chatHistory_agentIndicator__wOU1f a{display:flex;text-align:center;align-content:center;align-items:center}div.chatHistory_trainOfThought__mMWSR{border:1px solid var(--border-color);border-radius:16px;padding:8px 16px;margin:12px}div.chatMessage_chatMessageContainer__sAivf{display:flex;flex-direction:column;margin:12px;border-radius:16px;padding:8px 16px 0;word-break:break-word}div.chatMessage_chatMessageWrapper__u5m8A{padding-left:1rem;padding-bottom:1rem;max-width:80vw}div.chatMessage_chatMessageWrapper__u5m8A ol,div.chatMessage_chatMessageWrapper__u5m8A p:not(:last-child),div.chatMessage_chatMessageWrapper__u5m8A ul{margin-bottom:16px}div.chatMessage_chatMessageWrapper__u5m8A a span{display:revert!important}div.chatMessage_khojfullHistory__NPu2l{border-width:1px;padding-left:4px}div.chatMessage_youfullHistory__ioyfH{max-width:100%}div.chatMessage_chatMessageContainer__sAivf.chatMessage_youfullHistory__ioyfH{padding-left:0}div.chatMessage_you__6GUC4{background-color:hsla(var(--secondary));align-self:flex-end;border-radius:16px}div.chatMessage_khoj__cjWON{background-color:transparent;color:hsl(var(--accent-foreground));align-self:flex-start}div.chatMessage_khojChatMessage__BabQz{padding-top:8px;padding-left:16px}div.chatMessage_emptyChatMessage__J9JRn{display:none}div.chatMessage_imagesContainer__HTRjT{display:flex;overflow-x:auto;padding-bottom:8px;margin-bottom:8px}div.chatMessage_imageWrapper__DF92M{flex:0 0 auto;margin-right:8px}div.chatMessage_imageWrapper__DF92M img{width:auto;height:128px;-o-object-fit:cover;object-fit:cover;border-radius:8px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{height:512px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M{flex:1 1 auto}div.chatMessage_khoj__cjWON div.chatMessage_imagesContainer__HTRjT{display:flex;flex-wrap:wrap;flex-direction:row;overflow-x:hidden}div.chatMessage_chatMessageContainer__sAivf>img{width:auto;height:auto;max-width:100%;max-height:80vh;-o-object-fit:contain;object-fit:contain;display:block;margin-top:.25rem;margin-right:auto}div.chatMessage_chatMessageContainer__sAivf h3 img{width:24px}div.chatMessage_you__6GUC4{color:hsla(var(--secondary-foreground))}div.chatMessage_author__muRtC{font-size:.75rem;color:grey;text-align:right}div.chatMessage_chatFooter__0vR8s{display:flex;justify-content:space-between;min-height:28px}div.chatMessage_chatButtons__Lbk8T{display:flex;justify-content:flex-end;width:-moz-min-content;width:min-content;border:1px solid var(--border-color);border-radius:16px;position:relative;bottom:-12px;background-color:hsla(var(--secondary))}div.chatMessage_chatFooter__0vR8s button{cursor:pointer;color:hsl(var(--muted-foreground));border:none;border-radius:16px;padding:4px;margin-left:4px;margin-right:4px}div.chatMessage_chatFooter__0vR8s button:hover{background-color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv{cursor:pointer;float:right;border-radius:8px}button.chatMessage_codeCopyButton__Y_Ujv:hover{color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv img,button.chatMessage_copyButton__jd7q7 img,div.chatMessage_feedbackButtons___Brdy img{width:24px}div.chatMessage_trainOfThought__mR2Gg strong{font-weight:500}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb strong{font-weight:500;color:hsla(var(--secondary-foreground))}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb p{color:inherit}div.chatMessage_trainOfThoughtElement__le_bC{display:grid;grid-template-columns:auto 1fr;align-items:start}div.chatMessage_trainOfThoughtElement__le_bC ol,div.chatMessage_trainOfThoughtElement__le_bC ul{margin:auto;word-break:break-word}@media screen and (max-width:768px){div.chatMessage_youfullHistory__ioyfH{max-width:90%}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{width:100%;height:auto}}div.chatInputArea_actualInputArea__Ha6cN{display:grid;grid-template-columns:auto 1fr auto auto}.agentCard_agentPersonality__MmRlN p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agentCard_agentPersonality__MmRlN{text-align:left;grid-column:span 3;overflow:hidden}button.agentCard_infoButton__heh_w{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}