You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test -e .env || cp .env.example .env
# Edit .env and change api key of OpenAI# Embedding and replacing frontend resources
make deps
forego start
# or
make dist
Prepare preset data file in YAML
welcome:
content: Hello, I am your virtual assistant. How can I help you?role: assistantmessages:
- content: You are a helpful assistant.role: system
- content: When is my birthday?role: user
- content: How would I know?role: assistant# more messages
Prepare database
CREATEUSERmorrigan WITH LOGIN PASSWORD 'mydbusersecret';
CREATEDATABASEmorrigan WITH OWNER = morrigan ENCODING ='UTF8';
GRANT ALL PRIVILEGES ON DATABASE morrigan to morrigan;
\c morrigan
-- optional: install extension from https://github.com/pgvector/pgvector
CREATE EXTENSION vector;
Command line usage
USAGE:
morrigan [global options] command [command options] [arguments...]
COMMANDS:
usage, env show usage
initdb init database schema
import import documents from a csv
fill-qa, fillQAs fill QA in documents
export-qa, exportQAs export QA from documents
embedding, embedding-pormpt read prompt documents and embedding
web, run run a web server
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help