Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_commoncompute-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_commoncompute-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_commoncompute-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_commoncompute-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76410fb03651b29743509ba198fd1aa9f95e1fec505e0584e91482feaa0d3eaa
MD5 35846da5828991a2169643290aa331e0
BLAKE2b-256 d9a144239c918df1c6963e20af8db22679b4620df593a199a7c40e51e90f9cb2

See more details on using hashes here.

File details

Details for the file llama_index_commoncompute-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_commoncompute-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0449081c78470dc309ae38ce2c64b85222b8a57389f7a4db4777527dabe07866
MD5 809f8787f4dc3bf4f34f5307bbd60107
BLAKE2b-256 659165c229320fe761dba682126588188e4b9a2c32981dc7fb953fca47bbf230

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page