refind
1.0.0
Refind는 내 개인 문서를 weaviate 벡터 데이터베이스에 저장하고 OpenAi 벡터 라이저 모듈 및 생성 검색을 사용하는 프로젝트입니다.
다음은 동일한 입력 질문으로 다른 답변을 보여주는 Asciinema가있는 쉘 레코딩입니다.
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