{"by":"kaushik92","descendants":18,"id":40791112,"kids":[40798329,40799789,40791964,40791506,40794302,40792773,40795147],"score":78,"text":"Convert your vector embeddings into a set of questions and their ideal responses. Use this dataset to test your LLM and catch failures caused by prompt or RAG updates.<p>Get started in 3 lines of code:<p>```<p>pip3 install fiddlecube<p>```<p>```<p>from fiddlecube import FiddleCube<p>fc = FiddleCube(api_key=&quot;&lt;api-key&gt;&quot;)\ndataset = fc.generate(\n    [\n        &quot;The cat did not want to be petted.&quot;,\n        &quot;The cat was not happy with the owner&#x27;s behavior.&quot;,\n    ],\n    10,\n)\ndataset<p>```<p>Generate your API key: <a href=\"https:&#x2F;&#x2F;dashboard.fiddlecube.ai&#x2F;api-key\">https:&#x2F;&#x2F;dashboard.fiddlecube.ai&#x2F;api-key</a><p># Ideal QnA datasets for testing, eval and training LLMs<p>Testing, evaluation or training LLMs requires an ideal QnA dataset aka the golden dataset.<p>This dataset needs to be diverse, covering a wide range of queries with accurate responses.<p>Creating such a dataset takes significant manual effort.<p>As the prompt or RAG contexts are updated, which is nearly all the time for early applications, the dataset needs to be updated to match.<p># FiddleCube generates ideal QnA from vector embeddings<p>- The questions cover the entire RAG knowledge corpus.<p>- Complex reasoning, safety alignment and 5 other question types are generated.<p>- Filtered for correctness, context relevance and style.<p>- Auto-updated with prompt and RAG updates.","time":1719336385,"title":"Show HN: FiddleCube – Generate Q&A to test your LLM","type":"story","url":"https://github.com/fiddlecube/fiddlecube-sdk"}