Metadata-Version: 2.4
Name: llama-index-commoncompute
Version: 0.1.0
Summary: LlamaIndex integration for Common Compute — Apple-Silicon-powered LLMs and embeddings for your LlamaIndex pipeline.
Project-URL: Homepage, https://commoncompute.ai
Project-URL: Documentation, https://commoncompute.ai/docs
Project-URL: Source, https://github.com/Ikaikaalika/commoncomputeai
Author-email: Common Compute <support@commoncompute.ai>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: commoncompute<1.0,>=0.1.1
Requires-Dist: llama-index-core<0.15,>=0.12.0
Provides-Extra: test
Requires-Dist: pytest>=7; extra == 'test'
Description-Content-Type: text/markdown

# llama-index-commoncompute

LlamaIndex integration for [Common Compute](https://commoncompute.ai).

```bash
pip install llama-index-commoncompute
```

```python
from llama_index.core import Settings, VectorStoreIndex, SimpleDirectoryReader
from llama_index_commoncompute import CommonComputeLLM, CommonComputeEmbedding

Settings.llm = CommonComputeLLM(model="qwen-2.5-7b")
Settings.embed_model = CommonComputeEmbedding(model="bge-small")

docs = SimpleDirectoryReader("./docs").load_data()
index = VectorStoreIndex.from_documents(docs)
print(index.as_query_engine().query("What workloads does Common Compute support?"))
```

Set `CC_API_KEY` in your environment (or pass `api_key=...` to either class).
