LlamaIndex integration for Common Compute — Apple-Silicon-powered LLMs and embeddings for your LlamaIndex pipeline.
Project description
llama-index-commoncompute
LlamaIndex integration for Common Compute.
pip install llama-index-commoncompute
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_commoncompute-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_commoncompute-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76410fb03651b29743509ba198fd1aa9f95e1fec505e0584e91482feaa0d3eaa
|
|
| MD5 |
35846da5828991a2169643290aa331e0
|
|
| BLAKE2b-256 |
d9a144239c918df1c6963e20af8db22679b4620df593a199a7c40e51e90f9cb2
|
File details
Details for the file llama_index_commoncompute-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_commoncompute-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0449081c78470dc309ae38ce2c64b85222b8a57389f7a4db4777527dabe07866
|
|
| MD5 |
809f8787f4dc3bf4f34f5307bbd60107
|
|
| BLAKE2b-256 |
659165c229320fe761dba682126588188e4b9a2c32981dc7fb953fca47bbf230
|