{"id":"6b08c24d38c84264c2027482","slug":"embeddings-vector-db","title":"Embeddings and vector databases: searching by meaning","summary":"What an embedding is, how to compute cosine similarity, which model to pick and how to store millions of vectors in pgvector, Qdrant or Chroma – with code in Python, TypeScript, C#, Java and Go.","servedLang":"en","availableLangs":["pl","en"],"topics":["embeddings-vector-db","rag","llm-fundamentals"],"techs":["python","typescript","dotnet","java","go"],"tags":["embeddings","vector-database","cosine-similarity","pgvector","qdrant","chroma","hnsw","semantic-search"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":22,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:35:41.309Z","updatedAt":"2026-11-27T13:08:57.576Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"rose","background":"hex","weaveResources":true,"toc":"right"},"seoDescription":"Embeddings for developers: meaning vectors, cosine similarity, dot product, L2, Voyage, OpenAI and open-source models, HNSW and IVF indexes, pgvector, Qdrant and Chroma in practice.","wordCount":4205,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"A customer of the pierogi place types \"something without meat for a kid\" into the search box and gets zero results – because the menu does not say \"without meat\", it says \"vegetarian\" and \"mild\". "},{"type":"text","text":"Embeddings","marks":[{"type":"bold"}]},{"type":"text","text":" solve this problem: they turn text into a vector of numbers so that texts with similar meaning end up close to each other. "},{"type":"text","text":"Vector databases","marks":[{"type":"bold"}]},{"type":"text","text":" can find the nearest neighbours among millions of such vectors in milliseconds. Together they are the foundation of semantic search and "},{"type":"text","text":"RAG","marks":[{"type":"link","attrs":{"href":"/en/topics/rag"}}]},{"type":"text","text":"."}]},{"type":"stats","attrs":{"items":[{"value":"1024","label":"vector dimensions","hint":"default in Voyage 4 models and multilingual-e5-large"},{"value":"6.1 GB","label":"one million 1536-dim vectors","hint":"in float32, without index and metadata"},{"value":"~4","label":"hits out of 40 candidates","hint":"pgvector HNSW with a filter matching 10% of rows"}]}},{"type":"callout","attrs":{"variant":"info","title":"TL;DR"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"An "},{"type":"text","text":"embedding","marks":[{"type":"bold"}]},{"type":"text","text":" is a vector (usually 384–3,072 numbers) describing the meaning of a text. Similar meanings = nearby vectors, regardless of the words used."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Similarity is usually measured with the "},{"type":"text","text":"cosine of the angle","marks":[{"type":"bold"}]},{"type":"text","text":" between vectors; for normalized vectors that is simply the dot product."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A "},{"type":"text","text":"vector database","marks":[{"type":"bold"}]},{"type":"text","text":" (pgvector, Qdrant, Chroma…) stores vectors with metadata and finds nearest neighbours with an approximate index such as HNSW – fast, but not always perfect."}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"the-problem-a-search-box-that-does-not-understand-questions"},"content":[{"type":"text","text":"The problem: a search box that does not understand questions"}]},{"type":"paragraph","content":[{"type":"text","text":"The first version of search on Halina's Pierogi platform is a "},{"type":"text","text":"WHERE name ILIKE '%' || :q || '%'","marks":[{"type":"code"}]},{"type":"text","text":" query. It works for \"ruskie\", but fails at everything customers describe in their own words:"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Customer types"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"The menu says"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ILIKE","marks":[{"type":"code"}]},{"type":"text","text":" result"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"something without meat\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"vegetarian\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"nothing"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"something sweet\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"with blueberries and cream\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"nothing"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"anything with nuts?\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"walnut sauce\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"nothing (different word form)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"ruskie pierogi\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"\"Ruskie pierogi\""}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"hit"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Full-text search with stemming (for example "},{"type":"text","text":"tsvector","marks":[{"type":"code"}]},{"type":"text","text":" in PostgreSQL or BM25 in Elasticsearch) helps with word forms, but it still matches "},{"type":"text","text":"words","marks":[{"type":"bold"}]},{"type":"text","text":", not "},{"type":"text","text":"meaning","marks":[{"type":"bold"}]},{"type":"text","text":". We need a representation in which \"without meat\" and \"vegetarian\" are close together."}]},{"type":"heading","attrs":{"level":2,"id":"intuition-a-map-of-meanings"},"content":[{"type":"text","text":"Intuition: a map of meanings"}]},{"type":"paragraph","content":[{"type":"text","text":"Imagine a map on which every dish has coordinates. If the axes meant \"vegetable/cheese\", \"meat\" and \"sweet\", ruskie pierogi would sit at roughly "},{"type":"text","text":"[0.8, 0.1, 0.2]","marks":[{"type":"code"}]},{"type":"text","text":" and blueberry pierogi at "},{"type":"text","text":"[0.4, 0.0, 0.9]","marks":[{"type":"code"}]},{"type":"text","text":". The question \"something without meat, sweet is fine\" is the point "},{"type":"text","text":"[0.9, 0.0, 0.3]","marks":[{"type":"code"}]},{"type":"text","text":". Search boils down to one question: "},{"type":"text","text":"which points lie closest to the query point?","marks":[{"type":"bold"}]}]},{"type":"paragraph","content":[{"type":"text","text":"A real embedding model does the same thing, only in hundreds or thousands of dimensions, and the axes have no human names – directions in that space emerge during training. Let's compute our toy example by hand. The cosine similarity of the query "},{"type":"text","text":"q","marks":[{"type":"italic"}]},{"type":"text","text":" and ruskie pierogi "},{"type":"text","text":"r","marks":[{"type":"italic"}]},{"type":"text","text":":"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"dot product: 0.9·0.8 + 0.0·0.1 + 0.3·0.2 = "},{"type":"text","text":"0.78","marks":[{"type":"bold"}]}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"vector lengths: |q| = √(0.81 + 0 + 0.09) ≈ 0.949, |r| = √(0.64 + 0.01 + 0.04) ≈ 0.831"}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"cosine: 0.78 / (0.949 · 0.831) ≈ "},{"type":"text","text":"0.99","marks":[{"type":"bold"}]},{"type":"text","text":" – almost the same direction."}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"Meat pierogi score 0.14 and blueberry pierogi 0.67. The ranking is exactly what a human would expect."}]},{"type":"codeGroup","attrs":{"title":"Cosine similarity from scratch"},"content":[{"type":"codeBlock","attrs":{"language":"python","filename":"similarity.py"},"content":[{"type":"text","text":"import math\n\n# Toy 3-D \"embeddings\": (vegetable/cheese, meat, sweet). Real ones have 384-3072 dims.\nQUERY = [0.9, 0.0, 0.3]  # \"something without meat, sweet is fine\"\nDISHES = {\n    \"ruskie pierogi\": [0.8, 0.1, 0.2],\n    \"meat pierogi\": [0.1, 0.9, 0.1],\n    \"blueberry pierogi\": [0.4, 0.0, 0.9],\n}\n\ndef dot(a: list[float], b: list[float]) -> float:\n    return sum(x * y for x, y in zip(a, b))\n\ndef norm(a: list[float]) -> float:\n    return math.sqrt(dot(a, a))\n\ndef cosine(a: list[float], b: list[float]) -> float:\n    # Angle between vectors: 1 = same direction, 0 = unrelated, -1 = opposite.\n    return dot(a, b) / (norm(a) * norm(b))\n\ndef l2(a: list[float], b: list[float]) -> float:\n    return math.sqrt(sum((x - y) ** 2 for x, y in zip(a, b)))\n\nranked = sorted(DISHES.items(), key=lambda kv: cosine(QUERY, kv[1]), reverse=True)\nfor name, vec in ranked:\n    print(f\"{name:18} cos={cosine(QUERY, vec):.3f} dot={dot(QUERY, vec):.3f} l2={l2(QUERY, vec):.3f}\")\n# ruskie pierogi     cos=0.990 dot=0.780 l2=0.173\n# blueberry pierogi  cos=0.674 dot=0.630 l2=0.781\n# meat pierogi       cos=0.139 dot=0.120 l2=1.221"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"similarity.ts"},"content":[{"type":"text","text":"// Toy 3-D \"embeddings\": (vegetable/cheese, meat, sweet). Real ones have 384-3072 dims.\nconst query = [0.9, 0.0, 0.3];\nconst dishes: Record<string, number[]> = {\n  \"ruskie pierogi\": [0.8, 0.1, 0.2],\n  \"meat pierogi\": [0.1, 0.9, 0.1],\n  \"blueberry pierogi\": [0.4, 0.0, 0.9],\n};\n\nconst dot = (a: number[], b: number[]) => a.reduce((sum, x, i) => sum + x * b[i], 0);\nconst norm = (a: number[]) => Math.sqrt(dot(a, a));\nconst cosine = (a: number[], b: number[]) => dot(a, b) / (norm(a) * norm(b));\n\n// Normalize once at write time - then cosine == dot product (cheaper at query time).\nconst normalize = (a: number[]) => {\n  const n = norm(a);\n  return a.map((x) => x / n);\n};\n\nconst q = normalize(query);\nconst ranked = Object.entries(dishes)\n  .map(([name, vec]) => ({ name, cos: cosine(query, vec), dotOfUnit: dot(q, normalize(vec)) }))\n  .sort((a, b) => b.cos - a.cos);\n\nfor (const r of ranked) {\n  console.log(`${r.name.padEnd(18)} cos=${r.cos.toFixed(3)} dot(unit)=${r.dotOfUnit.toFixed(3)}`);\n}"}]},{"type":"codeBlock","attrs":{"language":"csharp","filename":"Similarity.cs"},"content":[{"type":"text","text":"using System.Numerics.Tensors;\n\n// Toy 3-D \"embeddings\": (vegetable/cheese, meat, sweet). Real ones have 384-3072 dims.\nfloat[] query = [0.9f, 0.0f, 0.3f];\nvar dishes = new Dictionary<string, float[]>\n{\n    [\"ruskie pierogi\"] = [0.8f, 0.1f, 0.2f],\n    [\"meat pierogi\"] = [0.1f, 0.9f, 0.1f],\n    [\"blueberry pierogi\"] = [0.4f, 0.0f, 0.9f],\n};\n\nforeach (var (name, vec) in dishes.OrderByDescending(d => Cosine(query, d.Value)))\n{\n    // TensorPrimitives uses SIMD - use it in production instead of a hand-written loop.\n    float fast = TensorPrimitives.CosineSimilarity(query, vec);\n    Console.WriteLine($\"{name,-18} cos={Cosine(query, vec):F3} simd={fast:F3}\");\n}\n\nstatic float Cosine(float[] a, float[] b)\n{\n    float dot = 0, na = 0, nb = 0;\n    for (int i = 0; i < a.Length; i++)\n    {\n        dot += a[i] * b[i];\n        na += a[i] * a[i];\n        nb += b[i] * b[i];\n    }\n    return dot / (MathF.Sqrt(na) * MathF.Sqrt(nb));\n}"}]},{"type":"codeBlock","attrs":{"language":"java","filename":"Similarity.java"},"content":[{"type":"text","text":"import java.util.Comparator;\nimport java.util.Map;\n\npublic class Similarity {\n    static double dot(double[] a, double[] b) {\n        double sum = 0;\n        for (int i = 0; i < a.length; i++) sum += a[i] * b[i];\n        return sum;\n    }\n\n    static double cosine(double[] a, double[] b) {\n        return dot(a, b) / (Math.sqrt(dot(a, a)) * Math.sqrt(dot(b, b)));\n    }\n\n    public static void main(String[] args) {\n        // Toy 3-D \"embeddings\": (vegetable/cheese, meat, sweet).\n        double[] query = {0.9, 0.0, 0.3};\n        Map<String, double[]> dishes = Map.of(\n                \"ruskie pierogi\", new double[]{0.8, 0.1, 0.2},\n                \"meat pierogi\", new double[]{0.1, 0.9, 0.1},\n                \"blueberry pierogi\", new double[]{0.4, 0.0, 0.9});\n\n        dishes.entrySet().stream()\n                .sorted(Comparator.comparingDouble(\n                        (Map.Entry<String, double[]> e) -> cosine(query, e.getValue())).reversed())\n                .forEach(e -> System.out.printf(\"%-18s cos=%.3f%n\", e.getKey(), cosine(query, e.getValue())));\n    }\n}"}]},{"type":"codeBlock","attrs":{"language":"go","filename":"similarity.go"},"content":[{"type":"text","text":"package main\n\nimport (\n\t\"fmt\"\n\t\"math\"\n\t\"sort\"\n)\n\nfunc dot(a, b []float64) float64 {\n\tvar s float64\n\tfor i := range a {\n\t\ts += a[i] * b[i]\n\t}\n\treturn s\n}\n\nfunc cosine(a, b []float64) float64 {\n\treturn dot(a, b) / (math.Sqrt(dot(a, a)) * math.Sqrt(dot(b, b)))\n}\n\nfunc main() {\n\t// Toy 3-D \"embeddings\": (vegetable/cheese, meat, sweet).\n\tquery := []float64{0.9, 0.0, 0.3}\n\tdishes := map[string][]float64{\n\t\t\"ruskie pierogi\":    {0.8, 0.1, 0.2},\n\t\t\"meat pierogi\":      {0.1, 0.9, 0.1},\n\t\t\"blueberry pierogi\": {0.4, 0.0, 0.9},\n\t}\n\tnames := make([]string, 0, len(dishes))\n\tfor n := range dishes {\n\t\tnames = append(names, n)\n\t}\n\tsort.Slice(names, func(i, j int) bool {\n\t\treturn cosine(query, dishes[names[i]]) > cosine(query, dishes[names[j]])\n\t})\n\tfor _, n := range names {\n\t\tfmt.Printf(\"%-18s cos=%.3f\\n\", n, cosine(query, dishes[n]))\n\t}\n}"}]}]},{"type":"heading","attrs":{"level":2,"id":"three-distance-measures"},"content":[{"type":"text","text":"Three distance measures"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Measure"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Formula (intuition)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"When"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Cosine similarity"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the angle between vectors, from −1 to 1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the default for text – ignores vector length"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Dot product"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the sum of coordinate products"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"when vectors are normalized to length 1 – same ranking as cosine, but cheaper"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Euclidean distance (L2)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"the length of the segment between points"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"when the model was trained for L2; for normalized vectors the ranking matches cosine"}]}]}]}]},{"type":"paragraph","content":[{"type":"text","text":"The key sentence: "},{"type":"text","text":"for vectors of length 1, all three measures give the same ranking.","marks":[{"type":"bold"}]},{"type":"text","text":" OpenAI and Voyage models already return normalized vectors; with open models you turn normalization on yourself (for example "},{"type":"text","text":"normalize_embeddings=True","marks":[{"type":"code"}]},{"type":"text","text":" in sentence-transformers). In pgvector they map to the operators "},{"type":"text","text":"<=>","marks":[{"type":"code"}]},{"type":"text","text":" (cosine distance, i.e. 1 − similarity), "},{"type":"text","text":"<#>","marks":[{"type":"code"}]},{"type":"text","text":" (negative inner product) and "},{"type":"text","text":"<->","marks":[{"type":"code"}]},{"type":"text","text":" (L2)."}]},{"type":"heading","attrs":{"level":2,"id":"how-the-model-knows-what-is-similar"},"content":[{"type":"text","text":"How the model knows what is similar"}]},{"type":"paragraph","content":[{"type":"text","text":"An embedding model is usually an "},{"type":"text","text":"encoder","marks":[{"type":"italic"}]},{"type":"text","text":" transformer: it reads the whole text and averages its token vectors (or takes the vector of a special token) into a single vector. Quality comes from "},{"type":"text","text":"contrastive","marks":[{"type":"bold"}]},{"type":"text","text":" training: the model sees millions of \"question – matching passage\" pairs and learns to pull their vectors together and push them away from non-matching passages, often deliberately chosen \"hard negatives\"."}]}]},"toc":[{"id":"the-problem-a-search-box-that-does-not-understand-questions","text":"The problem: a search box that does not understand questions","level":2,"locked":false},{"id":"intuition-a-map-of-meanings","text":"Intuition: a map of meanings","level":2,"locked":false},{"id":"three-distance-measures","text":"Three distance measures","level":2,"locked":false},{"id":"how-the-model-knows-what-is-similar","text":"How the model knows what is similar","level":2,"locked":false},{"id":"which-embedding-model-to-choose","text":"Which embedding model to choose","level":2,"locked":true},{"id":"nearest-neighbours-exact-or-fast","text":"Nearest neighbours: exact or fast","level":2,"locked":true},{"id":"vector-databases-in-practice","text":"Vector databases in practice","level":2,"locked":true},{"id":"dimensions-memory-and-cost","text":"Dimensions, memory and cost","level":2,"locked":true},{"id":"a-short-history-of-meaning-vectors","text":"A short history of meaning vectors","level":2,"locked":true},{"id":"when-vector-search-and-when-keywords","text":"When vector search, and when keywords","level":2,"locked":true},{"id":"pre-production-checklist","text":"Pre-production checklist","level":2,"locked":true},{"id":"test-yourself","text":"Test yourself","level":2,"locked":true},{"id":"what-s-next","text":"What's next","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":59,"visibleBlocks":18,"resources":[{"id":"6b0857b33c96f2d34d0b37f6","type":"article","provider":"web","url":"https://simonwillison.net/2023/Oct/23/embeddings","embedUrl":null,"title":"Embeddings: What they are and why they matter","description":"Embeddings are a really neat trick that often come wrapped in a pile of intimidating jargon. If you can make it through that jargon, they unlock powerful and exciting techniques …","author":"Simon Willison","thumbnailUrl":"https://static.simonwillison.net/static/2023/embeddings/embeddings.003.jpeg","durationSec":null,"lang":"en","topics":["embeddings-vector-db"],"techs":["general"],"tags":["ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2023-10-23T13:42:12.000Z","popularity":81,"verifiedAt":"2026-11-26T11:18:21.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"},{"id":"6b0857b43c96f2d34d0b3850","type":"article","provider":"web","url":"https://huggingface.co/spaces/hesamation/primer-llm-embedding","embedUrl":null,"title":"LLM Embeddings Explained: A Visual and Intuitive Guide","description":"How Language Models Turn Text into Meaning, From Traditional","author":"huggingface.co","thumbnailUrl":"https://cdn-uploads.huggingface.co/production/uploads/647f805de9c81260ff8881ee/8v52lNo2sFtNySUlVnXF4.png","durationSec":null,"lang":"en","topics":["embeddings-vector-db"],"techs":["general"],"tags":["llm","ai","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2025-07-28T07:02:14.000Z","popularity":76,"verifiedAt":"2026-11-26T11:18:21.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.221Z","updatedAt":"2026-11-26T16:00:51.221Z"},{"id":"6b0857c23c96f2d34d0b458c","type":"article","provider":"web","url":"https://qdrant.tech/articles/what-is-a-vector-database","embedUrl":null,"title":"What is a Vector Database? - Qdrant","description":"Discover how vector databases power semantic search by understanding the meaning behind your data. This guide breaks down how they work and why they've become the backbone of modern AI search.","author":"Qdrant","thumbnailUrl":"https://qdrant.tech/articles_data/what-is-a-vector-database/preview/social_preview.png","durationSec":null,"lang":"en","topics":["rag","embeddings-vector-db"],"techs":["general"],"tags":["databases","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:26:44.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857b23c96f2d34d0b342b","type":"repo","provider":"github","url":"https://github.com/pgvector/pgvector","embedUrl":null,"title":"pgvector/pgvector","description":"Open-source vector similarity search for Postgres","author":"pgvector","thumbnailUrl":"https://opengraph.githubassets.com/1/pgvector/pgvector","durationSec":null,"lang":"en","topics":["embeddings-vector-db"],"techs":["general"],"tags":["nearest-neighbor-search","approximate-nearest-neighbor-search","databases","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2021-04-20T21:13:52.000Z","popularity":85,"verifiedAt":"2026-11-26T10:56:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857c23c96f2d34d0b457c","type":"article","provider":"web","url":"https://milanjovanovic.tech/blog/getting-started-with-pgvector-in-dotnet-for-simple-vector-search","embedUrl":null,"title":"Vector Search in .NET With pgvector and PostgreSQL","description":"Vector search doesn't require a dedicated vector database. PostgreSQL with pgvector gives you similarity search right next to your relational data.","author":"Milan Jovanović","thumbnailUrl":"https://milanjovanovic.tech/blog-covers/mnw_187.png","durationSec":null,"lang":"en","topics":["embeddings-vector-db","ai-in-dotnet"],"techs":["dotnet"],"tags":["databases","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2026-03-28T00:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:28:57.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857c13c96f2d34d0b449f","type":"article","provider":"web","url":"https://lilianweng.github.io/posts/2017-10-15-word-embedding","embedUrl":null,"title":"Learning Word Embedding","description":"Human vocabulary comes in free text. In order to make a machine learning model understand and process the natural language, we need to transform the free-text words into numeric values. One of the simplest transformation approaches is to do a one-hot encoding in which each distinct word stands for…","author":"Lilian Weng","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["embeddings-vector-db"],"techs":["general"],"tags":["machine-learning","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2017-10-15T00:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:30:23.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[{"slug":"ai-path","title":"AI for developers","items":[{"slug":"llm-fundamentals","title":"LLM fundamentals: tokens, context windows and next-token prediction","current":false},{"slug":"prompt-engineering","title":"Prompt engineering: writing instructions a model will actually follow","current":false},{"slug":"embeddings-vector-db","title":"Embeddings and vector databases: searching by meaning","current":true},{"slug":"rag","title":"RAG: answers grounded in your own documents","current":false},{"slug":"tool-use","title":"Tool use: how a language model calls your application's functions","current":false},{"slug":"ai-agents","title":"AI agents: a model in a loop with tools – and when a plain workflow is enough","current":false},{"slug":"mcp","title":"MCP (Model Context Protocol): one standard for connecting AI to tools and data","current":false},{"slug":"evals","title":"Evaluating LLM applications (evals): tests for systems that are not deterministic","current":false},{"slug":"llm-ops","title":"LLMOps: model gateways, caching, limits, observability and costs in production","current":false},{"slug":"ai-guardrails","title":"Guardrails and security for LLM applications: prompt injection, data leaks and tool permissions","current":false},{"slug":"local-llms","title":"Local language models: Ollama, llama.cpp, vLLM, quantization and the real trade-offs","current":false},{"slug":"fine-tuning","title":"Fine-tuning language models: when it pays off, LoRA and QLoRA in practice","current":false},{"slug":"ai-coding-assistants","title":"AI coding assistants: from editor suggestions to an agent that opens pull requests","current":false}]}],"prev":{"slug":"prompt-engineering","title":"Prompt engineering: writing instructions a model will actually follow"},"next":{"slug":"rag","title":"RAG: answers grounded in your own documents"},"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Authority","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":38}]}}