CREATE ML_ENGINE
statement and provide own OpenAI API key:
llama_index
engine, if available. Please note that it is necessary to provide own OpenAI API key while creating the model.
Next, we use the CREATE MODEL
statement to create the LlamaIndex model in MindsDB.
Name | Description |
---|---|
engine | It defines the LlamaIndex engine. |
index_class | It is used to define the type of vector store index used. |
reader | It defines the type of reader (either data reader or webpage reader). |
source_url_link | It defines the URL link used to get the answers from. |
input_column | It defines the prompt to the model. |
openai_api_key | It is used to provide your OpenAI API key to gain access to the model. |
CREATE MODEL
syntax to create a model with Llamaindex.
We use a table that contains questions to train the model. This data can be downloaded here and uploaded as a file to MindsDB. If you want to know how to upload a file, you can check out the documentation here.
CREATE MODEL
statement to learn more.DESCRIBE
syntax.