khoj 2.0.0b13.dev5__py3-none-any.whl → 2.0.0b13.dev23__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 (174) hide show
  1. khoj/app/README.md +1 -1
  2. khoj/app/urls.py +1 -0
  3. khoj/database/adapters/__init__.py +4 -4
  4. khoj/database/management/commands/delete_orphaned_fileobjects.py +0 -1
  5. khoj/database/migrations/0064_remove_conversation_temp_id_alter_conversation_id.py +1 -1
  6. khoj/database/migrations/0075_migrate_generated_assets_and_validate.py +1 -1
  7. khoj/database/models/__init__.py +6 -6
  8. khoj/database/tests.py +0 -2
  9. khoj/interface/compiled/404/index.html +2 -2
  10. khoj/interface/compiled/_next/static/chunks/{9245.a04e92d034540234.js → 1225.ecac11e7421504c4.js} +3 -3
  11. khoj/interface/compiled/_next/static/chunks/1320.ae930ad00affe685.js +5 -0
  12. khoj/interface/compiled/_next/static/chunks/{1327-3b1a41af530fa8ee.js → 1327-e254819a9172cfa7.js} +1 -1
  13. khoj/interface/compiled/_next/static/chunks/1626.15a8acc0d6639ec6.js +1 -0
  14. khoj/interface/compiled/_next/static/chunks/{3489.c523fe96a2eee74f.js → 1940.d082758bd04e08ae.js} +1 -1
  15. khoj/interface/compiled/_next/static/chunks/{2327-ea623ca2d22f78e9.js → 2327-438aaec1657c5ada.js} +1 -1
  16. khoj/interface/compiled/_next/static/chunks/2475.57a0d0fd93d07af0.js +93 -0
  17. khoj/interface/compiled/_next/static/chunks/2481.5ce6524ba0a73f90.js +55 -0
  18. khoj/interface/compiled/_next/static/chunks/297.4c4c823ff6e3255b.js +174 -0
  19. khoj/interface/compiled/_next/static/chunks/{5639-09e2009a2adedf8b.js → 3260-82d2521fab032ff1.js} +68 -23
  20. khoj/interface/compiled/_next/static/chunks/3353.1c6d553216a1acae.js +1 -0
  21. khoj/interface/compiled/_next/static/chunks/3855.f7b8131f78af046e.js +1 -0
  22. khoj/interface/compiled/_next/static/chunks/3973.dc54a39586ab48be.js +1 -0
  23. khoj/interface/compiled/_next/static/chunks/4241.c1cd170f7f37ac59.js +24 -0
  24. khoj/interface/compiled/_next/static/chunks/{4327.8d2a1b8f1ea78208.js → 4327.f3704dc398c67113.js} +19 -19
  25. khoj/interface/compiled/_next/static/chunks/4505.f09454a346269c3f.js +117 -0
  26. khoj/interface/compiled/_next/static/chunks/4801.96a152d49742b644.js +1 -0
  27. khoj/interface/compiled/_next/static/chunks/5427-a95ec748e52abb75.js +1 -0
  28. khoj/interface/compiled/_next/static/chunks/549.2bd27f59a91a9668.js +148 -0
  29. khoj/interface/compiled/_next/static/chunks/5765.71b1e1207b76b03f.js +1 -0
  30. khoj/interface/compiled/_next/static/chunks/584.d7ce3505f169b706.js +1 -0
  31. khoj/interface/compiled/_next/static/chunks/6240.34f7c1fa692edd61.js +24 -0
  32. khoj/interface/compiled/_next/static/chunks/6d3fe5a5-f9f3c16e0bc0cdf9.js +10 -0
  33. khoj/interface/compiled/_next/static/chunks/{7127-0f4a2a77d97fb5fa.js → 7127-97b83757db125ba6.js} +1 -1
  34. khoj/interface/compiled/_next/static/chunks/7200-93ab0072359b8028.js +1 -0
  35. khoj/interface/compiled/_next/static/chunks/{2612.bcf5a623b3da209e.js → 7553.f5ad54b1f6e92c49.js} +2 -2
  36. khoj/interface/compiled/_next/static/chunks/7626-1b630f1654172341.js +1 -0
  37. khoj/interface/compiled/_next/static/chunks/764.dadd316e8e16d191.js +63 -0
  38. khoj/interface/compiled/_next/static/chunks/78.08169ab541abab4f.js +43 -0
  39. khoj/interface/compiled/_next/static/chunks/784.e03acf460df213d1.js +1 -0
  40. khoj/interface/compiled/_next/static/chunks/{9537-d9ab442ce15d1e20.js → 8072-e1440cb482a0940e.js} +1 -1
  41. khoj/interface/compiled/_next/static/chunks/{3265.924139c4146ee344.js → 8086.8d39887215807fcd.js} +1 -1
  42. khoj/interface/compiled/_next/static/chunks/8168.f074ab8c7c16d82d.js +59 -0
  43. khoj/interface/compiled/_next/static/chunks/{8694.2bd9c2f65d8c5847.js → 8223.1705878fa7a09292.js} +1 -1
  44. khoj/interface/compiled/_next/static/chunks/8483.94f6c9e2bee86f50.js +215 -0
  45. khoj/interface/compiled/_next/static/chunks/{8888.ebe0e552b59e7fed.js → 8810.fc0e479de78c7c61.js} +1 -1
  46. khoj/interface/compiled/_next/static/chunks/8828.bc74dc4ce94e78f6.js +1 -0
  47. khoj/interface/compiled/_next/static/chunks/{7303.d0612f812a967a08.js → 8909.14ac3f43d0070cf1.js} +5 -5
  48. khoj/interface/compiled/_next/static/chunks/90542734.b1a1629065ba199b.js +1 -0
  49. khoj/interface/compiled/_next/static/chunks/9167.098534184f03fe92.js +56 -0
  50. khoj/interface/compiled/_next/static/chunks/{4980.63500d68b3bb1222.js → 9537.e934ce37bf314509.js} +5 -5
  51. khoj/interface/compiled/_next/static/chunks/9574.3fe8e26e95bf1c34.js +1 -0
  52. khoj/interface/compiled/_next/static/chunks/9599.ec50b5296c27dae9.js +1 -0
  53. khoj/interface/compiled/_next/static/chunks/9643.b34248df52ffc77c.js +262 -0
  54. khoj/interface/compiled/_next/static/chunks/9747.2fd9065b1435abb1.js +1 -0
  55. khoj/interface/compiled/_next/static/chunks/9922.98f2b2a9959b4ebe.js +1 -0
  56. khoj/interface/compiled/_next/static/chunks/app/agents/layout-e00fb81dca656a10.js +1 -0
  57. khoj/interface/compiled/_next/static/chunks/app/agents/page-e291b49977f43880.js +1 -0
  58. khoj/interface/compiled/_next/static/chunks/app/automations/page-198b26df6e09bbb0.js +1 -0
  59. khoj/interface/compiled/_next/static/chunks/app/chat/layout-33934fc2d6ae6838.js +1 -0
  60. khoj/interface/compiled/_next/static/chunks/app/chat/{page-8e1c4f2af3c9429e.js → page-dfcc1e8e2ad62873.js} +1 -1
  61. khoj/interface/compiled/_next/static/chunks/app/{page-2b3056cba8aa96ce.js → page-1567cac7b79a7c59.js} +1 -1
  62. khoj/interface/compiled/_next/static/chunks/app/settings/{page-8be3b35178abf2ec.js → page-6081362437c82470.js} +1 -1
  63. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-4a4b0c0f4749c2b2.js → page-e0dcb1762f8c8f88.js} +1 -1
  64. khoj/interface/compiled/_next/static/chunks/webpack-5393aad3d824e0cb.js +1 -0
  65. khoj/interface/compiled/_next/static/css/{2945c4a857922f3b.css → c34713c98384ee87.css} +1 -1
  66. khoj/interface/compiled/agents/index.html +2 -2
  67. khoj/interface/compiled/agents/index.txt +3 -3
  68. khoj/interface/compiled/automations/index.html +2 -2
  69. khoj/interface/compiled/automations/index.txt +4 -4
  70. khoj/interface/compiled/chat/index.html +2 -2
  71. khoj/interface/compiled/chat/index.txt +3 -3
  72. khoj/interface/compiled/index.html +2 -2
  73. khoj/interface/compiled/index.txt +3 -3
  74. khoj/interface/compiled/search/index.html +2 -2
  75. khoj/interface/compiled/search/index.txt +3 -3
  76. khoj/interface/compiled/settings/index.html +2 -2
  77. khoj/interface/compiled/settings/index.txt +5 -5
  78. khoj/interface/compiled/share/chat/index.html +2 -2
  79. khoj/interface/compiled/share/chat/index.txt +3 -3
  80. khoj/main.py +3 -3
  81. khoj/manage.py +1 -0
  82. khoj/processor/content/github/github_to_entries.py +6 -6
  83. khoj/processor/content/images/image_to_entries.py +0 -1
  84. khoj/processor/content/markdown/markdown_to_entries.py +2 -3
  85. khoj/processor/content/notion/notion_to_entries.py +5 -5
  86. khoj/processor/content/org_mode/org_to_entries.py +4 -5
  87. khoj/processor/content/org_mode/orgnode.py +4 -4
  88. khoj/processor/content/plaintext/plaintext_to_entries.py +1 -2
  89. khoj/processor/content/text_to_entries.py +1 -2
  90. khoj/processor/conversation/google/utils.py +3 -3
  91. khoj/processor/conversation/openai/gpt.py +65 -28
  92. khoj/processor/conversation/openai/utils.py +358 -22
  93. khoj/processor/conversation/prompts.py +11 -5
  94. khoj/processor/conversation/utils.py +20 -11
  95. khoj/processor/embeddings.py +0 -2
  96. khoj/processor/image/generate.py +3 -3
  97. khoj/processor/operator/__init__.py +2 -2
  98. khoj/processor/operator/grounding_agent.py +15 -2
  99. khoj/processor/operator/grounding_agent_uitars.py +34 -23
  100. khoj/processor/operator/operator_agent_anthropic.py +29 -4
  101. khoj/processor/operator/operator_agent_base.py +1 -1
  102. khoj/processor/operator/operator_agent_binary.py +4 -4
  103. khoj/processor/operator/operator_agent_openai.py +21 -6
  104. khoj/processor/operator/operator_environment_browser.py +1 -1
  105. khoj/processor/operator/operator_environment_computer.py +1 -1
  106. khoj/processor/speech/text_to_speech.py +0 -1
  107. khoj/processor/tools/online_search.py +1 -1
  108. khoj/processor/tools/run_code.py +1 -1
  109. khoj/routers/api.py +1 -2
  110. khoj/routers/api_agents.py +1 -2
  111. khoj/routers/api_automation.py +1 -1
  112. khoj/routers/api_chat.py +10 -16
  113. khoj/routers/api_model.py +0 -1
  114. khoj/routers/api_subscription.py +1 -1
  115. khoj/routers/email.py +4 -4
  116. khoj/routers/helpers.py +35 -24
  117. khoj/routers/research.py +2 -4
  118. khoj/search_filter/base_filter.py +2 -4
  119. khoj/search_type/text_search.py +1 -2
  120. khoj/utils/constants.py +3 -0
  121. khoj/utils/helpers.py +4 -4
  122. khoj/utils/initialization.py +1 -3
  123. khoj/utils/models.py +2 -4
  124. khoj/utils/rawconfig.py +1 -2
  125. khoj/utils/state.py +1 -1
  126. {khoj-2.0.0b13.dev5.dist-info → khoj-2.0.0b13.dev23.dist-info}/METADATA +3 -2
  127. {khoj-2.0.0b13.dev5.dist-info → khoj-2.0.0b13.dev23.dist-info}/RECORD +139 -137
  128. khoj/interface/compiled/_next/static/chunks/1191.b547ec13349b4aed.js +0 -1
  129. khoj/interface/compiled/_next/static/chunks/1588.f0558a0bdffc4761.js +0 -117
  130. khoj/interface/compiled/_next/static/chunks/1918.925cb4a35518d258.js +0 -43
  131. khoj/interface/compiled/_next/static/chunks/2849.dc00ae5ba7219cfc.js +0 -1
  132. khoj/interface/compiled/_next/static/chunks/303.fe76de943e930fbd.js +0 -1
  133. khoj/interface/compiled/_next/static/chunks/4533.586e74b45a2bde25.js +0 -55
  134. khoj/interface/compiled/_next/static/chunks/4551.82ce1476b5516bc2.js +0 -5
  135. khoj/interface/compiled/_next/static/chunks/4748.0edd37cba3ea2809.js +0 -59
  136. khoj/interface/compiled/_next/static/chunks/5210.cd35a1c1ec594a20.js +0 -93
  137. khoj/interface/compiled/_next/static/chunks/5329.f8b3c5b3d16159cd.js +0 -1
  138. khoj/interface/compiled/_next/static/chunks/5427-13d6ffd380fdfab7.js +0 -1
  139. khoj/interface/compiled/_next/static/chunks/558-c14e76cff03f6a60.js +0 -1
  140. khoj/interface/compiled/_next/static/chunks/5830.8876eccb82da9b7d.js +0 -262
  141. khoj/interface/compiled/_next/static/chunks/6230.88a71d8145347b3f.js +0 -1
  142. khoj/interface/compiled/_next/static/chunks/7161.77e0530a40ad5ca8.js +0 -1
  143. khoj/interface/compiled/_next/static/chunks/7200-ac3b2e37ff30e126.js +0 -1
  144. khoj/interface/compiled/_next/static/chunks/7505.c31027a3695bdebb.js +0 -148
  145. khoj/interface/compiled/_next/static/chunks/7760.35649cc21d9585bd.js +0 -56
  146. khoj/interface/compiled/_next/static/chunks/83.48e2db193a940052.js +0 -1
  147. khoj/interface/compiled/_next/static/chunks/8427.844694e06133fb51.js +0 -1
  148. khoj/interface/compiled/_next/static/chunks/8665.4db7e6b2e8933497.js +0 -174
  149. khoj/interface/compiled/_next/static/chunks/872.caf84cc1a39ae59f.js +0 -1
  150. khoj/interface/compiled/_next/static/chunks/8890.6e8a59e4de6978bc.js +0 -215
  151. khoj/interface/compiled/_next/static/chunks/8950.5f2272e0ac923f9e.js +0 -1
  152. khoj/interface/compiled/_next/static/chunks/90542734.2c21f16f18b22411.js +0 -1
  153. khoj/interface/compiled/_next/static/chunks/9202.c703864fcedc8d1f.js +0 -63
  154. khoj/interface/compiled/_next/static/chunks/9320.6aca4885d541aa44.js +0 -24
  155. khoj/interface/compiled/_next/static/chunks/9535.f78cd92d03331e55.js +0 -1
  156. khoj/interface/compiled/_next/static/chunks/9968.b111fc002796da81.js +0 -1
  157. khoj/interface/compiled/_next/static/chunks/app/agents/layout-4e2a134ec26aa606.js +0 -1
  158. khoj/interface/compiled/_next/static/chunks/app/agents/page-9a4610474cd59a71.js +0 -1
  159. khoj/interface/compiled/_next/static/chunks/app/automations/page-f7bb9d777b7745d4.js +0 -1
  160. khoj/interface/compiled/_next/static/chunks/app/chat/layout-ad4d1792ab1a4108.js +0 -1
  161. khoj/interface/compiled/_next/static/chunks/f3e3247b-1758d4651e4457c2.js +0 -10
  162. khoj/interface/compiled/_next/static/chunks/webpack-ee14d29b64c5ab47.js +0 -1
  163. /khoj/interface/compiled/_next/static/{XfWrWDAk5VXeZ88OdP652 → Q7tm150g44Fs4H1CGytNf}/_buildManifest.js +0 -0
  164. /khoj/interface/compiled/_next/static/{XfWrWDAk5VXeZ88OdP652 → Q7tm150g44Fs4H1CGytNf}/_ssgManifest.js +0 -0
  165. /khoj/interface/compiled/_next/static/chunks/{1915-fbfe167c84ad60c5.js → 1915-5c6508f6ebb62a30.js} +0 -0
  166. /khoj/interface/compiled/_next/static/chunks/{2117-e78b6902ad6f75ec.js → 2117-080746c8e170c81a.js} +0 -0
  167. /khoj/interface/compiled/_next/static/chunks/{2939-4d4084c5b888b960.js → 2939-4af3fd24b8ffc9ad.js} +0 -0
  168. /khoj/interface/compiled/_next/static/chunks/{4447-d6cf93724d57e34b.js → 4447-cd95608f8e93e711.js} +0 -0
  169. /khoj/interface/compiled/_next/static/chunks/{8667-4b7790573b08c50d.js → 8667-50b03a89e82e0ba7.js} +0 -0
  170. /khoj/interface/compiled/_next/static/chunks/{9139-ce1ae935dac9c871.js → 9139-8ac4d9feb10f8869.js} +0 -0
  171. /khoj/interface/compiled/_next/static/chunks/app/search/{page-4885df3cd175c957.js → page-3639e50ec3e9acfd.js} +0 -0
  172. {khoj-2.0.0b13.dev5.dist-info → khoj-2.0.0b13.dev23.dist-info}/WHEEL +0 -0
  173. {khoj-2.0.0b13.dev5.dist-info → khoj-2.0.0b13.dev23.dist-info}/entry_points.txt +0 -0
  174. {khoj-2.0.0b13.dev5.dist-info → khoj-2.0.0b13.dev23.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3353],{83353:function(e,c,n){n.d(c,{createPieServices:function(){return u.l}});var u=n(44154);n(51127)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3855],{93855:function(e,c,n){n.d(c,{createGitGraphServices:function(){return r.z}});var r=n(97754);n(51127)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3973],{33973:function(e,r,t){t.d(r,{diagram:function(){return n}});var a=t(58483);t(16816),t(14201),t(12168),t(36731),t(61797),t(98280),t(59542),t(57537),t(79296),t(56574);var s=t(20755),n={parser:a.J8,get db(){return new a.oI(2)},renderer:a._$,styles:a.Ee,init:(0,s.eW)(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}}]);
@@ -0,0 +1,24 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{30298:function(t,e,a){function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{A:function(){return r}}),(0,a(20755).eW)(r,"populateCommonDb")},54241:function(t,e,a){a.d(e,{diagram:function(){return C}});var r=a(30298),l=a(56574),o=a(38111),i=a(20755),n=a(54327),c={packet:[]},s=structuredClone(c),d=i.vZ.packet,k=(0,i.eW)(()=>{let t=(0,l.Rb)({...d,...(0,i.iE)().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),p=(0,i.eW)(()=>s.packet,"getPacket"),b={pushWord:(0,i.eW)(t=>{t.length>0&&s.packet.push(t)},"pushWord"),getPacket:p,getConfig:k,clear:(0,i.eW)(()=>{(0,i.ZH)(),s=structuredClone(c)},"clear"),setAccTitle:i.GN,getAccTitle:i.eu,setDiagramTitle:i.g2,getDiagramTitle:i.Kr,getAccDescription:i.Mx,setAccDescription:i.U$},f=(0,i.eW)(t=>{(0,r.A)(t,b);let e=-1,a=[],l=1,{bitsPerRow:o}=b.getConfig();for(let{start:r,end:n,bits:c,label:s}of t.blocks){if(void 0!==r&&void 0!==n&&n<r)throw Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if((r??=e+1)!==e+1)throw Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${e+1}.`);if(0===c)throw Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(c??1)-1,c??=n-r+1,e=n,i.cM.debug(`Packet block ${r} - ${e} with label ${s}`);a.length<=o+1&&b.getPacket().length<1e4;){let[t,e]=h({start:r,end:n,bits:c,label:s},l,o);if(a.push(t),t.end+1===l*o&&(b.pushWord(a),a=[],l++),!e)break;({start:r,end:n,bits:c,label:s}=e)}}b.pushWord(a)},"populate"),h=(0,i.eW)((t,e,a)=>{if(void 0===t.start)throw Error("start should have been set during first phase");if(void 0===t.end)throw Error("end should have been set during first phase");if(t.start>t.end)throw Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let r=e*a-1,l=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:l,end:t.end,label:t.label,bits:t.end-l}]},"getNextFittingBlock"),u={parse:(0,i.eW)(async t=>{let e=await (0,n.Qc)("packet",t);i.cM.debug(e),f(e)},"parse")},g=(0,i.eW)((t,e,a,r)=>{let l=r.db,n=l.getConfig(),{rowHeight:c,paddingY:s,bitWidth:d,bitsPerRow:k}=n,p=l.getPacket(),b=l.getDiagramTitle(),f=c+s,h=f*(p.length+1)-(b?0:c),u=d*k+2,g=(0,o.P)(e);for(let[t,e]of(g.attr("viewbox",`0 0 ${u} ${h}`),(0,i.v2)(g,h,u,n.useMaxWidth),p.entries()))x(g,e,t,n);g.append("text").text(b).attr("x",u/2).attr("y",h-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),x=(0,i.eW)((t,e,a,{rowHeight:r,paddingX:l,paddingY:o,bitWidth:i,bitsPerRow:n,showBits:c})=>{let s=t.append("g"),d=a*(r+o)+o;for(let t of e){let e=t.start%n*i+1,a=(t.end-t.start+1)*i-l;if(s.append("rect").attr("x",e).attr("y",d).attr("width",a).attr("height",r).attr("class","packetBlock"),s.append("text").attr("x",e+a/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(t.label),!c)continue;let o=t.end===t.start,k=d-2;s.append("text").attr("x",e+(o?a/2:0)).attr("y",k).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",o?"middle":"start").text(t.start),o||s.append("text").attr("x",e+a).attr("y",k).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(t.end)}},"drawWord"),$={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},C={parser:u,db:b,renderer:{draw:g},styles:(0,i.eW)(({packet:t}={})=>{let e=(0,l.Rb)($,t);return`
2
+ .packetByte {
3
+ font-size: ${e.byteFontSize};
4
+ }
5
+ .packetByte.start {
6
+ fill: ${e.startByteColor};
7
+ }
8
+ .packetByte.end {
9
+ fill: ${e.endByteColor};
10
+ }
11
+ .packetLabel {
12
+ fill: ${e.labelColor};
13
+ font-size: ${e.labelFontSize};
14
+ }
15
+ .packetTitle {
16
+ fill: ${e.titleColor};
17
+ font-size: ${e.titleFontSize};
18
+ }
19
+ .packetBlock {
20
+ stroke: ${e.blockStrokeColor};
21
+ stroke-width: ${e.blockStrokeWidth};
22
+ fill: ${e.blockFillColor};
23
+ }
24
+ `},"styles")}}}]);