# Core Database

## AiFastDb

::: aifastdb.AiFastDb

High-level interface to the database engine with collection management, CRUD, and hybrid search.

```python
from aifastdb import AiFastDb

with AiFastDb("./my_db", dimension=128) as db:
    db.remember("id1", "content", tags=["tag1"], importance=0.8)
    doc = db.get("id1")
    results = db.recall(query="content", limit=5)
    db.forget("id1")
```

### Collection Management

```python
db.collection("embeddings", dimension=384, description="Vector store")
db.list_collections()   # ["default", "embeddings"]
db.has_collection("embeddings")  # True
db.delete_collection("embeddings")
```

### Batch Operations

```python
db.remember_many([
    {"id": "d1", "content": "Hello"},
    {"id": "d2", "content": "World", "tags": ["greet"]},
])
results = db.get_many(["d1", "d2"])
```

### Hybrid Search

```python
# Text-only search
results = db.recall(query="hello world")

# Vector search
results = db.recall(embedding=[0.1, 0.2, ...])

# Combined with RRF fusion
results = db.recall_rrf(query="hello", embedding=[0.1, ...], k=60.0)
```

## Collection

::: aifastdb.Collection

Named sub-collection with isolated document and vector storage.
