mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-12 18:47:44 -10:00
23 lines
664 B
Python
23 lines
664 B
Python
"""
|
|
Vector Stores Capabilities Example
|
|
|
|
Demonstrates vector store management using PraisonAI capabilities.
|
|
"""
|
|
|
|
from praisonai.capabilities import vector_store_create, vector_store_search
|
|
|
|
print("=== Vector Store Operations ===")
|
|
print("Available functions:")
|
|
print(" vector_store_create(name)")
|
|
print(" vector_store_search(vector_store_id, query)")
|
|
|
|
print("\n=== Create Vector Store ===")
|
|
try:
|
|
store = vector_store_create(name="test-store")
|
|
print(f"Created: {store}")
|
|
except Exception as e:
|
|
print(f"Note: {e}")
|
|
|
|
print("\nSee CLI: praisonai vector-stores create --name 'my-store'")
|
|
print("See CLI: praisonai vector-stores search <store_id> <query>")
|