The Smarter Vector Database for AI

Python

### User Query
query = 'How is Acme Inc managing its loan losses as of late?'

### Create the dense query vector
dense_query = [embedding_model.encode(query).tolist()]

### Create the sparse query vector
sparse_query = [dict(Counter(ids)) for ids in tokenizer([query], 
add_special_tokens=False, max_length=None)['input_ids']]

### Hybrid search
table.search(
    vectors={"sparse_index": sparse_query,
    "dense_index": dense_query},
    index_params={"sparse_index":{'weight':0.5} ,
    "dense_index":{'weight':0.5}}, n=5
)
			
Python

table.search (
	      dense_query,
	      n=3,
	      filter=[
		      ("=", "sym", "AAA"),
              (">", "price", "100.00"),
		    ]
	      )
			
Python

### Time Series Window Query Vector
q = AAA_df['price'][100].tolist()

### Search for Similar Time Series Windows
table.search(vectors={'price': [q]}, n=10, type="tss")

### Outlier Search for Anomaly Detection
res = table.search(vectors={'price': [q]}, n=-10, type="tss")[0]

### Multi Search over Multiple Temporal Windows Simultaneously
table.search(vectors={'price': [q, q2, q3]}, n=10, type="tss")

Why Build With KDB.AI

Multimodal RAG

Ability to handle GenAI complexities for modeling unstructured data such as text, video, audio, and images.

Mixed Search

Hybrid, semantic, keyword and temporal search align with the market’s move towards scalable and fast rendering of vectors.

Behavioral Analytics

Spot trends, patterns, and anomalies in your time-oriented data, covering sensors, market-related insights, and more.  

Zero Embedding

Perform search 17x faster with 12x less memory than HNSW without the need for embeddings for fast changing temporal data.

Killer Compression

Reduce memory and on-disk storage by 100x for slow changing time-based data sets and accelerate search by 10x.

Dynamic Hybrid Search

Combines similarity, exact, and literal search in a single query where query results remain relevant with content changes.



YouTube Channel

Learn from our AI Experts with helpful videos on vector databases.

GitHub Repository

Get hands on with our code repositories and try out sample projects.

Slack Community

Get fast responses to your questions from community and KX experts.


Vector Wireframe Brain

New to vector databases? Master the basics and explore key use cases like semantic search, recommendation systems, and anomaly detection. 

Compress and search over massive, fast-flowing time series datasets.

Combine semantic and keyword vector searches for increased search relevance.

Filter vectors based on unlimited metadata to refine search accuracy with structured data.

Understand how to optimize your retrieval of vectors in a variety of scenarios.

Combine vector retrieval with LLM orchestration to power contextual experiences.

Chunk documents and inject relevant data into LLMs to reduce hallucination.