fleet-memory/hindsight-clients/python/README.md
Nicolò Boschi 58592d4abc
fix docker cp image build on ci (#10)
* fix docker cp image build on ci

* fix docker

* fix docker again
2025-12-03 21:10:46 +01:00

39 lines
708 B
Markdown

# Hindsight Python Client
Python client library for the Hindsight API.
## Installation
```bash
pip install hindsight-client
```
## Usage
```python
from hindsight_client import Hindsight
client = Hindsight(base_url="http://localhost:8888")
# Retain information
client.retain(
bank_id="my-bank",
content="Alice works at Google in Mountain View."
)
# Recall memories
results = client.recall(
bank_id="my-bank",
query="Where does Alice work?"
)
# Reflect and get an opinion
response = client.reflect(
bank_id="my-bank",
query="What do you think about Alice's career?"
)
```
## Documentation
For full documentation, visit [hindsight](https://github.com/vectorize-io/hindsight).