国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

VDB之Chroma:Chroma/chromadb(一款優(yōu)秀的向量數(shù)據(jù)庫(kù))的簡(jiǎn)介、安裝、使用方法之詳細(xì)攻略

這篇具有很好參考價(jià)值的文章主要介紹了VDB之Chroma:Chroma/chromadb(一款優(yōu)秀的向量數(shù)據(jù)庫(kù))的簡(jiǎn)介、安裝、使用方法之詳細(xì)攻略。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

VDB之Chroma:Chroma/chromadb(一款優(yōu)秀的向量數(shù)據(jù)庫(kù))的簡(jiǎn)介、安裝、使用方法之詳細(xì)攻略

目錄

相關(guān)文章

DB之VDB:向量數(shù)據(jù)庫(kù)(Vector Database)的簡(jiǎn)介、常用庫(kù)、使用方法之詳細(xì)攻略

chroma的簡(jiǎn)介

chroma的安裝

chroma的使用方法

1、基礎(chǔ)用法


相關(guān)文章

DB之VDB:向量數(shù)據(jù)庫(kù)(Vector Database)的簡(jiǎn)介、常用庫(kù)、使用方法之詳細(xì)攻略

https://yunyaniu.blog.csdn.net/article/details/129106195

chroma的簡(jiǎn)介

VDB之Chroma:Chroma/chromadb(一款優(yōu)秀的向量數(shù)據(jù)庫(kù))的簡(jiǎn)介、安裝、使用方法之詳細(xì)攻略,NLP/LLMs,BigData/Cloud Computing,向量數(shù)據(jù)庫(kù),自然語(yǔ)言處理,基礎(chǔ)大模型

? ? ? ? ?2023年4月,Chroma獲得1800萬(wàn)美元種子輪融資,除了機(jī)構(gòu)投資者外,Chroma還獲得了MongoDB、Scale、Hugging Face、Jasper等公司創(chuàng)始人或高管的投資,受到了整個(gè)生成式AI生態(tài)的歡迎。
? ? ? ? ?Chroma是一個(gè)基于向量檢索庫(kù)實(shí)現(xiàn)的輕量級(jí)向量數(shù)據(jù)庫(kù),內(nèi)置了入門所需的一切,并提供了簡(jiǎn)單的API。它目前只支持CPU計(jì)算,但可以利用乘積量化的方法,將一個(gè)向量的維度切成多段,每段分別進(jìn)行k-means,從而減少存儲(chǔ)空間和提高檢索效率。它還可以與LangChain集成,實(shí)現(xiàn)基于語(yǔ)言模型的應(yīng)用。

? ? ? ? ?2023年6月正式發(fā)布Chroma,Chroma是一款A(yù)I 原生的開源嵌入數(shù)據(jù)庫(kù)。Chroma 是一個(gè)開源的嵌入數(shù)據(jù)庫(kù)。Chroma通過(guò)使知識(shí)、事實(shí)和技能可以插拔到 LLM(語(yǔ)言模型)中,從而使構(gòu)建 LLM 應(yīng)用變得簡(jiǎn)單
? ? ? ? ?Chroma 為您提供以下工具:存儲(chǔ)嵌入及其元數(shù)據(jù)、嵌入文檔和查詢、搜索嵌入。Chroma 的優(yōu)勢(shì)在于簡(jiǎn)潔性和開發(fā)者生產(chǎn)力、在搜索之上的分析、它同時(shí)也非常快速。Chroma 包括 Python 客戶端 SDK、JavaScript/TypeScript 客戶端 SDK 和一個(gè)服務(wù)器應(yīng)用程序。
? ? ? ? ?在 Python 中,Chroma 可以在內(nèi)存中運(yùn)行,也可以在客戶端/服務(wù)器(尚處于 alpha 階段)模式下運(yùn)行。在 JavaScript 中,Chroma 在客戶端/服務(wù)器模式下運(yùn)行,并與 Python 后端進(jìn)行通信。
? ? ? ? ?特點(diǎn)如下所示:
>> 輕松生成嵌入:Chroma 擁有您使用嵌入所需的所有工具
>> 簡(jiǎn)單易用:就像 pip install 一樣,在筆記本中 5 秒內(nèi)使用
>> 豐富的功能:搜索、過(guò)濾等等
>> 集成:直接插入 LangChain、LlamaIndex、OpenAI 等
>> JavaScript 客戶端
>> 免費(fèi):Apache 2.0 開源許可
? ? ? ? ?Chroma的優(yōu)點(diǎn)是易用、輕量、智能,缺點(diǎn)是功能相對(duì)簡(jiǎn)單、不支持GPU加速。后續(xù) Chroma 還會(huì)推出托管產(chǎn)品(Serverless 類產(chǎn)品),該產(chǎn)品將提供無(wú)服務(wù)器存儲(chǔ)和檢索功能,支持向上和向下擴(kuò)展,讓開發(fā)者開箱即用不需要自己搭建基礎(chǔ)設(shè)施。

官網(wǎng):Chroma

文檔:?? Home | Chroma

GitHub:https://github.com/chroma-core/chroma文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-737209.html

chroma的安裝

pip install chromadb

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple chromadb


npm install --save chromadb # 或者 yarn add chromadb
C:\Windows\system32>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple chromadb
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting chromadb
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3c/ff/ac74735884031a3b9ddf7b1abecee0885ec61660588b1e7c6862bccf5116/chromadb-0.4.14-py3-none-any.whl (448 kB)
     |████████████████████████████████| 448 kB 726 kB/s
Requirement already satisfied: typing-extensions>=4.5.0 in d:\programdata\anaconda3\lib\site-packages (from chromadb) (4.8.0)
Collecting tqdm>=4.65.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/e5/f12a80907d0884e6dff9c16d0c0114d81b8cd07dc3ae54c5e962cc83037e/tqdm-4.66.1-py3-none-any.whl (78 kB)
     |████████████████████████████████| 78 kB 1.5 MB/s
Collecting grpcio>=1.58.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ed/b2/f37fa2dc8b9942c5d444adee073d683ff23a31a418214cc7d80f53f3285c/grpcio-1.59.0-cp39-cp39-win_amd64.whl (3.7 MB)
     |████████████████████████████████| 3.7 MB 142 kB/s
Collecting pulsar-client>=3.1.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6f/13/b4b3f9282d274bacacf6268b946d00986ab14c35fe9f4113080bc9629ff8/pulsar_client-3.3.0-cp39-cp39-win_amd64.whl (3.4 MB)
     |████████████████████████████████| 3.4 MB 99 kB/s
Requirement already satisfied: onnxruntime>=1.14.1 in d:\programdata\anaconda3\lib\site-packages (from chromadb) (1.14.1)
Collecting chroma-hnswlib==0.7.3
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f0/f0/e197039fa81a122544fceccda4e6a2d08bdd4a70638f0a88b6b16dbc4adc/chroma_hnswlib-0.7.3-cp39-cp39-win_amd64.whl (150 kB)
     |████████████████████████████████| 150 kB 344 kB/s
Requirement already satisfied: tokenizers>=0.13.2 in d:\programdata\anaconda3\lib\site-packages (from chromadb) (0.13.3)
Collecting pypika>=0.48.9
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c7/2c/94ed7b91db81d61d7096ac8f2d325ec562fc75e35f3baea8749c85b28784/PyPika-0.48.9.tar.gz (67 kB)
     |████████████████████████████████| 67 kB 468 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting fastapi>=0.95.2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/30/b8d323119c37e15b7fa639e65e0eb7d81eb675ba166ac83e695aad3bd321/fastapi-0.104.0-py3-none-any.whl (92 kB)
     |████████████████████████████████| 92 kB 122 kB/s
Collecting bcrypt>=4.0.1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/46/81/d8c22cd7e5e1c6a7d48e41a1d1d46c92f17dae70a54d9814f746e6027dec/bcrypt-4.0.1-cp36-abi3-win_amd64.whl (152 kB)
     |████████████████████████████████| 152 kB 192 kB/s
Collecting typer>=0.9.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bf/0e/c68adf10adda05f28a6ed7b9f4cd7b8e07f641b44af88ba72d9c89e4de7a/typer-0.9.0-py3-none-any.whl (45 kB)
     |████████████████████████████████| 45 kB 1.0 MB/s
Collecting overrides>=7.3.1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/28/3fa6ef8297302fc7b3844980b6c5dbc71cdbd4b61e9b2591234214d5ab39/overrides-7.4.0-py3-none-any.whl (17 kB)
Collecting numpy>=1.22.5
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2d/ed/022fc4106f6d97e41e156201274138e0369b27dbfc8c206034f24ebd97d9/numpy-1.26.1-cp39-cp39-win_amd64.whl (15.8 MB)
     |████████████████████████████████| 15.8 MB 202 kB/s
Requirement already satisfied: pydantic>=1.9 in d:\programdata\anaconda3\lib\site-packages (from chromadb) (2.4.2)
Collecting requests>=2.28
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 1.5 MB/s
Collecting uvicorn[standard]>=0.18.3
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/79/96/b0882a1c3f7ef3dd86879e041212ae5b62b4bd352320889231cc735a8e8f/uvicorn-0.23.2-py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 3.3 MB/s
Collecting posthog>=2.4.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a7/73/35758818228c70348be4c3c66a76653c62e894e0e3c3461453c5341ca926/posthog-3.0.2-py2.py3-none-any.whl (37 kB)
Collecting importlib-resources
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/65/6e/09d8816b5cb7a4006ef8ad1717a2703ad9f331dae9717d9f22488a2d6469/importlib_resources-6.1.0-py3-none-any.whl (33 kB)
Collecting starlette<0.28.0,>=0.27.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl (66 kB)
     |████████████████████████████████| 66 kB 1.2 MB/s
Collecting anyio<4.0.0,>=3.7.1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl (80 kB)
     |████████████████████████████████| 80 kB 1.7 MB/s
Requirement already satisfied: idna>=2.8 in d:\programdata\anaconda3\lib\site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.95.2->chromadb) (3.3)
Collecting exceptiongroup
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ad/83/b71e58666f156a39fb29417e4c8ca4bc7400c0dd4ed9e8842ab54dc8c344/exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Requirement already satisfied: sniffio>=1.1 in d:\programdata\anaconda3\lib\site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.95.2->chromadb) (1.2.0)
Requirement already satisfied: protobuf in d:\programdata\anaconda3\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (3.19.6)
Requirement already satisfied: flatbuffers in d:\programdata\anaconda3\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (2.0.7)
Requirement already satisfied: sympy in d:\programdata\anaconda3\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (1.10.1)
Requirement already satisfied: packaging in d:\programdata\anaconda3\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (21.3)
Requirement already satisfied: coloredlogs in d:\programdata\anaconda3\lib\site-packages (from onnxruntime>=1.14.1->chromadb) (15.0.1)
Requirement already satisfied: six>=1.5 in d:\programdata\anaconda3\lib\site-packages (from posthog>=2.4.0->chromadb) (1.16.0)
Collecting backoff>=1.10.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/df/73/b6e24bd22e6720ca8ee9a85a0c4a2971af8497d8f3193fa05390cbd46e09/backoff-2.2.1-py3-none-any.whl (15 kB)
Requirement already satisfied: monotonic>=1.5 in d:\programdata\anaconda3\lib\site-packages (from posthog>=2.4.0->chromadb) (1.5)
Requirement already satisfied: python-dateutil>2.1 in d:\programdata\anaconda3\lib\site-packages (from posthog>=2.4.0->chromadb) (2.8.2)
Requirement already satisfied: certifi in d:\programdata\anaconda3\lib\site-packages (from pulsar-client>=3.1.0->chromadb) (2021.10.8)
Requirement already satisfied: annotated-types>=0.4.0 in d:\programdata\anaconda3\lib\site-packages (from pydantic>=1.9->chromadb) (0.6.0)
Requirement already satisfied: pydantic-core==2.10.1 in d:\programdata\anaconda3\lib\site-packages (from pydantic>=1.9->chromadb) (2.10.1)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\programdata\anaconda3\lib\site-packages (from requests>=2.28->chromadb) (2.0.12)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\programdata\anaconda3\lib\site-packages (from requests>=2.28->chromadb) (1.26.9)
Requirement already satisfied: colorama in d:\programdata\anaconda3\lib\site-packages (from tqdm>=4.65.0->chromadb) (0.4.4)
Requirement already satisfied: click<9.0.0,>=7.1.1 in d:\programdata\anaconda3\lib\site-packages (from typer>=0.9.0->chromadb) (8.0.4)
Collecting h11>=0.8
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl (58 kB)
     |████████████████████████████████| 58 kB 1.6 MB/s
Collecting websockets>=10.4
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f4/3f/65dfa50084a06ab0a05f3ca74195c2c17a1c075b8361327d831ccce0a483/websockets-11.0.3-cp39-cp39-win_amd64.whl (124 kB)
     |████████████████████████████████| 124 kB 1.7 MB/s
Collecting httptools>=0.5.0
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0a/0d/ca545a8a2831fc3e326fffecab268a2e7775e5ec4d57afc8f5ddc578cbd7/httptools-0.6.1-cp39-cp39-win_amd64.whl (60 kB)
     |████████████████████████████████| 60 kB 1.3 MB/s
Collecting python-dotenv>=0.13
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/2f/62ea1c8b593f4e093cc1a7768f0d46112107e790c3e478532329e434f00b/python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Requirement already satisfied: pyyaml>=5.1 in d:\programdata\anaconda3\lib\site-packages (from uvicorn[standard]>=0.18.3->chromadb) (6.0)
Collecting watchfiles>=0.13
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ef/c0/737ddb4c97efd7e4c98852973ca80d7fab65811d6c4d3a64182333d455b0/watchfiles-0.21.0-cp39-none-win_amd64.whl (280 kB)
     |████████████████████████████████| 280 kB 1.7 MB/s
Requirement already satisfied: humanfriendly>=9.1 in d:\programdata\anaconda3\lib\site-packages (from coloredlogs->onnxruntime>=1.14.1->chromadb) (10.0)
Requirement already satisfied: pyreadline3 in d:\programdata\anaconda3\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime>=1.14.1->chromadb) (3.4.1)
Requirement already satisfied: zipp>=3.1.0 in d:\programdata\anaconda3\lib\site-packages (from importlib-resources->chromadb) (3.7.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in d:\programdata\anaconda3\lib\site-packages (from packaging->onnxruntime>=1.14.1->chromadb) (3.0.4)
Requirement already satisfied: mpmath>=0.19 in d:\programdata\anaconda3\lib\site-packages (from sympy->onnxruntime>=1.14.1->chromadb) (1.2.1)
Building wheels for collected packages: pypika
  Building wheel for pypika (PEP 517) ... done
  Created wheel for pypika: filename=PyPika-0.48.9-py2.py3-none-any.whl size=53835 sha256=211a200d50e727e0f22f68bd12cee283f29544900120b047b61d3826d1424f27
  Stored in directory: c:\users\99386\appdata\local\pip\cache\wheels\3b\17\34\0b716a7c87f148d258492c55fe890d051f5ca7bcf9e045e582
Successfully built pypika
Installing collected packages: exceptiongroup, h11, anyio, websockets, watchfiles, uvicorn, starlette, requests, python-dotenv, numpy, httptools, backoff, typer, tqdm, pypika, pulsar-client, posthog, overrides, importlib-resources, grpcio, fastapi, chroma-hnswlib, bcrypt, chromadb
  Attempting uninstall: anyio
    Found existing installation: anyio 3.5.0
    Uninstalling anyio-3.5.0:
      Successfully uninstalled anyio-3.5.0
  Attempting uninstall: requests
    Found existing installation: requests 2.27.1
    Uninstalling requests-2.27.1:
      Successfully uninstalled requests-2.27.1
  Attempting uninstall: numpy
    Found existing installation: numpy 1.21.6
    Uninstalling numpy-1.21.6:
      Successfully uninstalled numpy-1.21.6
  Attempting uninstall: typer
    Found existing installation: typer 0.4.2
    Uninstalling typer-0.4.2:
      Successfully uninstalled typer-0.4.2
  Attempting uninstall: tqdm
    Found existing installation: tqdm 4.63.2
    Uninstalling tqdm-4.63.2:
      Successfully uninstalled tqdm-4.63.2
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.42.0
    Uninstalling grpcio-1.42.0:
      Successfully uninstalled grpcio-1.42.0
  Attempting uninstall: bcrypt
    Found existing installation: bcrypt 3.2.0
    Uninstalling bcrypt-3.2.0:
      Successfully uninstalled bcrypt-3.2.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
daal4py 2021.5.0 requires daal==2021.4.0, which is not installed.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
anaconda-project 0.10.2 requires ruamel-yaml, which is not installed.
xarray 2023.4.2 requires pandas>=1.4, but you have pandas 1.3.5 which is incompatible.
thinc 8.1.10 requires pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.4.2 which is incompatible.
streamlit 1.24.0 requires protobuf<5,>=3.20, but you have protobuf 3.19.6 which is incompatible.
spacy 3.5.3 requires pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.4.2 which is incompatible.
spacy 3.5.3 requires typer<0.8.0,>=0.3.0, but you have typer 0.9.0 which is incompatible.
scipy 1.8.0 requires numpy<1.25.0,>=1.17.3, but you have numpy 1.26.1 which is incompatible.
onnx 1.14.0 requires protobuf>=3.20.2, but you have protobuf 3.19.6 which is incompatible.
numba 0.55.1 requires numpy<1.22,>=1.18, but you have numpy 1.26.1 which is incompatible.
ludwig 0.7.4 requires transformers<4.22,>=4.10.1, but you have transformers 4.28.1 which is incompatible.
jupyter-server 1.13.5 requires pywinpty<2; os_name == "nt", but you have pywinpty 2.0.2 which is incompatible.
en-core-web-sm 3.0.0 requires spacy<3.1.0,>=3.0.0, but you have spacy 3.5.3 which is incompatible.
Successfully installed anyio-3.7.1 backoff-2.2.1 bcrypt-4.0.1 chroma-hnswlib-0.7.3 chromadb-0.4.14 exceptiongroup-1.1.3 fastapi-0.104.0 grpcio-1.59.0 h11-0.14.0 httptools-0.6.1 importlib-resources-6.1.0 numpy-1.26.1 overrides-7.4.0 posthog-3.0.2 pulsar-client-3.3.0 pypika-0.48.9 python-dotenv-1.0.0 requests-2.31.0 starlette-0.27.0 tqdm-4.66.1 typer-0.9.0 uvicorn-0.23.2 watchfiles-0.21.0 websockets-11.0.3

chroma的使用方法

1、基礎(chǔ)用法

import chromadb
# setup Chroma in-memory, for easy prototyping. Can add persistence easily!
client = chromadb.Client()

# Create collection. get_collection, get_or_create_collection, delete_collection also available!
collection = client.create_collection("all-my-documents")

# Add docs to the collection. Can also update and delete. Row-based API coming soon!
collection.add(
    documents=["This is document1", "This is document2"], # we handle tokenization, embedding, and indexing automatically. You can skip that and add your own embeddings as well
    metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on these!
    ids=["doc1", "doc2"], # unique for each doc
)

# Query/search 2 most similar results. You can also .get by id
results = collection.query(
    query_texts=["This is a query document"],
    n_results=2,
    # where={"metadata_field": "is_equal_to_this"}, # optional filter
    # where_document={"$contains":"search_string"}  # optional filter
)

到了這里,關(guān)于VDB之Chroma:Chroma/chromadb(一款優(yōu)秀的向量數(shù)據(jù)庫(kù))的簡(jiǎn)介、安裝、使用方法之詳細(xì)攻略的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 使用Langchain+GPT+向量數(shù)據(jù)庫(kù)chromadb 來(lái)創(chuàng)建文檔對(duì)話機(jī)器人

    使用Langchain+GPT+向量數(shù)據(jù)庫(kù)chromadb 來(lái)創(chuàng)建文檔對(duì)話機(jī)器人

    使用Langchain+GPT+向量數(shù)據(jù)庫(kù)chromadb 來(lái)創(chuàng)建文檔對(duì)話機(jī)器人 文件存放地址 參考: https://python.langchain.com/docs/use_cases/chatbots https://python.langchain.com/docs/integrations/vectorstores/chroma https://blog.csdn.net/v_JULY_v/article/details/131552592?ops_request_misc=%257B%2522request%255Fid%2522%253A%252216945020581680022659096

    2024年02月03日
    瀏覽(94)
  • (一)AI本地知識(shí)庫(kù)問(wèn)答(可運(yùn)行):LangChain+Chroma向量數(shù)據(jù)庫(kù)+OpenAi大模型

    (一)AI本地知識(shí)庫(kù)問(wèn)答(可運(yùn)行):LangChain+Chroma向量數(shù)據(jù)庫(kù)+OpenAi大模型

    只需要看config目錄下的config.py,data目錄下的txt知識(shí)庫(kù)文件,db向量數(shù)據(jù)庫(kù)文件在持久化部署后會(huì)自動(dòng)生成,route下的app.py,scripts目錄下的Chroma向量庫(kù)持久化部署.py這幾個(gè)就可以,scripts目錄下的考勤問(wèn)答.py和test目錄下都是單獨(dú)的自己測(cè)試的小代碼,可以不用關(guān)注 因?yàn)檫\(yùn)行需要

    2024年02月03日
    瀏覽(29)
  • 什么是向量數(shù)據(jù)庫(kù)?向量數(shù)據(jù)庫(kù)工作原理?向量數(shù)據(jù)庫(kù)解決方案?

    什么是向量數(shù)據(jù)庫(kù)?向量數(shù)據(jù)庫(kù)工作原理?向量數(shù)據(jù)庫(kù)解決方案?

    向量數(shù)據(jù)庫(kù)是一種專門用于存儲(chǔ)和處理向量數(shù)據(jù)的數(shù)據(jù)庫(kù)系統(tǒng)。向量數(shù)據(jù)是指具有多維度屬性的數(shù)據(jù),例如圖片、音頻、視頻、自然語(yǔ)言文本等。傳統(tǒng)的關(guān)系型數(shù)據(jù)庫(kù)通常不擅長(zhǎng)處理向量數(shù)據(jù),因?yàn)樗鼈冃枰獙?shù)據(jù)映射成結(jié)構(gòu)化的表格形式,而向量數(shù)據(jù)的維度較高、結(jié)構(gòu)復(fù)雜

    2024年02月15日
    瀏覽(38)
  • 《向量數(shù)據(jù)庫(kù)指南》:向量數(shù)據(jù)庫(kù)Pinecone如何集成數(shù)據(jù)湖

    目錄 為什么選擇Databricks? 為什么選擇Pinecone? 設(shè)置Spark集群 環(huán)境設(shè)置 將數(shù)據(jù)集加載到分區(qū)中 創(chuàng)建將文本轉(zhuǎn)換為嵌入的函數(shù) 將UDF應(yīng)用于數(shù)據(jù) 更新嵌入 摘要 使用Databricks和Pinecone在規(guī)模上創(chuàng)建和索引向量嵌入

    2024年02月15日
    瀏覽(24)
  • 【入門篇】ClickHouse最優(yōu)秀的開源列式存儲(chǔ)數(shù)據(jù)庫(kù)

    【入門篇】ClickHouse最優(yōu)秀的開源列式存儲(chǔ)數(shù)據(jù)庫(kù)

    ClickHouse是一個(gè)用于聯(lián)機(jī)分析(OLAP)的列式數(shù)據(jù)庫(kù)管理系統(tǒng)(DBMS)。 在傳統(tǒng)的行式數(shù)據(jù)庫(kù)系統(tǒng)中,數(shù)據(jù)按如下順序存儲(chǔ): Row WatchID JavaEnable Title GoodEvent EventTime #0 89354350662 1 Investor Relations 1 2016-05-18 05:19:20 #1 90329509958 0 Contact us 1 2016-05-18 08:10:20 #2 89953706054 1 Mission 1 2016-05-18 07:38:00 #N …

    2024年02月04日
    瀏覽(23)
  • 《向量數(shù)據(jù)庫(kù)指南》——宏觀解讀向量數(shù)據(jù)庫(kù)Milvus Cloud

    《向量數(shù)據(jù)庫(kù)指南》——宏觀解讀向量數(shù)據(jù)庫(kù)Milvus Cloud

    宏觀解讀向量數(shù)據(jù)庫(kù) 如今,強(qiáng)大的機(jī)器學(xué)習(xí)模型配合 Milvus 等向量數(shù)據(jù)庫(kù)的模式已經(jīng)為電子商務(wù)、推薦系統(tǒng)、語(yǔ)義檢索、計(jì)算機(jī)安全、制藥等領(lǐng)域和應(yīng)用場(chǎng)景帶來(lái)變革。而對(duì)于用戶而言,除了足夠多的應(yīng)用場(chǎng)景,向量數(shù)據(jù)庫(kù)還需要具備更多重要的特性,包括: 可靈活擴(kuò)展、支

    2024年02月07日
    瀏覽(25)
  • 《向量數(shù)據(jù)庫(kù)指南》:向量數(shù)據(jù)庫(kù)Pinecone如何集成LangChain (一)

    《向量數(shù)據(jù)庫(kù)指南》:向量數(shù)據(jù)庫(kù)Pinecone如何集成LangChain (一)

    目錄 LangChain中的檢索增強(qiáng) 建立知識(shí)庫(kù) 歡迎使用Pinecone和LangChain的集成指南。本文檔涵蓋了將高性能向量數(shù)據(jù)庫(kù)Pinecone與基于大型語(yǔ)言模型(LLMs)構(gòu)建應(yīng)用程序的框架LangChain集成的步驟。 ? Pinecone使開發(fā)人員能夠基于向量相似性搜索構(gòu)建可擴(kuò)展的實(shí)時(shí)推薦和搜索系統(tǒng)。另一方

    2024年02月15日
    瀏覽(18)
  • 《向量數(shù)據(jù)庫(kù)》——向量數(shù)據(jù)庫(kù)Milvus Cloud 和Dify比較

    《向量數(shù)據(jù)庫(kù)》——向量數(shù)據(jù)庫(kù)Milvus Cloud 和Dify比較

    Zilliz Cloud v.s. Dify Dify 作為開源的 LLMs App 技術(shù)棧,在此前已支持豐富多元的大型語(yǔ)言模型的接入,除了 OpenAI、Anthropic、Azure OpenAI、Hugging face、Replicate 等全球頂尖模型及模型托管平臺(tái),也完成了國(guó)內(nèi)主流的各大模型支持(如文心一言、智譜 AI 等)。 而 Zilliz Cloud ?和 Milvus 則是

    2024年02月08日
    瀏覽(41)
  • AntDB數(shù)據(jù)庫(kù)榮獲 “2023年信創(chuàng)物聯(lián)網(wǎng)優(yōu)秀服務(wù)商”

    AntDB數(shù)據(jù)庫(kù)榮獲 “2023年信創(chuàng)物聯(lián)網(wǎng)優(yōu)秀服務(wù)商”

    日前,在2023世界數(shù)字經(jīng)濟(jì)大會(huì)暨第十三屆智博會(huì)?·?2023京甬信創(chuàng)物聯(lián)網(wǎng)產(chǎn)融對(duì)接會(huì)上, AntDB數(shù)據(jù)庫(kù)再獲殊榮,獲評(píng)“2023年信創(chuàng)物聯(lián)網(wǎng)優(yōu)秀服務(wù)商” 。 圖1:2023年信創(chuàng)物聯(lián)網(wǎng)優(yōu)秀服務(wù)商頒獎(jiǎng)現(xiàn)場(chǎng) 信創(chuàng)物聯(lián)網(wǎng)是信息技術(shù)應(yīng)用創(chuàng)新與物聯(lián)網(wǎng)的結(jié)合 ,其以物聯(lián)網(wǎng)技術(shù)為基礎(chǔ),能夠

    2024年02月06日
    瀏覽(23)
  • 《向量數(shù)據(jù)庫(kù)指南》——開源框架NVIDIA Merlin & 向量數(shù)據(jù)庫(kù)Milvus

    《向量數(shù)據(jù)庫(kù)指南》——開源框架NVIDIA Merlin & 向量數(shù)據(jù)庫(kù)Milvus

    推薦系統(tǒng) pipeline 中至關(guān)重要的一環(huán)便是為用戶檢索并找到最相關(guān)的商品。為了實(shí)現(xiàn)這一目標(biāo),通常會(huì)使用低維向量(embedding)表示商品,使用數(shù)據(jù)庫(kù)存儲(chǔ)及索引數(shù)據(jù),最終對(duì)數(shù)據(jù)庫(kù)中數(shù)據(jù)進(jìn)行近似最近鄰(ANN)搜索。這些向量表示是通過(guò)深度學(xué)習(xí)模型獲取的,而這些深度學(xué)習(xí)

    2024年02月05日
    瀏覽(23)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包