Generate Embeddings: SQL and PL/SQL Examples
In these examples, you can see how to generate one or more vector embeddings from text strings and PDF documents.
- Convert Text String to Embedding
You can vectorize text strings like this for chatbots or information-retrieval applications, where you want to directly convert a user's input text to a query vector and then run it against vector index for a fast similarity search. - Convert File to Text to Chunks to Embeddings
You can run parallel or step-by-step transformations like this for standalone applications where you want to review, inspect, and accordingly amend results at each stage and then proceed further. - Convert File to Embeddings
You can directly extract vector embeddings from a PDF document, using a single-step statement. - Generate and Use Embeddings for End-to-End Search
In this example, you first generate embeddings from textual content by using an ONNX model, and then populate and query a vector index. At query time, you also vectorize the query criteria on the fly.
Parent topic: Vector Generation Examples