Home / Companies / DataStax / Blog / Post Details
Content Deep Dive

How to Create Vector Embeddings in Python

Blog post from DataStax

Post Details
Company
Date Published
Author
Phil Nash
Word Count
1,409
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

When building a retrieval-augmented generation (RAG) app, you need to prepare your data by creating vector embeddings in various ways such as locally, via API, via a framework or with Astra DB's Vectorize. Pre-trained embedding models like Sentence Transformers and all-MiniLM-L6-v2 can be used to generate vector embeddings. Local embedding models are useful for experimentation on laptops or hardware acceleration, while APIs provided by services like OpenAI, Google and Cohere offer an alternative option. Frameworks like LangChain and LlamaIndex provide standardized interfaces that abstract the complexities of embedding models and APIs. Astra Vectorize enables Astra DB to automatically generate vector embeddings as documents are inserted or queries are performed, simplifying code maintenance, improving performance and efficiency.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 50 2,390 404 144 +11%
RAG 7 1,877 255 94 +10%
AI Model Fine-tuning 1 860 197 86 -3%
LLM 1 4,963 768 216 -13%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.