Skip to main content

No project description provided

Project description

cuminai

This package contains the Cumin AI Python SDK. Cumin AI is a Managed LLM Context Service. This package provides integration with Langchain.

Installation

pip install cuminai

In the rare scenario, if you are on Windows, and you get File Too Long error for any dependency package while installing cuminai. Run the below command to fix it.

git config --global core.longpaths true

Usage

The cuminai class helps easily access the Cumin AI Context store.

# Setup API key
import os
from getpass import getpass

CUMINAI_API_KEY = getpass("Enter Cumin AI API Key: ")
os.environ["CUMINAI_API_KEY"] = CUMINAI_API_KEY
# Access Cumin AI Client
from cuminai import CuminAI

embedding =  ... # use a LangChain Embeddings class

client = CuminAI(
    source="<Cumin AI Context Source>",
    embedding_function = embedding
)
# Get Langchain retreiver for Appending to Chain.
num_docs_to_retrieve = ... # number of docs to retrieve. Defaults to 4
retriever = client.as_retriever(search_kwargs={"k": num_docs_to_retrieve})

Release

Currently Cumin AI is in pre-release mode. We have exciting things planned. You can check out our roadmap to know more.

License

Apache 2.0

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

cuminai-0.0.1.dev165.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

cuminai-0.0.1.dev165-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file cuminai-0.0.1.dev165.tar.gz.

File metadata

  • Download URL: cuminai-0.0.1.dev165.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/10

File hashes

Hashes for cuminai-0.0.1.dev165.tar.gz
Algorithm Hash digest
SHA256 fa293a64f5a585ac72b26b5d70bcf9c2aa5babce4e2520e0e8df2fcddebca6f1
MD5 71465bb01c738117e1c09429764467cb
BLAKE2b-256 a189cb7610895922c4e413bd38c64e2a3c79bd06032ba9dbe06877e700ae8889

See more details on using hashes here.

File details

Details for the file cuminai-0.0.1.dev165-py3-none-any.whl.

File metadata

  • Download URL: cuminai-0.0.1.dev165-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/10

File hashes

Hashes for cuminai-0.0.1.dev165-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d59cbc71313388d8c4e412ee60a42b310e24aabeb0905f12bfcb42cafa7cc5
MD5 0b25a924587af0708c9313a235135493
BLAKE2b-256 a798331afad13b4398fca34f836d2cf53cde8d9d6630bb47b1f40491802cf9de

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