Standalone Knowledge Tool to be used with GPTScript and GPTStudio.
- Embedded SQLite as File Index
- Embedded VectorDB as Embeddings Storage
Requires Go 1.22+
make build
The knowledge tool can run in two modes: server and client, where client can be standalone or referring to a remote server.
knowledge list-datasets
knowledge get-dataset default
knowledge ingest README.md
knowledge get-dataset default
knowledge retrieve "Which filetypes are supported?"
knowledge create-dataset foobar
knowledge ingest -d foobar README.md
knowledge retrieve -d foobar "Which filetypes are supported?"
knowledge delete-dataset foobar
knowledge server
export KNOW_SERVER_URL=http://localhost:8000/v1
knowledge create-dataset foobar
knowledge ingest -d foobar README.md
knowledge retrieve -d foobar "Which filetypes are supported?"
knowledge delete-dataset foobar
.pdf
.html
.md
.txt
.docx
.odt
.rtf
.csv
.ipynb
.json
The API is documented using OpenAPI 2.0 (Swagger), automatically generated using swaggo/swag
(make openapi
).
Note: The examples in the examples/
directory expect the knowledge
binary to be in your $PATH
.
gptscript examples/client.gpt