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
For vector embedding and GPT completion on text strings using OpenAI’s models.
This should call the API directly and not use libraries. Use environmental variable OPENAI_API_KEY.
vector_embed(text String, model_name String): Use the OpenAI API for vector embedding for the given model name. Automatically truncate text if it is too long. Returns vector type.
extract_json(prompt String, model_name String, temperature* DOUBLE, top_p* DOUBLE): Use the completion API with json return type. Returns json type.
completion(prompt String, model_name String, max_output_tokens* INT, temperature* DOUBLE, top_p* DOUBLE): Uses the completion API to generate a String.
Should have 'counter' metrics.
The text was updated successfully, but these errors were encountered:
For vector embedding and GPT completion on text strings using OpenAI’s models.
This should call the API directly and not use libraries. Use environmental variable
OPENAI_API_KEY
.Should have 'counter' metrics.
The text was updated successfully, but these errors were encountered: