Knowledge Base
-
Create Knowledge Base
- Local Drive
- Google Drive
- URL
-
For signle file :
initz create knowledge --name=<knowledge-base-name> --desc=<knowledge-base-description> --source=local --file=<filepath>
-
For multiple files :
initz create knowledge --name=<knowledge-base-name> --desc=<knowledge-base-description> --source=local --folder=<folderpath>
initz create knowledge --name=<knowledge-base-name> --desc=<knowledge-base-description> --source=googledrive
initz create knowledge --name=<knowledge-base-name> --desc=<knowledge-base-description> --source=url --url=<comma-seperated-URL>
Flags
--name
- Indicates the name of the Knowledge base.
- required
- Shorthand :
n
--desc
- Indicates the description for the knowledge base.
- Optional
--source
- Possible Values :
local/googledrive/url
- Required
--file
- Path of the file (In case of single file)
- Required
--folder
- Path of the folder (In case of multiple files)
- Required
--url
- Comma-separated list of URLs to process
- Required
-
List all Knowledge Base
initz get knowledge
-
Get sources of Knowledge Base
initz get source --name=<knowledge-base-name>
-
Add source to Knowledge Base
- Local Drive
- Google Drive
- URL
- For single file :
initz add source --name=<assistant-name> --source=local --file=<filepath>
- For multiple files :
initz add source --name=<assistant-name> --source=local --folder=<folderpath>
initz add source --name=<assistant-name> --source=googledrive
initz add source --name=<assistant-name> --source=url --url=<comma-seperated-URL>
Flags
--name
- Indicates the name of the Knowledge base.
- required
- Shorthand :
n
--source
- Possible Values :
local/googledrive/url
- Required
--file
- Path of the file (In case of single file)
- Required
--folder
- Path of the folder (In case of multiple files)
- Required
--url
- Comma-separated list of URLs to process
- Required
-
Delete source from Knowledge Base
initz delete source --name=<knowledge-base-name> --source-name=<comma-seperated-sources-name>
Flags
--name
- Indicates the name of the Knowledge base.
- required
- Shorthand :
n
--source-name
- Indicates the comma seperated names of the sources you want to delete.
- Example :
initz delete source -n RagTestDemo --source-name react5.pdf,react3.pdf,react4.pdf
- required