Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python client to integrate Cleanlab Codex with your AI Agent

License

NotificationsYou must be signed in to change notification settings

cleanlab/cleanlab-codex

Repository files navigation

Build StatusPyPI - VersionPyPI - Python VersionDocs

Codex enables you to seamlessly leverage knowledge from Subject Matter Experts (SMEs) to improve your RAG/Agentic applications.

Thecleanlab-codex library provides a simple interface to integrate Codex's capabilities into your RAG application.See immediate impact with just a few lines of code!

Demo

Install the package:

pip install cleanlab-codex

Integrating Codex into your RAG application is as simple as:

fromcleanlab_codeximportProjectproject=Project.from_access_key(...)# Your existing RAG code:context=rag_retrieve_context(user_query)prompt=rag_form_prompt(user_query,retrieved_context)response=rag_generate_response(prompt)# Detect bad responses and remediate with Cleanlabresults=project.validate(query=query,context=context,response=response,messages=[...,prompt])final_response= (results["expert_answer"]# Codex's answerifresults["expert_answer"]isnotNoneelseresponse# Your RAG system's initial response)

Why Codex?

  • Detect Knowledge Gaps and Hallucinations: Codex identifies knowledge gaps and incorrect/untrustworthy responses in your AI application, to help you know which questions require expert input.
  • Save SME time: Codex ensures that SMEs see the most critical knowledge gaps first.
  • Easy Integration: Integrate Codex into any RAG/Agentic application with just a few lines of code.
  • Immediate Impact: SME answers instantly improve your AI, without any additional Engineering/technical work.

Documentation

Comprehensive documentation along with tutorials and examples can be foundhere.

License

cleanlab-codex is distributed under the terms of theMIT license.

About

Python client to integrate Cleanlab Codex with your AI Agent

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors13

Languages


[8]ページ先頭

©2009-2026 Movatter.jp