Accessing The Code
When you use the playground to chat, generate text, summarize text, or create embeddings, OCI Generative AI creates a code that includes your prompt or embeddings to use in applications. Here's how to get the code:
-
Use the playground:
- For chat: Enter prompts and continue your conversation.
- For text generation: Enter prompts and generate responses.
- For summarization: Enter your article or text and generate the summary in your choice of format.
- For text embeddings: Add your phrases to the embedding model and run the model.
-
After you run the model:
- For chat, generation and summarization models: Click View code, select a programming Language, click Copy code, paste the code into a file, and save the file.
- For embedding models: Click Export embeddings to JSON.
- Add authentication to your code.
- Use the code in your application.