Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
[B! Vector Database] bentsuyoshiのブックマーク
[go: Go Back, main page]

タグ

Vector Databaseに関するbentsuyoshiのブックマーク (1)

  • LangChainのChromaの使い方メモ - 佐藤百貨店

    LangChainで用意されている代表的なVector StoreにChroma(ラッパー)がある。 ドキュメントだけ読んでいても、どうも使い方が分かりにくかったので、適当にソースを読みながら使い方をメモしてみました。 VectorStore作成 データの追加 データの検索 永続化 永続化したDBの読み込み embedding作成にOpenAI APIを利用する 文字列リストからVectorStore作成 DocumentsからVectorStore作成 リンク VectorStore作成 from langchain.vectorstores import Chroma db = Chroma() print(f"count = {db._collection.count()}") # count = 0 これだけでChromaを使ったVectorStoreは作成できる。ただし、オプショ

    LangChainのChromaの使い方メモ - 佐藤百貨店
    bentsuyoshi
    bentsuyoshi 2025/03/17
    LangChainのChromaの使い方メモ
  • 1