From bd9b916336f4331f4ecc729bb8b4d527b3ae81ce Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Fri, 12 Jan 2024 11:47:21 +0800 Subject: [PATCH] update env --- .gitignore | 3 +- knowledge_base/ceshi/content/test.txt | 7 +++ .../ceshi/vector_store/m3e-base/index.faiss | Bin 0 -> 3117 bytes .../ceshi/vector_store/m3e-base/index.pkl | Bin 0 -> 647 bytes knowledge_base/info.db | 0 requirements.txt | 41 ++++++++---------- .../__pycache__/migrate.cpython-310.pyc | Bin 0 -> 6435 bytes 7 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 knowledge_base/ceshi/content/test.txt create mode 100644 knowledge_base/ceshi/vector_store/m3e-base/index.faiss create mode 100644 knowledge_base/ceshi/vector_store/m3e-base/index.pkl create mode 100644 knowledge_base/info.db mode change 100755 => 100644 requirements.txt create mode 100644 server/knowledge_base/__pycache__/migrate.cpython-310.pyc diff --git a/.gitignore b/.gitignore index 255b249..a4f911e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea moka-ai/* -logs \ No newline at end of file +logs +knowledge_base \ No newline at end of file diff --git a/knowledge_base/ceshi/content/test.txt b/knowledge_base/ceshi/content/test.txt new file mode 100644 index 0000000..a18e5a8 --- /dev/null +++ b/knowledge_base/ceshi/content/test.txt @@ -0,0 +1,7 @@ +1. 你是谁? +您好,我是里海科技的农业智能顾问。 +2. 星火 +抱歉,有什么农业相关的问题可以为您解答吗? +3. 讯飞 +抱歉,有什么农业相关的问题可以为您解答吗? + diff --git a/knowledge_base/ceshi/vector_store/m3e-base/index.faiss b/knowledge_base/ceshi/vector_store/m3e-base/index.faiss new file mode 100644 index 0000000000000000000000000000000000000000..210921999651facc5b5e4e5f2ec0bba0e0d0b94b GIT binary patch literal 3117 zcmXw5c{tVSAH9+kDocrECs87#-0$Z#6x=sq8yG0=l_uYpZG6}{Kxni_&4-# zpCPwa#?`vE)G+~}b7-Y}7PbjfY1tb!NY#sj8O-+vy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NGB`=@*2EBNkO6YtLHo%fyR{Y{>yIsEeRnW5~6>lSuu#K5M5 zh-=%vWAcWgyM%GqqY89wYP()TiqX5y{j9t*7|Iv&MoTV8aTe(&;c0cPs#nT0TBTI1 zOlhQei;!}0@}^!XQmr(h>2ylhZc{17|78LNaK23)&Xg)0;hj6cVdLp9b4d^D%MfCMsyuT5xHsh_Q z;nH@{-HKiv^`G>TcR!NN!(YwCTuI4C?VY&wF&C|Vjt*8*_4Z0|+zh@i|53!RyWz7h zumBXv`*yh236A%I?h(-X`@8Xh4A(bPdRfW$4?D^3oB!PePS})V9dn$zdycujN5G#4 zs^QvHwM>Xjoo+ySo;~fk4=LeHtv9&gI)kgqDdPxU%{uP9MRjm3wOA#T8KycgFngr% zM_e*7%o}wojSIfGgwTvhEuA4oIrzRN3&v$*Y+YPMsP36_m{Wu~_spsf)f~2b%CdMw i4p{`v&SS5}(zHM|YK$3IeCAgft1ifUL&kZwB$eO3JU5sC literal 0 HcmV?d00001 diff --git a/knowledge_base/info.db b/knowledge_base/info.db new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt old mode 100755 new mode 100644 index 48e66b9..8d18407 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,7 @@ # API requirements - langchain>=0.0.329 # suggest to use latest Langchain langchain-experimental>=0.0.30 fschat[model_worker]==0.2.32 -xformers>=0.0.22.post4 openai>=0.28.1 sentence_transformers transformers>=4.34 @@ -23,30 +21,27 @@ accelerate spacy PyMuPDF rapidocr_onnxruntime - -requests -pathlib -pytest -numexpr -strsimpy -markdownify +requests~=2.31.0 +pathlib~=1.0.1 +pytest~=7.4.3 +numexpr~=2.8.7 +strsimpy~=0.2.1 +markdownify~=0.11.6 tiktoken -tqdm -websockets +tqdm~=4.66.1 +websockets~=11.0.3 numpy~=1.24.4 pandas~=2.0.3 einops transformers_stream_generator==0.0.4 - vllm>=0.2.0; sys_platform == "linux" - -# online api libs -zhipuai -dashscope>=1.10.0 # qwen -qianfan -# volcengine>=1.0.106 # fangzhou - -# uncomment libs if you want to use corresponding vector store -# pymilvus==2.1.3 # requires milvus==2.1.3 -# psycopg2 -# pgvector +httpx[brotli,http2,socks]>=0.25.0 +watchdog +sentencepiece~=0.1.99 +cachetools~=5.3.2 +chardet~=5.2.0 +python-dateutil~=2.8.2 +safetensors~=0.4.0 +colorama~=0.4.6 +loguru~=0.7.2 +pyyaml~=6.0.1 \ No newline at end of file diff --git a/server/knowledge_base/__pycache__/migrate.cpython-310.pyc b/server/knowledge_base/__pycache__/migrate.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e4b0e19d49e46440cc4022748274c449d74f335f GIT binary patch literal 6435 zcmai2`*R#scJBA|j7Cq(58(%GUS_r^8Cddi49mkZCK%yh0igrw9Zg?JBXv)YZuiKR zs)sTw8Oa+P*fIk|%B%2KcL-;?sDnG48mVerxlFG7S$#-s##v`MUo|@bD zaqhXV?|$c;4mvw?5}uj(S$4}lN%{>H+MjL|9>zZ$mLHvEj8kx54JOh0R9{hXciJM0cWZ|D6^yHm8OUYFl(cZX8YY9cH5Zd_PTuwx_!I54K@92AKO15p=BTI9FWEgce}e|L9_2* z3X_?}bf%8!?#`yvF1FVlfb=bR@5Xx%H0)(}y8H0I6}r1z%iRy%cWv|-Q{3C!+oA73 zTg@Hrov69nHBU-~1J`M%3z?*Q=&47CjvRSn_;Kf{r;iLBPr8o`9ew24<0H;^EHPMRyj&qoogoXua!_%?Qcz{XsL`uMj)f>m=6E?`yyzv` zacC{k9=1O!3XkC*_92O+NqJIqMa*Y zT@iDNp2w;CWr+{qC6X_mIXDsc?4VbkD3%YNm@Q2dxqpHOldKel2dlHuL{MoK4@L}o z3#kyB!T7UjN+lAK6Ym2mb zDP1AoiN=C1*2YQDHeDW6TZ%fL-2%BJ&shkNq?4hAhZ>SDIVbZy)ZP(Jd)WIF zKn7<~jaN$Gh1S!79PtUAK{!H;A%hL1x{SB#$-Z1yWGTXVOlp(*yj)l3;#gibVrfOL zYq30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