Can ada-002 directly answer knowledge base questions?
It cannot generate answers directly. It converts questions and documents into vectors, which the application uses to find relevant passages, and a generative model then organizes the answer. When building knowledge base Q&A, you need to separately handle document storage, similarity retrieval, and answer generation; the embeddings API is responsible for the text representation step.
How can I generate vectors in batches and map them to the original text?
Submit a non-empty array of strings to input, or submit a batch made up of token arrays; both batch formats support up to 2048 items. Each item in the response data includes an index, which can be used to associate it with the input. It is recommended to also save your business document ID so you can still find the original content after vectors are written to the index.
Can I directly submit a PDF, image, or webpage URL?
This endpoint accepts text or token arrays; it is not a file parsing API. Text must first be extracted from PDFs, image content must first be converted into searchable text, and webpage body content must first be retrieved. Even if a URL is submitted as a string, it does not mean the model will automatically open the page and read its contents.
Do float and base64 change the vector dimensions?
They are used to select the return encoding, not the model or dimensions. float returns a numeric array, suitable for direct vector processing; base64 returns an encoded string that must be decoded before use. The full ada-002 vector has 1536 dimensions, and a change in transmission format should not be interpreted as a shorter vector.
Do I need to rebuild the index when switching to text-embedding-3-small?
You should re-embed the documents and build a corresponding index, and queries must also use the same new model. Vectors produced by different models should not be mixed for comparison simply because they have the same dimensions. Before migrating, you can retain the old index for comparison, use real search queries to check result quality, and then gradually switch the retrieval workflow.