refind
1.0.0
Refindは、私の個人文書をWeaviate Vectorデータベースに保存し、OpenAI Vectorizerモジュールと生成検索を使用するプロジェクトです。
以下は、次のような入力質問を含む異なる答えを示すアスシネマを含むシェル記録です。
Openai APIキーを作成して提供します:
export OPENAI_APIKEY= " ... "4097トークン未満のフルテキストドキュメントを入れます。プロンプトが4000トークンの場合、完了はせいぜい97トークンになります。
それを使ってみましょう:
# start the weaviate database
docker-compose up -d
# verify it is up and running
curl http://localhost:8080/v1/meta | jq .
docker-compose logs
# import data, DO IT ONCE
go run main.go import
# query data related to software
go run main.go query | jq .
# when done, gracefully shutdown
docker-compose downこの例では、Weaviateはソフトウェア関連のエントリを返しています。
操作を織ります:
# get the schema
curl -s http://localhost:8080/v1/schema | jq .
# get objects
curl -s http://localhost:8080/v1/objects | jq .
# get one class from the schema
curl -s http://localhost:8080/v1/schema/Chatbot | jq .
# delete a class
curl -s -XDELETE http://localhost:8080/v1/schema/Chatbot | jq . ChatGPT検索プラグイン。
queryコマンドを実行するときにフラグとしてクエリ文字列を追加するreadme.md