DEV Community

Alex Spinov
Alex Spinov

Posted on

Weaviate Has a Free API — AI-Native Vector Database

Weaviate is an open-source vector database with built-in ML model integration. It vectorizes your data automatically and provides semantic search out of the box.

What Is Weaviate?

Weaviate combines vector search with structured filtering. It can auto-vectorize text and images using integrated ML models.

Free tier (Weaviate Cloud):

  • 14-day sandbox
  • Serverless clusters
  • Embedded Weaviate (local, free forever)

Quick Start

docker run -p 8080:8080 -p 50051:50051 cr.weaviate.io/semitechnologies/weaviate:latest
Enter fullscreen mode Exit fullscreen mode

REST API

# Create class
curl -X POST http://localhost:8080/v1/schema \
  -d '{"class":"Article","properties":[{"name":"title","dataType":["text"]},{"name":"content","dataType":["text"]}]}'

# Add object
curl -X POST http://localhost:8080/v1/objects \
  -d '{"class":"Article","properties":{"title":"AI in 2026","content":"Artificial intelligence continues to evolve..."}}'

# Semantic search (GraphQL)
curl -X POST http://localhost:8080/v1/graphql \
  -d '{"query":"{Get{Article(nearText:{concepts:[\"machine learning trends\"]}limit:5){title content}}}"}'
Enter fullscreen mode Exit fullscreen mode

Python SDK

import weaviate

client = weaviate.connect_to_local()

collection = client.collections.get("Article")
results = collection.query.near_text(query="AI trends", limit=5)
for obj in results.objects:
    print(obj.properties["title"])
Enter fullscreen mode Exit fullscreen mode

Use Cases

  1. RAG pipelines — context retrieval for LLMs
  2. Semantic search — natural language queries
  3. Multi-modal search — text + images
  4. Recommendations — content similarity
  5. Classification — auto-categorization

Need web data at scale? Check out my scraping tools on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)