<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Weaviate &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/weaviate/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Tue, 20 Oct 2026 01:00:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>Weaviate &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Build Hybrid Search With Weaviate and OpenAI Embeddings</title>
		<link>https://www.iaifeed.com/how-to-build-hybrid-search-with-weaviate</link>
					<comments>https://www.iaifeed.com/how-to-build-hybrid-search-with-weaviate#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 12 Oct 2026 12:42:54 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Weaviate]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-build-hybrid-search-with-weaviate</guid>

					<description><![CDATA[Vector search misses exact product codes; keyword search misses paraphrases. Hybrid search in Weaviate does both. Here is how to rank, weight, and tune it.]]></description>
										<content:encoded><![CDATA[<p>Pure vector search is great at meaning and terrible at exact strings. Ask for &#8220;SKU-4471B&#8221; and an embedding may return something merely similar. Keyword search has the opposite problem. <a href="https://www.iaifeed.com/ai-tool/weaviate">Weaviate</a> ships hybrid search that runs both and merges the results.</p>
<p><strong>Quick answer:</strong> Use <code>col.query.hybrid(query="...", alpha=0.5, vector=vec)</code>. The <code>alpha</code> parameter sets the blend: 0 is pure keyword, 1 is pure vector, 0.5 splits them evenly.</p>
<p>Getting the blend right matters more than most teams think. The default 0.5 is rarely the best value for real data.</p>
<h2>How does the alpha parameter work?</h2>
<p>Alpha controls the rank fusion between BM25 keyword scores and vector distance. Low alpha leans keyword, high leans semantic.</p>
<table>
<tr>
<th>alpha</th>
<th>Behavior</th>
<th>Good for</th>
</tr>
<tr>
<td>0.0</td>
<td>Keyword only (BM25)</td>
<td>Codes, names, IDs</td>
</tr>
<tr>
<td>0.25</td>
<td>Keyword-leaning</td>
<td>Product catalogs, legal</td>
</tr>
<tr>
<td>0.5</td>
<td>Balanced</td>
<td>General docs</td>
</tr>
<tr>
<td>0.75</td>
<td>Semantic-leaning</td>
<td>Support questions</td>
</tr>
<tr>
<td>1.0</td>
<td>Vector only</td>
<td>Paraphrase-heavy text</td>
</tr>
</table>
<h2>How do you generate and store embeddings?</h2>
<pre><code>from openai import OpenAI
import weaviate

oc = OpenAI()
client = weaviate.connect_to_local()
col = client.collections.get("Product")

resp = oc.embeddings.create(
    model="text-embedding-3-small",
    input="Wireless noise-cancelling earbuds")
vec = resp.data[0].embedding  # 1536 dims

col.data.insert(properties={"title": "Earbuds", "sku": "SKU-4471B"}, vector=vec)</code></pre>
<p><code>text-embedding-3-small</code> costs $0.02 per million tokens, which makes embedding a 100,000-document catalog a few dollars. Big models are not always better here; small is often enough for search.</p>
<h2>How do you run a hybrid query?</h2>
<pre><code>q = "waterproof earbuds SKU-4471B"
qv = oc.embeddings.create(model="text-embedding-3-small",
                          input=q).data[0].embedding

res = col.query.hybrid(query=q, vector=qv, alpha=0.4, limit=10)
for o in res.objects:
    print(round(o.metadata.score, 3), o.properties["title"])</code></pre>
<p>Scores are normalized to 0-1, which makes thresholds easy to reason about. Anything under about 0.6 is usually noise.</p>
<h2>How do you tune alpha without guessing?</h2>
<p>Build a set of 20-30 real queries with known good answers. Run them across alpha values from 0 to 1 in steps of 0.2 and measure how often the right document lands in the top 3. Pick the winner. This takes an afternoon and usually beats gut feel by a wide margin.</p>
<h2>What are the practical limits?</h2>
<ul>
<li>Hybrid needs both a vector and the text indexed; storing vectors only disables the keyword half.</li>
<li>BM25 tokenization matters — compound SKUs need the right analyzer or they split wrongly.</li>
<li>Two searches per query means slightly higher latency than vector-only.</li>
<li>Embedding costs scale with document count and any re-indexing you trigger.</li>
</ul>
<p><strong>Who this suits:</strong> catalogs, documentation sites, and support systems where users mix natural language with exact identifiers. <strong>Who should skip it:</strong> if all your queries are fuzzy and long, a pure vector search is simpler and only slightly worse.</p>
<h2>Quick Summary</h2>
<ul>
<li>Hybrid search fuses BM25 keyword scores with vector similarity.</li>
<li>Control the mix with <code>alpha</code>: 0 keyword, 1 vector, 0.5 balanced.</li>
<li>Start at alpha 0.4 for catalogs, then tune against real queries.</li>
<li><code>text-embedding-3-small</code> is cheap enough for large catalogs.</li>
<li>Scores are normalized 0-1; treat sub-0.6 results as weak.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-build-hybrid-search-with-weaviate/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Set Up a Weaviate Vector Database in 10 Minutes</title>
		<link>https://www.iaifeed.com/how-to-set-up-a-weaviate-vector-database</link>
					<comments>https://www.iaifeed.com/how-to-set-up-a-weaviate-vector-database#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 12 Oct 2026 12:42:37 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Weaviate]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-set-up-a-weaviate-vector-database</guid>

					<description><![CDATA[Weaviate is an open-source vector database for semantic search. Here is how to run it locally with Docker, create a collection, and store your first embeddings.]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.iaifeed.com/ai-tool/weaviate">Weaviate</a> is an open-source vector database that stores embeddings and lets you search by meaning rather than exact keywords. It also handles hybrid search, which blends vector similarity with BM25 keyword matching.</p>
<p><strong>Quick answer:</strong> Run <code>docker compose up</code> with the Weaviate image, connect from Python with the v4 client, create a collection, and insert vectors. No API key needed locally.</p>
<p>Why Weaviate over a plain file of embeddings? The moment you pass a few thousand vectors, brute-force cosine similarity gets slow and you want an index, filtering, and persistence. That is the whole point of a vector database.</p>
<h2>How do you run Weaviate locally?</h2>
<p>Docker is the fastest path. Save this and run it:</p>
<pre><code># docker-compose.yml
services:
  weaviate:
    image: cr.weaviate.io/semitechnologies/weaviate:1.28.0
    ports:
      - "8080:8080"
      - "50051:50051"
    environment:
      QUERY_DEFAULTS_LIMIT: 25
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: "true"
      PERSISTENCE_DATA_PATH: "/var/lib/weaviate"
      DEFAULT_VECTORIZER_MODULE: "none"
    volumes:
      - ./data:/var/lib/weaviate</code></pre>
<pre><code>docker compose up -d</code></pre>
<p>Setting the vectorizer to <code>none</code> means you supply your own vectors. That keeps the setup provider-agnostic and avoids Weaviate calling an embedding API for you.</p>
<h2>How do you connect with the Python client?</h2>
<pre><code>pip install weaviate-client</code></pre>
<pre><code>import weaviate
client = weaviate.connect_to_local()
print(client.is_ready())</code></pre>
<p>Version 4 of the client changed a lot from v3, so check the docs match your installed version. Most old tutorials online are still v3 and will fail outright.</p>
<h2>How do you create a collection and insert data?</h2>
<pre><code>from weaviate.classes.config import Property, DataType

col = client.collections.create(
    "Document",
    properties=[
        Property(name="text", data_type=DataType.TEXT),
        Property(name="source", data_type=DataType.TEXT),
    ],
)

col.data.insert(properties={"text": "LangChain connects LLMs to tools",
                            "source": "guide"},
                vector=[0.12, 0.98, 0.44, 0.07])</code></pre>
<p>Use a real embedding model for the vector. The numbers above are placeholders to show the shape — a real 1536-dimension vector comes from your embedding provider.</p>
<h2>How do you run a search?</h2>
<p>Semantic search takes a query vector and returns the nearest items. Hybrid search adds a keyword component, which rescues names and codes that embeddings often miss.</p>
<pre><code>res = col.query.near_vector(near_vector=query_vec, limit=5)
for o in res.objects:
    print(o.properties["text"])</code></pre>
<h2>Are there real costs?</h2>
<p>The open-source Weaviate is free to self-host; you pay for the server it runs on. Weaviate Cloud starts with a free sandbox tier and scales to paid clusters priced by resources. The embeddings themselves usually cost more than the database on small projects.</p>
<h2>What should you watch out for?</h2>
<ul>
<li>Dimension mismatch: insert a vector of the wrong length and it is rejected.</li>
<li>Client version churn: v3 examples silently fail on v4.</li>
<li>Anonymous access is for local use only — never expose that port to the internet.</li>
<li>Deleting a collection drops everything; there is no undo.</li>
</ul>
<p><strong>Who this suits:</strong> teams building semantic or hybrid search who want an open-source option they can host. <strong>Who should skip it:</strong> if you have under a few thousand vectors and no concurrency, a numpy array is simpler and needs no infrastructure.</p>
<h2>Quick Summary</h2>
<ul>
<li>Weaviate is an open-source vector database with hybrid search built in.</li>
<li>Run it locally with Docker; no API key required.</li>
<li>Use the v4 Python client and create collections before inserting.</li>
<li>Self-hosted is free; embeddings are the real recurring cost.</li>
<li>Overkill below a few thousand vectors — start simple.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-set-up-a-weaviate-vector-database/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
