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).
Metadata
Release files for llama-index-commoncompute 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_commoncompute-0.1.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_commoncompute-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / llama_index_commoncompute-0.1.0.tar.gz
| Download URL | llama_index_commoncompute-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76410fb03651b29743509ba198fd1aa9f95e1fec505e0584e91482feaa0d3eaa
|
|
BLAKE2b-256 checksum How to use checksums |
d9a144239c918df1c6963e20af8db22679b4620df593a199a7c40e51e90f9cb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / llama_index_commoncompute-0.1.0-py3-none-any.whl
| Download URL | llama_index_commoncompute-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0449081c78470dc309ae38ce2c64b85222b8a57389f7a4db4777527dabe07866
|
|
BLAKE2b-256 checksum How to use checksums |
659165c229320fe761dba682126588188e4b9a2c32981dc7fb953fca47bbf230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|