Skip to main content

Generate ideal question-answer dataset for testing your LLM.

Project description

FiddleCube - Generate ideal question-answers for testing RAG

FiddleCube generates an ideal question-answer dataset for testing your LLM. Run tests on this dataset before pushing any prompt or RAG upgrades.

Quickstart

Install FiddleCube

pip3 install fiddlecube

API Key Authentication

Get the API key here.

Usage

from fiddlecube import FiddleCube

fc = FiddleCube(api_key="<api-key>")
dataset = fc.generate(
    [
        "The cat did not want to be petted.",
        "The cat was not happy with the owner's behavior.",
    ],
    10,
)
dataset
{
  "results": [
    {
      "query": "Question: Why did the cat not want to be petted?",
      "contexts": ["The cat did not want to be petted."],
      "answer": "The cat did not want to be petted because it was not in the mood for physical affection at that moment.",
      "score": 0.8,
      "question_type": "SIMPLE"
    },
    {
      "query": "Was the cat pleased with the owner's actions?",
      "contexts": ["The cat was not happy with the owner's behavior."],
      "answer": "No, the cat was not pleased with the owner's actions.",
      "score": 0.8,
      "question_type": "NEGATIVE"
    }
  ],
  "status": "COMPLETED",
  "num_tokens_generated": 44,
  "rate_limited": false
}

Ensuring diversity and correctness

  • The questions are spread across the vector embeddings to ensure completeness of testing.
  • The queries and responses are evaluated for correctness and context relevancy.
  • Citations to the database context are maintained for ease of testing and auditing.

Roadmap

  • Question-answers, complex reasoning from RAG
  • Multi-turn conversations
  • Evaluation Setup - Integrate metrics
  • CI setup - Run as part of CI/CD pipeline

Contact Us

Contact us at founders@fiddlecube.ai for any feature requests, feedback or questions.

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

fiddlecube-0.1.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

fiddlecube-0.1.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file fiddlecube-0.1.4.tar.gz.

File metadata

  • Download URL: fiddlecube-0.1.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0

File hashes

Hashes for fiddlecube-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6647900fec8adb7119a48cd1e3a787c765490f0b1b5574c0e772f4d8dffc9b43
MD5 c6a08c0edb44c46818656bc80fd98acc
BLAKE2b-256 f7835b7c69390bf8666ecea36eac59630e9b0eba0cd5e34286795d10387c81cc

See more details on using hashes here.

File details

Details for the file fiddlecube-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: fiddlecube-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0

File hashes

Hashes for fiddlecube-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 90fe82e82433c658c14d6020263dee80fa7108bf572bcb683f7f8f35cac9f422
MD5 f90e09c6f2e39eab8e84ddaf95c92c79
BLAKE2b-256 d7c50123a3ef87380877f1ddcd970a89d523f776124c6bd6b0fc29be97b10abd

See more details on using hashes here.

Supported by

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