Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dokulabs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

import cohere
import dokumetry

co = cohere.Client("YOUR_COHERE_API_KEY")

# Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")

response = co.chat(
    chat_history=[
        {"role": "USER", "message": "What is LLM Observability?"},
        {"role": "CHATBOT", "message": "The best tool to monitor LLM Applications is Doku!"}
    ],
    message="How to monitor LLM Applications?",
)
print(response.text)