From e5593d6389e39e2daa621877c3a07ddec8f8e21b Mon Sep 17 00:00:00 2001 From: "Documenter.jl" Date: Sun, 4 Aug 2024 18:43:43 +0000 Subject: [PATCH] build based on c137951 --- dev/404.html | 4 +- .../{app.Dz5QUG86.js => app.BUZzOM_X.js} | 2 +- .../chunks/@localSearchIndexroot.Bd8hFZYh.js | 4 - .../chunks/@localSearchIndexroot.DTIZRJv3.js | 4 + ...Pc4aX4.js => VPLocalSearchBox.BcFcHvYk.js} | 4 +- .../{theme.BNLX_dBw.js => theme.KZDCP6Hy.js} | 4 +- ...ra_tools_agent_tools_intro.md.DJvZgul4.js} | 2 +- ...ols_agent_tools_intro.md.DJvZgul4.lean.js} | 0 ...xtra_tools_api_tools_intro.md.VN20Hprx.js} | 2 +- ...tools_api_tools_intro.md.VN20Hprx.lean.js} | 0 ...xtra_tools_rag_tools_intro.md.4lbzXTTR.js} | 2 +- ...tools_rag_tools_intro.md.4lbzXTTR.lean.js} | 0 ...tools_text_utilities_intro.md.CXWb_lmV.js} | 2 +- ..._text_utilities_intro.md.CXWb_lmV.lean.js} | 0 ...d.CAg04DWR.js => reference.md.Ud_SMp1n.js} | 36 ++-- ....lean.js => reference.md.Ud_SMp1n.lean.js} | 16 +- ...js => reference_agenttools.md.Mh6J_xkG.js} | 2 +- ... reference_agenttools.md.Mh6J_xkG.lean.js} | 0 ...y.js => reference_apitools.md.D-H_XvV3.js} | 2 +- ...=> reference_apitools.md.D-H_XvV3.lean.js} | 0 ... => reference_experimental.md.DC6rrNQd.js} | 2 +- ...eference_experimental.md.DC6rrNQd.lean.js} | 0 dev/assets/reference_ragtools.md.B2JuNvyi.js | 15 ++ ...=> reference_ragtools.md.B2JuNvyi.lean.js} | 6 +- dev/assets/reference_ragtools.md.xOyy1pKG.js | 15 -- dev/coverage_of_model_providers.html | 6 +- dev/examples/building_RAG.html | 6 +- dev/examples/readme_examples.html | 6 +- dev/examples/working_with_aitemplates.html | 6 +- dev/examples/working_with_custom_apis.html | 6 +- .../working_with_google_ai_studio.html | 6 +- dev/examples/working_with_ollama.html | 6 +- dev/extra_tools/agent_tools_intro.html | 18 +- dev/extra_tools/api_tools_intro.html | 10 +- dev/extra_tools/rag_tools_intro.html | 24 +-- dev/extra_tools/text_utilities_intro.html | 20 +-- dev/frequently_asked_questions.html | 6 +- dev/getting_started.html | 6 +- dev/hashmap.json | 2 +- dev/how_it_works.html | 6 +- dev/index.html | 6 +- dev/prompts/RAG.html | 6 +- dev/prompts/agents.html | 6 +- dev/prompts/classification.html | 6 +- dev/prompts/critic.html | 6 +- dev/prompts/extraction.html | 6 +- dev/prompts/general.html | 6 +- dev/prompts/persona-task.html | 6 +- dev/prompts/visual.html | 6 +- dev/reference.html | 166 +++++++++--------- dev/reference_agenttools.html | 30 ++-- dev/reference_apitools.html | 12 +- dev/reference_experimental.html | 10 +- dev/reference_ragtools.html | 157 +++++++++-------- 54 files changed, 348 insertions(+), 339 deletions(-) rename dev/assets/{app.Dz5QUG86.js => app.BUZzOM_X.js} (98%) delete mode 100644 dev/assets/chunks/@localSearchIndexroot.Bd8hFZYh.js create mode 100644 dev/assets/chunks/@localSearchIndexroot.DTIZRJv3.js rename dev/assets/chunks/{VPLocalSearchBox.CsPc4aX4.js => VPLocalSearchBox.BcFcHvYk.js} (99%) rename dev/assets/chunks/{theme.BNLX_dBw.js => theme.KZDCP6Hy.js} (99%) rename dev/assets/{extra_tools_agent_tools_intro.md.yHywMkDe.js => extra_tools_agent_tools_intro.md.DJvZgul4.js} (98%) rename dev/assets/{extra_tools_agent_tools_intro.md.yHywMkDe.lean.js => extra_tools_agent_tools_intro.md.DJvZgul4.lean.js} (100%) rename dev/assets/{extra_tools_api_tools_intro.md.B2zj3VUg.js => extra_tools_api_tools_intro.md.VN20Hprx.js} (98%) rename dev/assets/{extra_tools_api_tools_intro.md.B2zj3VUg.lean.js => extra_tools_api_tools_intro.md.VN20Hprx.lean.js} (100%) rename dev/assets/{extra_tools_rag_tools_intro.md.wFqOQLck.js => extra_tools_rag_tools_intro.md.4lbzXTTR.js} (99%) rename dev/assets/{extra_tools_rag_tools_intro.md.wFqOQLck.lean.js => extra_tools_rag_tools_intro.md.4lbzXTTR.lean.js} (100%) rename dev/assets/{extra_tools_text_utilities_intro.md.BaC1zHk8.js => extra_tools_text_utilities_intro.md.CXWb_lmV.js} (98%) rename dev/assets/{extra_tools_text_utilities_intro.md.BaC1zHk8.lean.js => extra_tools_text_utilities_intro.md.CXWb_lmV.lean.js} (100%) rename dev/assets/{reference.md.CAg04DWR.js => reference.md.Ud_SMp1n.js} (87%) rename dev/assets/{reference.md.CAg04DWR.lean.js => reference.md.Ud_SMp1n.lean.js} (97%) rename dev/assets/{reference_agenttools.md.D3tITjg2.js => reference_agenttools.md.Mh6J_xkG.js} (97%) rename dev/assets/{reference_agenttools.md.D3tITjg2.lean.js => reference_agenttools.md.Mh6J_xkG.lean.js} (100%) rename dev/assets/{reference_apitools.md.DFChcjHy.js => reference_apitools.md.D-H_XvV3.js} (97%) rename dev/assets/{reference_apitools.md.DFChcjHy.lean.js => reference_apitools.md.D-H_XvV3.lean.js} (100%) rename dev/assets/{reference_experimental.md.DKoVf3wG.js => reference_experimental.md.DC6rrNQd.js} (97%) rename dev/assets/{reference_experimental.md.DKoVf3wG.lean.js => reference_experimental.md.DC6rrNQd.lean.js} (100%) create mode 100644 dev/assets/reference_ragtools.md.B2JuNvyi.js rename dev/assets/{reference_ragtools.md.xOyy1pKG.lean.js => reference_ragtools.md.B2JuNvyi.lean.js} (88%) delete mode 100644 dev/assets/reference_ragtools.md.xOyy1pKG.js diff --git a/dev/404.html b/dev/404.html index bab48bb9a..78428d269 100644 --- a/dev/404.html +++ b/dev/404.html @@ -8,14 +8,14 @@ - +
- + \ No newline at end of file diff --git a/dev/assets/app.Dz5QUG86.js b/dev/assets/app.BUZzOM_X.js similarity index 98% rename from dev/assets/app.Dz5QUG86.js rename to dev/assets/app.BUZzOM_X.js index ea587dd46..6984fc032 100644 --- a/dev/assets/app.Dz5QUG86.js +++ b/dev/assets/app.BUZzOM_X.js @@ -1,5 +1,5 @@ import { j as inBrowser, a8 as useUpdateHead, a9 as RouterSymbol, aa as initData, ab as dataSymbol, ac as Content, ad as ClientOnly, ae as siteDataRef, af as createSSRApp, ag as createRouter, ah as pathToFile, Y as __vitePreload, d as defineComponent, u as useData, l as onMounted, z as watchEffect, ai as usePrefetch, aj as useCopyCode, ak as useCodeGroups, a6 as h } from "./chunks/framework.C9IUtwDK.js"; -import { R as RawTheme } from "./chunks/theme.BNLX_dBw.js"; +import { R as RawTheme } from "./chunks/theme.KZDCP6Hy.js"; function resolveThemeExtends(theme) { if (theme.extends) { const base = resolveThemeExtends(theme.extends); diff --git a/dev/assets/chunks/@localSearchIndexroot.Bd8hFZYh.js b/dev/assets/chunks/@localSearchIndexroot.Bd8hFZYh.js deleted file mode 100644 index 327fc2c5b..000000000 --- a/dev/assets/chunks/@localSearchIndexroot.Bd8hFZYh.js +++ /dev/null @@ -1,4 +0,0 @@ -const _localSearchIndexroot = '{"documentCount":182,"nextId":182,"documentIds":{"0":"/PromptingTools.jl/dev/coverage_of_model_providers#Coverage-of-Model-Providers","1":"/PromptingTools.jl/dev/examples/building_RAG#Building-a-Simple-Retrieval-Augmented-Generation-(RAG)-System-with-RAGTools","2":"/PromptingTools.jl/dev/examples/building_RAG#RAG-in-Two-Lines","3":"/PromptingTools.jl/dev/examples/building_RAG#Evaluations","4":"/PromptingTools.jl/dev/examples/building_RAG#Generate-Q-and-A-pairs","5":"/PromptingTools.jl/dev/examples/building_RAG#Explore-one-Q-and-A-pair","6":"/PromptingTools.jl/dev/examples/building_RAG#Evaluate-this-Q-and-A-pair","7":"/PromptingTools.jl/dev/examples/building_RAG#Evaluate-the-Whole-Set","8":"/PromptingTools.jl/dev/examples/building_RAG#What-would-we-do-next?","9":"/PromptingTools.jl/dev/examples/readme_examples#Various-Examples","10":"/PromptingTools.jl/dev/examples/readme_examples#ai*-Functions-Overview","11":"/PromptingTools.jl/dev/examples/readme_examples#Seamless-Integration-Into-Your-Workflow","12":"/PromptingTools.jl/dev/examples/readme_examples#Advanced-Prompts-/-Conversations","13":"/PromptingTools.jl/dev/examples/readme_examples#Templated-Prompts","14":"/PromptingTools.jl/dev/examples/readme_examples#Asynchronous-Execution","15":"/PromptingTools.jl/dev/examples/readme_examples#Model-Aliases","16":"/PromptingTools.jl/dev/examples/readme_examples#Embeddings","17":"/PromptingTools.jl/dev/examples/readme_examples#Classification","18":"/PromptingTools.jl/dev/examples/readme_examples#Routing-to-Defined-Categories","19":"/PromptingTools.jl/dev/examples/readme_examples#Data-Extraction","20":"/PromptingTools.jl/dev/examples/readme_examples#OCR-and-Image-Comprehension","21":"/PromptingTools.jl/dev/examples/readme_examples#Experimental-Agent-Workflows-/-Output-Validation-with-airetry!","22":"/PromptingTools.jl/dev/examples/readme_examples#Using-Ollama-models","23":"/PromptingTools.jl/dev/examples/readme_examples#Using-MistralAI-API-and-other-OpenAI-compatible-APIs","24":"/PromptingTools.jl/dev/examples/working_with_aitemplates#Using-AITemplates","25":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Custom-APIs","26":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-MistralAI","27":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-other-OpenAI-compatible-APIs","28":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-llama.cpp-server","29":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Databricks-Foundation-Models","30":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Together.ai","31":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Fireworks.ai","32":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Working-with-Google-AI-Studio","33":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Text-Generation-with-aigenerate","34":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Simple-message","35":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Advanced-Prompts","36":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Gotchas","37":"/PromptingTools.jl/dev/examples/working_with_ollama#Local-models-with-Ollama.ai","38":"/PromptingTools.jl/dev/examples/working_with_ollama#Text-Generation-with-aigenerate","39":"/PromptingTools.jl/dev/examples/working_with_ollama#Simple-message","40":"/PromptingTools.jl/dev/examples/working_with_ollama#Standard-string-interpolation","41":"/PromptingTools.jl/dev/examples/working_with_ollama#Advanced-Prompts","42":"/PromptingTools.jl/dev/examples/working_with_ollama#Schema-Changes-/-Custom-models","43":"/PromptingTools.jl/dev/examples/working_with_ollama#Providing-Images-with-aiscan","44":"/PromptingTools.jl/dev/examples/working_with_ollama#Embeddings-with-aiembed","45":"/PromptingTools.jl/dev/examples/working_with_ollama#Simple-embedding-for-one-document","46":"/PromptingTools.jl/dev/examples/working_with_ollama#Multiple-documents-embedding","47":"/PromptingTools.jl/dev/examples/working_with_ollama#Using-postprocessing-function","48":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Agent-Tools-Introduction","49":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Highlights","50":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Examples","51":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Automatic-Fixing-of-AI-Calls","52":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#References","53":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#APITools-Introduction","54":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#Highlights","55":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#References","56":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Tools-Introduction","57":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Highlights","58":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Examples","59":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Interface","60":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#System-Overview","61":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Diagram","62":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Passing-Keyword-Arguments","63":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Deepdive","64":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#References","65":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#Text-Utilities","66":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#Highlights","67":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#References","68":"/PromptingTools.jl/dev/frequently_asked_questions#Frequently-Asked-Questions","69":"/PromptingTools.jl/dev/frequently_asked_questions#Why-OpenAI","70":"/PromptingTools.jl/dev/frequently_asked_questions#What-if-I-cannot-access-OpenAI?","71":"/PromptingTools.jl/dev/frequently_asked_questions#Data-Privacy-and-OpenAI","72":"/PromptingTools.jl/dev/frequently_asked_questions#Creating-OpenAI-API-Key","73":"/PromptingTools.jl/dev/frequently_asked_questions#getting-an-error-argumenterror-api-key-cannot-be-empty-despite-having-set-openai-api-key-getting-an-error-argumenterror-apikey-cannot-be-empty-despite-having-set-openaiapi-key","74":"/PromptingTools.jl/dev/frequently_asked_questions#Getting-an-error-"Rate-limit-exceeded"-from-OpenAI?","75":"/PromptingTools.jl/dev/frequently_asked_questions#Getting-the-error-"429-Too-Many-Requests"?","76":"/PromptingTools.jl/dev/frequently_asked_questions#Setting-OpenAI-Spending-Limits","77":"/PromptingTools.jl/dev/frequently_asked_questions#How-much-does-it-cost?-Is-it-worth-paying-for?","78":"/PromptingTools.jl/dev/frequently_asked_questions#Configuring-the-Environment-Variable-for-API-Key","79":"/PromptingTools.jl/dev/frequently_asked_questions#Setting-the-API-Key-via-Preferences.jl","80":"/PromptingTools.jl/dev/frequently_asked_questions#Understanding-the-API-Keyword-Arguments-in-aigenerate-(api_kwargs)","81":"/PromptingTools.jl/dev/frequently_asked_questions#Instant-Access-from-Anywhere","82":"/PromptingTools.jl/dev/frequently_asked_questions#Open-Source-Alternatives","83":"/PromptingTools.jl/dev/frequently_asked_questions#Setup-Guide-for-Ollama","84":"/PromptingTools.jl/dev/frequently_asked_questions#Changing-the-Default-Model-or-Schema","85":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-have-Multi-turn-Conversations?","86":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-have-typed-responses?","87":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-quickly-create-a-prompt-template?","88":"/PromptingTools.jl/dev/frequently_asked_questions#Do-we-have-a-RecursiveCharacterTextSplitter-like-Langchain?","89":"/PromptingTools.jl/dev/frequently_asked_questions#How-would-I-fine-tune-a-model?","90":"/PromptingTools.jl/dev/frequently_asked_questions#Can-I-see-how-my-prompt-is-rendered-/-what-is-sent-to-the-API?","91":"/PromptingTools.jl/dev/frequently_asked_questions#Automatic-Logging-/-Tracing","92":"/PromptingTools.jl/dev/getting_started#Getting-Started","93":"/PromptingTools.jl/dev/getting_started#Prerequisites","94":"/PromptingTools.jl/dev/getting_started#Installation","95":"/PromptingTools.jl/dev/getting_started#Quick-Start-with-@ai_str","96":"/PromptingTools.jl/dev/getting_started#Using-aigenerate-with-placeholders","97":"/PromptingTools.jl/dev/how_it_works#How-It-Works","98":"/PromptingTools.jl/dev/how_it_works#Key-Concepts","99":"/PromptingTools.jl/dev/how_it_works#API/Model-Providers","100":"/PromptingTools.jl/dev/how_it_works#Schemas","101":"/PromptingTools.jl/dev/how_it_works#Prompts","102":"/PromptingTools.jl/dev/how_it_works#Messages","103":"/PromptingTools.jl/dev/how_it_works#Prompt-Templates","104":"/PromptingTools.jl/dev/how_it_works#ai*-Functions-Overview","105":"/PromptingTools.jl/dev/how_it_works#Walkthrough-Example-for-aigenerate","106":"/PromptingTools.jl/dev/how_it_works#Walkthrough-Example-for-aiextract","107":"/PromptingTools.jl/dev/prompts/RAG#Basic-Rag-Templates","108":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGAnswerFromContext","109":"/PromptingTools.jl/dev/prompts/RAG#Ranking-Templates","110":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGRankGPT","111":"/PromptingTools.jl/dev/prompts/RAG#Metadata-Templates","112":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGExtractMetadataLong","113":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGExtractMetadataShort","114":"/PromptingTools.jl/dev/prompts/RAG#Refinement-Templates","115":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGAnswerRefiner","116":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGWebSearchRefiner","117":"/PromptingTools.jl/dev/prompts/RAG#Evaluation-Templates","118":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGCreateQAFromContext","119":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJudgeAnswerFromContext","120":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJudgeAnswerFromContextShort","121":"/PromptingTools.jl/dev/prompts/RAG#Query-Transformations-Templates","122":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJuliaQueryHyDE","123":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryHyDE","124":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryKeywordExpander","125":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryOptimizer","126":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQuerySimplifier","127":"/PromptingTools.jl/dev/prompts/agents#Code-Fixing-Templates","128":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerRCI","129":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerShort","130":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerTiny","131":"/PromptingTools.jl/dev/prompts/agents#Feedback-Templates","132":"/PromptingTools.jl/dev/prompts/agents#Template:-FeedbackFromEvaluator","133":"/PromptingTools.jl/dev/prompts/classification#Classification-Templates","134":"/PromptingTools.jl/dev/prompts/classification#Template:-InputClassifier","135":"/PromptingTools.jl/dev/prompts/classification#Template:-JudgeIsItTrue","136":"/PromptingTools.jl/dev/prompts/classification#Template:-QuestionRouter","137":"/PromptingTools.jl/dev/prompts/critic#Critic-Templates","138":"/PromptingTools.jl/dev/prompts/critic#Template:-ChiefEditorTranscriptCritic","139":"/PromptingTools.jl/dev/prompts/critic#Template:-GenericTranscriptCritic","140":"/PromptingTools.jl/dev/prompts/critic#Template:-JuliaExpertTranscriptCritic","141":"/PromptingTools.jl/dev/prompts/extraction#Xml-Formatted-Templates","142":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractDataCoTXML","143":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractDataXML","144":"/PromptingTools.jl/dev/prompts/extraction#Extraction-Templates","145":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractData","146":"/PromptingTools.jl/dev/prompts/general#General-Templates","147":"/PromptingTools.jl/dev/prompts/general#Template:-BlankSystemUser","148":"/PromptingTools.jl/dev/prompts/general#Template:-PromptEngineerForTask","149":"/PromptingTools.jl/dev/prompts/persona-task#Persona-Task-Templates","150":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystChaptersInTranscript","151":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystDecisionsInTranscript","152":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystThemesInResponses","153":"/PromptingTools.jl/dev/prompts/persona-task#theme-1-theme-description","154":"/PromptingTools.jl/dev/prompts/persona-task#theme-2-theme-description","155":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AssistantAsk","156":"/PromptingTools.jl/dev/prompts/persona-task#Template:-ConversationLabeler","157":"/PromptingTools.jl/dev/prompts/persona-task#Template:-DetailOrientedTask","158":"/PromptingTools.jl/dev/prompts/persona-task#Template:-DrafterEmailBrief","159":"/PromptingTools.jl/dev/prompts/persona-task#Template:-GenericTopicExpertAsk","160":"/PromptingTools.jl/dev/prompts/persona-task#Template:-GenericWriter","161":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JavaScriptExpertAsk","162":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaBlogWriter","163":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertAsk","164":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertCoTTask","165":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertTestCode","166":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaRecapCoTTask","167":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaRecapTask","168":"/PromptingTools.jl/dev/prompts/persona-task#Template:-LinuxBashExpertAsk","169":"/PromptingTools.jl/dev/prompts/persona-task#Template:-StorytellerExplainSHAP","170":"/PromptingTools.jl/dev/prompts/persona-task#Xml-Formatted-Templates","171":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertAskXML","172":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertCoTTaskXML","173":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertTestCodeXML","174":"/PromptingTools.jl/dev/prompts/visual#Visual-Templates","175":"/PromptingTools.jl/dev/prompts/visual#Template:-BlogTitleImageGenerator","176":"/PromptingTools.jl/dev/prompts/visual#Template:-OCRTask","177":"/PromptingTools.jl/dev/reference_agenttools#Reference-for-AgentTools","178":"/PromptingTools.jl/dev/reference#Reference","179":"/PromptingTools.jl/dev/reference_apitools#Reference-for-APITools","180":"/PromptingTools.jl/dev/reference_experimental#Reference-for-Experimental-Module","181":"/PromptingTools.jl/dev/reference_ragtools#Reference-for-RAGTools"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[4,1,158],"1":[10,1,78],"2":[4,10,197],"3":[1,1,40],"4":[5,1,74],"5":[6,1,68],"6":[6,1,180],"7":[4,1,367],"8":[6,1,111],"9":[2,1,1],"10":[3,2,306],"11":[5,2,128],"12":[3,2,152],"13":[2,2,161],"14":[2,2,40],"15":[2,2,97],"16":[1,2,65],"17":[1,2,97],"18":[4,3,81],"19":[2,2,158],"20":[4,2,103],"21":[8,2,274],"22":[3,2,108],"23":[8,2,195],"24":[2,1,322],"25":[2,1,27],"26":[2,2,145],"27":[5,2,87],"28":[4,2,118],"29":[4,2,85],"30":[3,2,109],"31":[3,2,162],"32":[5,1,83],"33":[4,5,14],"34":[2,8,55],"35":[2,8,90],"36":[1,8,59],"37":[5,1,147],"38":[4,5,1],"39":[2,8,51],"40":[3,8,35],"41":[2,8,122],"42":[4,8,134],"43":[4,5,40],"44":[3,5,1],"45":[5,7,42],"46":[3,7,53],"47":[3,7,61],"48":[3,1,37],"49":[1,3,185],"50":[1,3,1],"51":[5,4,227],"52":[1,3,919],"53":[2,1,23],"54":[1,2,41],"55":[1,2,87],"56":[3,1,99],"57":[1,3,91],"58":[1,3,375],"59":[2,3,1],"60":[2,4,195],"61":[2,4,79],"62":[3,5,105],"63":[1,4,165],"64":[1,3,779],"65":[2,1,28],"66":[1,2,126],"67":[1,2,513],"68":[3,1,1],"69":[2,3,54],"70":[7,5,36],"71":[4,3,65],"72":[4,3,54],"73":[19,3,120],"74":[10,3,151],"75":[9,3,87],"76":[4,3,57],"77":[10,3,99],"78":[7,3,97],"79":[7,3,41],"80":[10,3,8],"81":[4,3,47],"82":[3,3,31],"83":[4,3,108],"84":[6,3,83],"85":[7,3,120],"86":[6,3,256],"87":[8,3,193],"88":[8,3,70],"89":[8,3,87],"90":[14,3,155],"91":[3,3,141],"92":[2,1,1],"93":[1,2,112],"94":[1,2,37],"95":[5,2,112],"96":[4,2,101],"97":[3,1,49],"98":[2,3,91],"99":[3,5,56],"100":[1,5,77],"101":[1,5,61],"102":[1,5,77],"103":[2,5,139],"104":[3,5,308],"105":[4,3,203],"106":[4,3,451],"107":[3,1,1],"108":[2,4,61],"109":[2,1,1],"110":[2,3,90],"111":[2,1,1],"112":[2,3,160],"113":[2,3,66],"114":[2,1,1],"115":[2,3,111],"116":[2,3,119],"117":[2,1,1],"118":[2,3,140],"119":[2,3,116],"120":[2,3,63],"121":[3,1,1],"122":[2,4,85],"123":[2,4,83],"124":[2,4,122],"125":[2,4,85],"126":[2,4,65],"127":[3,1,1],"128":[2,4,236],"129":[2,4,126],"130":[2,4,60],"131":[2,1,1],"132":[2,3,23],"133":[2,1,1],"134":[2,3,73],"135":[2,3,41],"136":[2,3,101],"137":[2,1,1],"138":[2,3,188],"139":[2,3,136],"140":[2,3,178],"141":[3,1,1],"142":[2,4,101],"143":[2,4,83],"144":[2,1,1],"145":[2,3,74],"146":[2,1,1],"147":[2,3,35],"148":[2,3,71],"149":[3,1,1],"150":[2,4,198],"151":[2,4,207],"152":[2,4,124],"153":[4,1,5],"154":[4,1,36],"155":[2,4,47],"156":[2,4,108],"157":[2,4,46],"158":[2,4,160],"159":[2,4,65],"160":[2,4,65],"161":[2,4,63],"162":[2,4,118],"163":[2,4,51],"164":[2,4,85],"165":[2,4,171],"166":[2,4,168],"167":[2,4,174],"168":[2,4,66],"169":[2,4,175],"170":[3,4,1],"171":[2,6,60],"172":[2,6,96],"173":[2,6,181],"174":[2,1,1],"175":[2,3,76],"176":[2,3,51],"177":[3,1,1182],"178":[1,1,2576],"179":[3,1,101],"180":[4,1,68],"181":[3,1,1792]},"averageFieldLength":[3.1648351648351647,3.0549450549450547,135.25824175824178],"storedFields":{"0":{"title":"Coverage of Model Providers","titles":[]},"1":{"title":"Building a Simple Retrieval-Augmented Generation (RAG) System with RAGTools","titles":[]},"2":{"title":"RAG in Two Lines","titles":["Building a Simple Retrieval-Augmented Generation (RAG) System with RAGTools"]},"3":{"title":"Evaluations","titles":[]},"4":{"title":"Generate Q&A pairs","titles":["Evaluations"]},"5":{"title":"Explore one Q&A pair","titles":["Evaluations"]},"6":{"title":"Evaluate this Q&A pair","titles":["Evaluations"]},"7":{"title":"Evaluate the Whole Set","titles":["Evaluations"]},"8":{"title":"What would we do next?","titles":[]},"9":{"title":"Various Examples","titles":[]},"10":{"title":"ai* Functions Overview","titles":["Various Examples"]},"11":{"title":"Seamless Integration Into Your Workflow","titles":["Various Examples"]},"12":{"title":"Advanced Prompts / Conversations","titles":["Various Examples"]},"13":{"title":"Templated Prompts","titles":["Various Examples"]},"14":{"title":"Asynchronous Execution","titles":["Various Examples"]},"15":{"title":"Model Aliases","titles":["Various Examples"]},"16":{"title":"Embeddings","titles":["Various Examples"]},"17":{"title":"Classification","titles":["Various Examples"]},"18":{"title":"Routing to Defined Categories","titles":["Various Examples","Classification"]},"19":{"title":"Data Extraction","titles":["Various Examples"]},"20":{"title":"OCR and Image Comprehension","titles":["Various Examples"]},"21":{"title":"Experimental Agent Workflows / Output Validation with airetry!","titles":["Various Examples"]},"22":{"title":"Using Ollama models","titles":["Various Examples"]},"23":{"title":"Using MistralAI API and other OpenAI-compatible APIs","titles":["Various Examples"]},"24":{"title":"Using AITemplates","titles":[]},"25":{"title":"Custom APIs","titles":[]},"26":{"title":"Using MistralAI","titles":["Custom APIs"]},"27":{"title":"Using other OpenAI-compatible APIs","titles":["Custom APIs"]},"28":{"title":"Using llama.cpp server","titles":["Custom APIs"]},"29":{"title":"Using Databricks Foundation Models","titles":["Custom APIs"]},"30":{"title":"Using Together.ai","titles":["Custom APIs"]},"31":{"title":"Using Fireworks.ai","titles":["Custom APIs"]},"32":{"title":"Working with Google AI Studio","titles":[]},"33":{"title":"Text Generation with aigenerate","titles":["Working with Google AI Studio"]},"34":{"title":"Simple message","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"35":{"title":"Advanced Prompts","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"36":{"title":"Gotchas","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"37":{"title":"Local models with Ollama.ai","titles":[]},"38":{"title":"Text Generation with aigenerate","titles":["Local models with Ollama.ai"]},"39":{"title":"Simple message","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"40":{"title":"Standard string interpolation","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"41":{"title":"Advanced Prompts","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"42":{"title":"Schema Changes / Custom models","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"43":{"title":"Providing Images with aiscan","titles":["Local models with Ollama.ai"]},"44":{"title":"Embeddings with aiembed","titles":["Local models with Ollama.ai"]},"45":{"title":"Simple embedding for one document","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"46":{"title":"Multiple documents embedding","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"47":{"title":"Using postprocessing function","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"48":{"title":"Agent Tools Introduction","titles":[]},"49":{"title":"Highlights","titles":["Agent Tools Introduction"]},"50":{"title":"Examples","titles":["Agent Tools Introduction"]},"51":{"title":"Automatic Fixing of AI Calls","titles":["Agent Tools Introduction","Examples"]},"52":{"title":"References","titles":["Agent Tools Introduction"]},"53":{"title":"APITools Introduction","titles":[]},"54":{"title":"Highlights","titles":["APITools Introduction"]},"55":{"title":"References","titles":["APITools Introduction"]},"56":{"title":"RAG Tools Introduction","titles":[]},"57":{"title":"Highlights","titles":["RAG Tools Introduction"]},"58":{"title":"Examples","titles":["RAG Tools Introduction"]},"59":{"title":"RAG Interface","titles":["RAG Tools Introduction"]},"60":{"title":"System Overview","titles":["RAG Tools Introduction","RAG Interface"]},"61":{"title":"RAG Diagram","titles":["RAG Tools Introduction","RAG Interface"]},"62":{"title":"Passing Keyword Arguments","titles":["RAG Tools Introduction","RAG Interface","RAG Diagram"]},"63":{"title":"Deepdive","titles":["RAG Tools Introduction","RAG Interface"]},"64":{"title":"References","titles":["RAG Tools Introduction"]},"65":{"title":"Text Utilities","titles":[]},"66":{"title":"Highlights","titles":["Text Utilities"]},"67":{"title":"References","titles":["Text Utilities"]},"68":{"title":"Frequently Asked Questions","titles":[]},"69":{"title":"Why OpenAI","titles":["Frequently Asked Questions"]},"70":{"title":"What if I cannot access OpenAI?","titles":["Frequently Asked Questions","Why OpenAI"]},"71":{"title":"Data Privacy and OpenAI","titles":["Frequently Asked Questions"]},"72":{"title":"Creating OpenAI API Key","titles":["Frequently Asked Questions"]},"73":{"title":"Getting an error "ArgumentError: api_key cannot be empty" despite having set OPENAI_API_KEY? {#Getting-an-error-"ArgumentError:-apikey-cannot-be-empty"-despite-having-set-OPENAIAPI_KEY?}","titles":["Frequently Asked Questions"]},"74":{"title":"Getting an error "Rate limit exceeded" from OpenAI?","titles":["Frequently Asked Questions"]},"75":{"title":"Getting the error "429 Too Many Requests"?","titles":["Frequently Asked Questions"]},"76":{"title":"Setting OpenAI Spending Limits","titles":["Frequently Asked Questions"]},"77":{"title":"How much does it cost? Is it worth paying for?","titles":["Frequently Asked Questions"]},"78":{"title":"Configuring the Environment Variable for API Key","titles":["Frequently Asked Questions"]},"79":{"title":"Setting the API Key via Preferences.jl","titles":["Frequently Asked Questions"]},"80":{"title":"Understanding the API Keyword Arguments in aigenerate (api_kwargs)","titles":["Frequently Asked Questions"]},"81":{"title":"Instant Access from Anywhere","titles":["Frequently Asked Questions"]},"82":{"title":"Open Source Alternatives","titles":["Frequently Asked Questions"]},"83":{"title":"Setup Guide for Ollama","titles":["Frequently Asked Questions"]},"84":{"title":"Changing the Default Model or Schema","titles":["Frequently Asked Questions"]},"85":{"title":"How to have Multi-turn Conversations?","titles":["Frequently Asked Questions"]},"86":{"title":"How to have typed responses?","titles":["Frequently Asked Questions"]},"87":{"title":"How to quickly create a prompt template?","titles":["Frequently Asked Questions"]},"88":{"title":"Do we have a RecursiveCharacterTextSplitter like Langchain?","titles":["Frequently Asked Questions"]},"89":{"title":"How would I fine-tune a model?","titles":["Frequently Asked Questions"]},"90":{"title":"Can I see how my prompt is rendered / what is sent to the API?","titles":["Frequently Asked Questions"]},"91":{"title":"Automatic Logging / Tracing","titles":["Frequently Asked Questions"]},"92":{"title":"Getting Started","titles":[]},"93":{"title":"Prerequisites","titles":["Getting Started"]},"94":{"title":"Installation","titles":["Getting Started"]},"95":{"title":"Quick Start with @ai_str","titles":["Getting Started"]},"96":{"title":"Using aigenerate with placeholders","titles":["Getting Started"]},"97":{"title":"How It Works","titles":[]},"98":{"title":"Key Concepts","titles":["How It Works"]},"99":{"title":"API/Model Providers","titles":["How It Works","Key Concepts"]},"100":{"title":"Schemas","titles":["How It Works","Key Concepts"]},"101":{"title":"Prompts","titles":["How It Works","Key Concepts"]},"102":{"title":"Messages","titles":["How It Works","Key Concepts"]},"103":{"title":"Prompt Templates","titles":["How It Works","Key Concepts"]},"104":{"title":"ai* Functions Overview","titles":["How It Works","Key Concepts"]},"105":{"title":"Walkthrough Example for aigenerate","titles":["How It Works"]},"106":{"title":"Walkthrough Example for aiextract","titles":["How It Works"]},"107":{"title":"Basic-Rag Templates","titles":[null]},"108":{"title":"Template: RAGAnswerFromContext","titles":[null,"Basic-Rag Templates"]},"109":{"title":"Ranking Templates","titles":[null]},"110":{"title":"Template: RAGRankGPT","titles":[null,"Ranking Templates"]},"111":{"title":"Metadata Templates","titles":[null]},"112":{"title":"Template: RAGExtractMetadataLong","titles":[null,"Metadata Templates"]},"113":{"title":"Template: RAGExtractMetadataShort","titles":[null,"Metadata Templates"]},"114":{"title":"Refinement Templates","titles":[null]},"115":{"title":"Template: RAGAnswerRefiner","titles":[null,"Refinement Templates"]},"116":{"title":"Template: RAGWebSearchRefiner","titles":[null,"Refinement Templates"]},"117":{"title":"Evaluation Templates","titles":[null]},"118":{"title":"Template: RAGCreateQAFromContext","titles":[null,"Evaluation Templates"]},"119":{"title":"Template: RAGJudgeAnswerFromContext","titles":[null,"Evaluation Templates"]},"120":{"title":"Template: RAGJudgeAnswerFromContextShort","titles":[null,"Evaluation Templates"]},"121":{"title":"Query-Transformations Templates","titles":[null]},"122":{"title":"Template: RAGJuliaQueryHyDE","titles":[null,"Query-Transformations Templates"]},"123":{"title":"Template: RAGQueryHyDE","titles":[null,"Query-Transformations Templates"]},"124":{"title":"Template: RAGQueryKeywordExpander","titles":[null,"Query-Transformations Templates"]},"125":{"title":"Template: RAGQueryOptimizer","titles":[null,"Query-Transformations Templates"]},"126":{"title":"Template: RAGQuerySimplifier","titles":[null,"Query-Transformations Templates"]},"127":{"title":"Code-Fixing Templates","titles":[null]},"128":{"title":"Template: CodeFixerRCI","titles":[null,"Code-Fixing Templates"]},"129":{"title":"Template: CodeFixerShort","titles":[null,"Code-Fixing Templates"]},"130":{"title":"Template: CodeFixerTiny","titles":[null,"Code-Fixing Templates"]},"131":{"title":"Feedback Templates","titles":[null]},"132":{"title":"Template: FeedbackFromEvaluator","titles":[null,"Feedback Templates"]},"133":{"title":"Classification Templates","titles":[null]},"134":{"title":"Template: InputClassifier","titles":[null,"Classification Templates"]},"135":{"title":"Template: JudgeIsItTrue","titles":[null,"Classification Templates"]},"136":{"title":"Template: QuestionRouter","titles":[null,"Classification Templates"]},"137":{"title":"Critic Templates","titles":[null]},"138":{"title":"Template: ChiefEditorTranscriptCritic","titles":[null,"Critic Templates"]},"139":{"title":"Template: GenericTranscriptCritic","titles":[null,"Critic Templates"]},"140":{"title":"Template: JuliaExpertTranscriptCritic","titles":[null,"Critic Templates"]},"141":{"title":"Xml-Formatted Templates","titles":[null]},"142":{"title":"Template: ExtractDataCoTXML","titles":[null,"Xml-Formatted Templates"]},"143":{"title":"Template: ExtractDataXML","titles":[null,"Xml-Formatted Templates"]},"144":{"title":"Extraction Templates","titles":[null]},"145":{"title":"Template: ExtractData","titles":[null,"Extraction Templates"]},"146":{"title":"General Templates","titles":[null]},"147":{"title":"Template: BlankSystemUser","titles":[null,"General Templates"]},"148":{"title":"Template: PromptEngineerForTask","titles":[null,"General Templates"]},"149":{"title":"Persona-Task Templates","titles":[null]},"150":{"title":"Template: AnalystChaptersInTranscript","titles":[null,"Persona-Task Templates"]},"151":{"title":"Template: AnalystDecisionsInTranscript","titles":[null,"Persona-Task Templates"]},"152":{"title":"Template: AnalystThemesInResponses","titles":[null,"Persona-Task Templates"]},"153":{"title":"Theme 1: [Theme Description]","titles":[]},"154":{"title":"Theme 2: [Theme Description]","titles":[]},"155":{"title":"Template: AssistantAsk","titles":["Theme 2: [Theme Description]",null]},"156":{"title":"Template: ConversationLabeler","titles":["Theme 2: [Theme Description]",null]},"157":{"title":"Template: DetailOrientedTask","titles":["Theme 2: [Theme Description]",null]},"158":{"title":"Template: DrafterEmailBrief","titles":["Theme 2: [Theme Description]",null]},"159":{"title":"Template: GenericTopicExpertAsk","titles":["Theme 2: [Theme Description]",null]},"160":{"title":"Template: GenericWriter","titles":["Theme 2: [Theme Description]",null]},"161":{"title":"Template: JavaScriptExpertAsk","titles":["Theme 2: [Theme Description]",null]},"162":{"title":"Template: JuliaBlogWriter","titles":["Theme 2: [Theme Description]",null]},"163":{"title":"Template: JuliaExpertAsk","titles":["Theme 2: [Theme Description]",null]},"164":{"title":"Template: JuliaExpertCoTTask","titles":["Theme 2: [Theme Description]",null]},"165":{"title":"Template: JuliaExpertTestCode","titles":["Theme 2: [Theme Description]",null]},"166":{"title":"Template: JuliaRecapCoTTask","titles":["Theme 2: [Theme Description]",null]},"167":{"title":"Template: JuliaRecapTask","titles":["Theme 2: [Theme Description]",null]},"168":{"title":"Template: LinuxBashExpertAsk","titles":["Theme 2: [Theme Description]",null]},"169":{"title":"Template: StorytellerExplainSHAP","titles":["Theme 2: [Theme Description]",null]},"170":{"title":"Xml-Formatted Templates","titles":["Theme 2: [Theme Description]"]},"171":{"title":"Template: JuliaExpertAskXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"172":{"title":"Template: JuliaExpertCoTTaskXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"173":{"title":"Template: JuliaExpertTestCodeXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"174":{"title":"Visual Templates","titles":[null]},"175":{"title":"Template: BlogTitleImageGenerator","titles":[null,"Visual Templates"]},"176":{"title":"Template: OCRTask","titles":[null,"Visual Templates"]},"177":{"title":"Reference for AgentTools","titles":[]},"178":{"title":"Reference","titles":[]},"179":{"title":"Reference for APITools","titles":[]},"180":{"title":"Reference for Experimental Module","titles":[]},"181":{"title":"Reference for RAGTools","titles":[]}},"dirtCount":0,"index":[["θ",{"2":{"177":1}}],["β",{"2":{"177":1}}],["α",{"2":{"177":2}}],["→",{"2":{"106":1}}],["zoom",{"2":{"106":1}}],["zshrc",{"2":{"78":1}}],["zero",{"2":{"67":1,"165":1,"173":1,"178":4}}],["~300",{"2":{"178":3}}],["~0",{"2":{"77":1}}],["~",{"2":{"73":1,"78":1,"81":1}}],["~word",{"2":{"64":1,"181":1}}],["~words",{"2":{"64":1,"181":1}}],["^",{"2":{"67":2,"178":2}}],["÷",{"2":{"52":1,"64":1,"177":1,"181":1}}],["├─",{"2":{"52":9,"177":11}}],["👋",{"2":{"178":1}}],["😊",{"2":{"42":1}}],["😃",{"2":{"2":1,"52":1,"177":1}}],["905",{"2":{"178":1}}],["909",{"2":{"156":1}}],["93",{"2":{"177":1}}],["911",{"2":{"106":2}}],["911t",{"2":{"86":2}}],["94",{"2":{"52":1,"177":1}}],["9999999999999982",{"2":{"47":1}}],["99",{"2":{"28":1,"177":1}}],["9",{"2":{"22":1,"23":1,"26":1,"31":1,"178":2,"181":4}}],["9examples",{"2":{"7":1}}],["|im",{"2":{"178":4}}],["|",{"2":{"21":2,"51":2,"52":1,"177":1}}],["|>",{"2":{"13":3,"20":1,"24":1,"51":1,"52":4,"67":1,"86":2,"91":4,"104":1,"177":5,"178":16,"181":1}}],["y`",{"2":{"166":1,"167":1}}],["yarrr",{"2":{"87":2,"178":2}}],["yay",{"2":{"52":1,"177":1}}],["y",{"2":{"52":2,"81":1,"177":4,"178":2,"181":2}}],["years",{"2":{"156":1}}],["yes",{"2":{"41":1,"88":1,"90":1,"96":1}}],["yedi",{"2":{"35":1,"41":2,"178":5}}],["yet",{"2":{"32":1,"52":3,"105":1,"139":1,"158":1,"177":2,"178":4,"180":1,"181":2}}],["yellow",{"2":{"21":2,"51":3,"52":5,"177":5}}],["yoda",{"2":{"12":2,"35":1,"41":1,"178":5}}],["youtube",{"2":{"150":1,"151":1}}],["young",{"2":{"12":1,"35":1,"41":1,"178":1}}],["yours",{"2":{"178":10}}],["yourself",{"2":{"41":2}}],["your",{"0":{"11":1},"2":{"2":4,"4":1,"8":1,"10":1,"11":3,"12":1,"13":3,"15":1,"22":1,"23":3,"24":9,"26":1,"27":1,"28":1,"29":1,"32":2,"35":2,"37":2,"41":1,"42":1,"52":3,"56":1,"57":1,"60":1,"61":1,"64":5,"66":2,"71":5,"72":1,"73":2,"74":2,"75":4,"76":1,"77":1,"78":6,"79":2,"81":1,"83":2,"84":3,"85":2,"87":2,"89":1,"90":1,"91":2,"93":5,"94":1,"95":2,"98":1,"100":1,"102":1,"103":4,"104":1,"105":4,"106":3,"115":1,"116":1,"119":1,"122":1,"123":1,"125":2,"128":6,"129":1,"134":1,"136":1,"138":1,"139":2,"140":1,"142":1,"150":3,"151":4,"152":1,"155":2,"156":1,"157":1,"158":1,"159":5,"161":5,"163":2,"164":4,"165":3,"168":5,"169":2,"171":2,"172":4,"173":3,"177":3,"178":42,"181":13}}],["you",{"2":{"0":1,"1":2,"2":3,"4":2,"5":1,"7":6,"8":1,"10":9,"11":9,"12":11,"13":7,"14":2,"15":2,"16":2,"17":3,"18":1,"19":6,"20":4,"21":6,"22":5,"23":12,"24":32,"25":1,"26":9,"27":3,"28":5,"29":5,"30":9,"31":9,"32":2,"33":1,"34":4,"35":3,"37":4,"39":6,"40":2,"41":10,"42":9,"43":1,"46":3,"49":1,"51":4,"52":25,"54":1,"55":1,"56":1,"57":2,"58":7,"60":7,"62":4,"64":19,"66":2,"67":5,"69":1,"71":2,"72":1,"73":6,"74":11,"75":5,"76":3,"77":9,"78":5,"79":2,"81":1,"82":2,"83":7,"84":5,"85":4,"86":5,"87":21,"89":2,"90":3,"91":12,"93":5,"94":1,"95":3,"96":3,"98":4,"99":3,"100":1,"101":3,"102":1,"103":8,"104":8,"105":8,"106":19,"108":2,"110":1,"112":2,"113":2,"115":3,"116":3,"118":1,"124":2,"126":1,"128":4,"129":2,"130":2,"134":2,"135":1,"136":3,"138":1,"150":3,"151":1,"152":1,"154":1,"155":2,"157":1,"158":1,"159":1,"160":3,"161":1,"162":4,"163":2,"164":3,"165":3,"167":1,"168":1,"169":1,"171":2,"172":2,"173":3,"177":24,"178":171,"179":1,"181":36}}],["└─",{"2":{"52":9,"177":13}}],["└",{"2":{"11":1}}],["┌",{"2":{"11":1}}],["74",{"2":{"96":1}}],["754",{"2":{"136":1}}],["75",{"2":{"64":1,"181":1}}],["77",{"2":{"52":1,"177":1}}],["786",{"2":{"129":1}}],["78",{"2":{"31":1}}],["787",{"2":{"16":1,"178":1}}],["70b",{"2":{"29":3}}],["7",{"2":{"11":1,"52":7,"58":1,"158":1,"177":8,"178":2,"181":4}}],["7examples",{"2":{"7":1}}],["`top",{"2":{"181":1}}],["`test",{"2":{"64":1,"181":1}}],["`textchunker",{"2":{"64":1,"181":1}}],["`build",{"2":{"181":1}}],["`begin`",{"2":{"166":1,"167":1}}],["`1",{"2":{"178":1}}],["`1+1`",{"2":{"178":5}}],["`2`",{"2":{"178":5}}],["`error`",{"2":{"178":2}}],["`end`",{"2":{"166":1,"167":1}}],["`example`",{"2":{"24":2}}],["`$`",{"2":{"166":1,"167":1}}],["`$a+$a`",{"2":{"40":1,"178":6}}],["`while`",{"2":{"166":1,"167":1}}],["`function`",{"2":{"166":1,"167":1}}],["`function",{"2":{"166":1,"167":1}}],["`for`",{"2":{"166":1,"167":1}}],["`false`",{"2":{"106":1}}],["`fahrenheit`",{"2":{"19":1}}],["`image",{"2":{"178":2}}],["`isx",{"2":{"166":1,"167":1}}],["`if",{"2":{"166":1,"167":1}}],["`index`",{"2":{"64":2,"181":3}}],["`innerjoin`",{"2":{"7":1}}],["`x",{"2":{"166":2,"167":2}}],["`other",{"2":{"151":1}}],["`out",{"2":{"52":1,"177":1}}],["`dict",{"2":{"166":1,"167":1}}],["`distributed`",{"2":{"58":1}}],["`data`",{"2":{"145":1}}],["`register",{"2":{"178":1}}],["`return",{"2":{"104":1}}],["`run",{"2":{"177":1}}],["`ragresult`",{"2":{"64":1,"181":1}}],["`you",{"2":{"102":1}}],["`score",{"2":{"181":1}}],["`schema",{"2":{"106":1}}],["`schema`",{"2":{"27":1,"28":1}}],["`success",{"2":{"52":1,"177":1}}],["`model",{"2":{"178":1}}],["`model`",{"2":{"28":1}}],["`maybeextract",{"2":{"178":1}}],["`map`",{"2":{"74":1}}],["`message`",{"2":{"178":2}}],["`msg",{"2":{"37":1}}],["`processor`",{"2":{"181":1}}],["`pt",{"2":{"27":1,"28":1}}],["`pkg`",{"2":{"24":1}}],["`usermessage`",{"2":{"52":1,"177":1}}],["`using`",{"2":{"24":1}}],["`unit`",{"2":{"19":1}}],["`local",{"2":{"178":1}}],["`location`",{"2":{"19":1}}],["`last",{"2":{"21":2,"51":2,"52":2,"177":2}}],["`number`",{"2":{"166":1,"167":1}}],["`nothing`",{"2":{"106":1}}],["`n",{"2":{"21":1,"51":1,"52":1,"177":1}}],["`condition`",{"2":{"106":1}}],["`convert`",{"2":{"106":1}}],["`conversation`",{"2":{"52":1,"104":1,"177":1}}],["`config",{"2":{"52":1,"177":1}}],["`config`",{"2":{"21":1,"51":1,"52":1,"177":1}}],["`celsius`",{"2":{"19":1}}],["`abstractstring`",{"2":{"166":1,"167":1}}],["`a",{"2":{"166":1,"167":1}}],["`answerer",{"2":{"62":1}}],["`answerer`",{"2":{"62":1}}],["`answer",{"2":{"62":1}}],["`add`",{"2":{"24":1,"165":1,"173":1}}],["`aigenerate",{"2":{"52":1,"177":1}}],["`aicall`",{"2":{"21":1,"51":1,"52":2,"177":2}}],["`airag`",{"2":{"6":1,"64":1,"181":1}}],["`api",{"2":{"21":1,"37":1,"51":1,"52":1,"177":1}}],["`ask`",{"2":{"13":1,"24":2,"178":2}}],["``",{"2":{"13":1,"178":1}}],["```plaintext",{"2":{"129":1,"130":1}}],["````",{"2":{"52":1,"177":1}}],["```julia",{"2":{"24":2,"67":1,"128":2,"129":1,"165":2,"173":2,"177":1,"178":3,"181":1}}],["```sql",{"2":{"20":1,"178":2}}],["```",{"2":{"11":2,"24":2,"52":1,"119":1,"120":1,"128":1,"129":1,"130":1,"150":2,"151":2,"165":2,"173":2,"177":2,"178":1,"181":1}}],["`",{"2":{"11":2,"21":1,"24":2,"27":1,"28":1,"37":2,"51":1,"52":2,"58":1,"62":1,"64":1,"106":2,"128":2,"162":2,"165":6,"166":8,"167":8,"173":6,"177":3,"178":4,"181":1}}],["│",{"2":{"7":12,"11":5,"52":14,"177":16}}],["22",{"2":{"177":1}}],["2277",{"2":{"138":1}}],["26078",{"2":{"177":3}}],["267",{"2":{"126":1}}],["29",{"2":{"178":2}}],["29826",{"2":{"177":3}}],["2900",{"2":{"67":2,"178":2}}],["21",{"2":{"178":1}}],["2190",{"2":{"151":1}}],["210",{"2":{"130":1}}],["278",{"2":{"113":1}}],["2733",{"2":{"52":4,"177":4}}],["256",{"2":{"181":2}}],["2500",{"2":{"178":7}}],["25px",{"2":{"67":1,"178":6,"181":1}}],["25",{"2":{"64":3,"181":4}}],["248",{"2":{"171":1}}],["2487",{"2":{"128":1}}],["24",{"2":{"36":1}}],["24622",{"2":{"20":1,"178":2}}],["239",{"2":{"176":1}}],["23",{"2":{"52":1,"177":1,"178":1}}],["23rd",{"2":{"31":1}}],["237",{"2":{"13":1,"24":1,"163":1,"178":2}}],["2s",{"2":{"21":1,"51":1,"52":2,"177":2}}],["2",{"0":{"154":1},"1":{"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1},"2":{"7":3,"11":1,"13":1,"19":1,"20":3,"21":5,"24":3,"29":3,"46":1,"47":2,"51":5,"52":19,"55":1,"58":1,"64":2,"67":7,"73":1,"74":1,"77":1,"86":1,"87":1,"88":2,"106":2,"110":1,"112":2,"113":1,"118":1,"119":1,"128":3,"129":1,"134":1,"136":1,"152":1,"156":1,"158":2,"162":1,"164":1,"165":2,"166":3,"167":3,"173":2,"177":33,"178":34,"179":1,"181":14}}],["2064",{"2":{"140":1}}],["2000",{"2":{"165":1,"173":1}}],["200",{"2":{"77":1}}],["20506",{"2":{"52":1,"177":1}}],["20737",{"2":{"52":4,"177":4}}],["2049",{"2":{"150":1}}],["20493",{"2":{"52":2,"177":2}}],["2048",{"2":{"28":1,"178":2}}],["2021",{"2":{"112":2}}],["2020",{"2":{"96":1}}],["2024",{"2":{"31":1,"178":1}}],["2023",{"2":{"15":1,"58":1}}],["20",{"2":{"7":6,"18":1,"67":2,"122":1,"123":1,"178":8,"181":2}}],["2examples",{"2":{"7":1}}],["$f",{"2":{"106":1}}],["$25",{"2":{"106":1}}],["$10",{"2":{"76":1}}],["$50",{"2":{"113":1}}],["$5",{"2":{"76":1}}],["$user",{"2":{"52":1,"177":1}}],["$upper",{"2":{"52":1,"177":1}}],["$lower",{"2":{"52":1,"177":1}}],["$",{"2":{"7":3,"52":9,"67":7,"86":1,"95":1,"106":1,"177":9,"178":7}}],["$0",{"2":{"4":1,"11":1,"20":2,"23":1,"26":1,"30":1,"31":1,"58":1,"85":1,"95":2,"96":1,"178":5}}],[">0",{"2":{"181":1}}],[">tryparse",{"2":{"86":1}}],[">x",{"2":{"7":2,"181":1}}],[">",{"2":{"7":1,"13":1,"18":3,"21":1,"31":1,"46":1,"51":1,"52":8,"58":1,"62":1,"64":1,"67":5,"95":1,"106":2,"110":2,"128":2,"150":2,"151":3,"166":1,"167":1,"177":9,"178":28,"181":8}}],["x123",{"2":{"178":2}}],["x^2`",{"2":{"166":1,"167":1}}],["xml",{"0":{"141":1,"170":1},"1":{"142":1,"143":1,"171":1,"172":1,"173":1},"2":{"142":1,"143":1,"171":1,"172":1,"173":1,"178":1}}],["x3c",{"2":{"20":1,"27":1,"52":6,"58":1,"60":1,"64":5,"67":13,"86":5,"128":4,"142":4,"143":4,"150":3,"151":3,"158":2,"165":1,"171":2,"172":12,"173":17,"177":11,"178":146,"181":114}}],["xyz",{"2":{"11":3,"52":1,"77":1,"104":2,"177":3,"181":1}}],["x",{"2":{"7":4,"21":2,"46":2,"51":2,"52":6,"74":4,"81":1,"86":2,"166":2,"167":2,"177":17,"178":11,"181":11}}],["x26",{"2":{"4":1,"67":2,"118":1,"178":12,"181":2}}],["08",{"2":{"178":2}}],["02",{"2":{"178":1}}],["024",{"2":{"7":1}}],["07",{"2":{"178":1}}],["05",{"2":{"177":1,"178":2}}],["0s",{"2":{"177":1}}],["0011",{"2":{"178":1}}],["0015",{"2":{"178":3}}],["002",{"2":{"178":3}}],["000",{"2":{"64":1,"67":2,"74":3,"178":2,"181":10}}],["0001",{"2":{"30":1,"31":1,"77":2,"95":1,"96":1}}],["0002",{"2":{"11":1}}],["0045",{"2":{"20":1,"178":1}}],["0117",{"2":{"20":1,"178":2}}],["014",{"2":{"7":7}}],["015",{"2":{"7":2}}],["0dict",{"2":{"7":3}}],["0",{"2":{"6":2,"10":2,"16":2,"19":1,"22":1,"23":2,"26":2,"31":1,"32":1,"33":1,"42":1,"47":2,"52":8,"58":6,"64":24,"66":2,"67":4,"77":1,"83":2,"85":2,"87":2,"95":2,"104":1,"108":1,"113":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"129":1,"130":1,"132":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"156":1,"159":1,"160":1,"161":1,"162":1,"164":1,"165":3,"167":1,"168":1,"169":1,"172":1,"173":4,"175":1,"177":29,"178":66,"181":83}}],["39931",{"2":{"177":2}}],["390",{"2":{"122":1}}],["383",{"2":{"160":1}}],["31",{"2":{"95":1}}],["344",{"2":{"161":1}}],["34900",{"2":{"67":2,"178":2}}],["34",{"2":{"58":1,"178":1}}],["34315",{"2":{"52":1,"177":1}}],["374",{"2":{"168":1}}],["375",{"2":{"108":1}}],["37581",{"2":{"52":1,"177":1}}],["37",{"2":{"52":1,"177":1}}],["354",{"2":{"123":1}}],["35",{"2":{"52":4,"67":2,"177":4,"178":2}}],["35603",{"2":{"52":1,"177":1}}],["32000",{"2":{"177":3}}],["32991",{"2":{"52":5,"177":5}}],["32",{"2":{"52":2,"95":1,"177":2}}],["337",{"2":{"159":1}}],["33",{"2":{"52":5,"177":5}}],["33333dict",{"2":{"7":1}}],["3x",{"2":{"52":1,"177":1}}],["366",{"2":{"134":1}}],["36",{"2":{"52":1,"177":1}}],["362",{"2":{"20":1,"178":1}}],["3000",{"2":{"165":1,"173":1}}],["300",{"2":{"162":1}}],["30088",{"2":{"52":2,"177":2}}],["30",{"2":{"19":2,"77":1,"122":1,"123":1,"178":14}}],["3examples",{"2":{"7":1}}],["3",{"2":{"6":2,"7":12,"10":1,"11":1,"24":1,"37":1,"52":3,"58":4,"67":3,"74":1,"88":1,"91":1,"95":1,"96":3,"104":1,"106":2,"112":3,"113":2,"128":4,"129":1,"152":3,"156":1,"158":1,"165":2,"166":1,"167":1,"173":2,"177":8,"178":25,"181":5}}],["+",{"2":{"6":1,"52":2,"58":2,"60":1,"63":1,"64":1,"106":2,"165":1,"173":1,"177":2,"178":5,"181":1}}],["5th",{"2":{"181":1}}],["595",{"2":{"172":1}}],["570",{"2":{"142":1}}],["57694",{"2":{"52":1,"177":1}}],["519",{"2":{"143":1,"164":1}}],["514",{"2":{"125":1}}],["512",{"2":{"52":5,"177":5,"181":1}}],["5=best",{"2":{"120":1}}],["50m",{"2":{"178":2}}],["504",{"2":{"175":1}}],["500",{"2":{"145":1}}],["50086",{"2":{"52":4,"177":4}}],["50",{"2":{"52":4,"85":1,"177":4}}],["52910",{"2":{"52":4,"177":4}}],["55394",{"2":{"52":1,"177":1}}],["5examples",{"2":{"7":1}}],["5",{"2":{"6":5,"11":2,"20":1,"22":3,"28":1,"30":2,"31":1,"37":3,"40":1,"47":1,"52":11,"55":1,"58":3,"62":2,"64":11,"74":1,"75":1,"83":2,"85":1,"91":1,"93":1,"95":3,"98":1,"102":1,"105":1,"112":2,"113":1,"119":14,"120":2,"124":1,"152":2,"156":2,"158":2,"165":1,"169":1,"173":1,"177":11,"178":41,"179":1,"181":25}}],["837",{"2":{"178":1}}],["84",{"2":{"177":1}}],["886",{"2":{"162":1}}],["82",{"2":{"52":1,"177":1}}],["87",{"2":{"30":1}}],["8755f69180b7ac7ee76a69ae68ec36872a116ad4",{"2":{"20":1,"178":2}}],["8x7b",{"2":{"28":1,"37":1,"106":1}}],["80k",{"2":{"181":3}}],["80kg",{"2":{"19":1,"178":6}}],["8080",{"2":{"28":1,"62":3,"64":3,"178":2,"181":3}}],["8081",{"2":{"23":1,"178":2}}],["80",{"2":{"19":1,"178":4,"181":6}}],["8examples",{"2":{"7":1}}],["8",{"2":{"6":1,"52":1,"177":1,"181":4}}],["64",{"2":{"181":2}}],["636",{"2":{"110":1}}],["60",{"2":{"52":3,"74":1,"77":1,"178":6,"181":2}}],["67",{"2":{"52":10,"177":11}}],["67dict",{"2":{"7":3}}],["69",{"2":{"22":1,"178":2}}],["66667dict",{"2":{"7":3}}],["6examples",{"2":{"7":1}}],["6",{"2":{"6":1,"7":1,"42":1,"52":6,"67":1,"74":1,"177":7,"178":2,"181":5}}],["48",{"2":{"177":1}}],["48343",{"2":{"52":1,"177":1}}],["420",{"2":{"120":1,"175":1}}],["429",{"0":{"75":1}}],["4k",{"2":{"67":1,"178":1}}],["46",{"2":{"87":1,"178":1}}],["46632",{"2":{"52":1,"177":1}}],["46839",{"2":{"52":2,"177":2}}],["43094",{"2":{"52":1,"177":1}}],["43",{"2":{"52":1,"177":1}}],["44816",{"2":{"52":2,"177":2}}],["41",{"2":{"52":1,"132":1,"177":1}}],["4examples",{"2":{"7":1}}],["402",{"2":{"148":1}}],["40796033843072876",{"2":{"47":1}}],["4096×2",{"2":{"22":1,"46":1,"178":1}}],["4096",{"2":{"22":1,"45":2,"46":1,"47":1,"178":2}}],["40",{"2":{"7":8,"58":1,"178":2}}],["4",{"2":{"6":3,"7":2,"15":5,"23":1,"24":1,"26":1,"52":10,"58":3,"67":1,"91":3,"95":1,"96":1,"112":1,"152":1,"156":1,"177":10,"178":10,"181":14}}],["1`",{"2":{"178":1}}],["1+1",{"2":{"178":1}}],["16",{"2":{"178":2}}],["1643",{"2":{"173":1}}],["16k",{"2":{"67":1,"177":1,"178":1}}],["17",{"2":{"178":2}}],["175b",{"2":{"178":3}}],["1712",{"2":{"169":1}}],["172",{"2":{"157":1}}],["1>",{"2":{"150":1}}],["184",{"2":{"155":1}}],["18",{"2":{"147":1,"177":1,"178":1}}],["180",{"2":{"19":1,"178":4}}],["180cm",{"2":{"19":1,"178":6}}],["150",{"2":{"158":1}}],["1501",{"2":{"158":1}}],["1506",{"2":{"152":1}}],["1515",{"2":{"139":1}}],["151",{"2":{"135":1}}],["1536×2",{"2":{"178":1}}],["1536",{"2":{"16":1,"178":1}}],["1=worst",{"2":{"120":1}}],["13184",{"2":{"177":2}}],["1396",{"2":{"118":1}}],["1392",{"2":{"116":1}}],["1384",{"2":{"112":1}}],["1m",{"2":{"96":1}}],["1em",{"2":{"67":1,"178":6,"181":1}}],["1examples",{"2":{"7":1}}],["1px",{"2":{"67":1,"178":6,"181":1}}],["1475",{"2":{"165":1}}],["1415",{"2":{"119":1}}],["14966",{"2":{"52":4,"177":4}}],["14",{"2":{"52":1,"177":1}}],["128",{"2":{"181":2}}],["124",{"2":{"178":1}}],["127",{"2":{"83":1,"178":5}}],["12940",{"2":{"52":1,"177":1}}],["12",{"2":{"52":2,"74":1,"177":2,"178":2,"181":1}}],["123",{"2":{"24":1,"84":1}}],["120",{"2":{"10":2,"74":1,"104":2,"178":10}}],["11",{"2":{"181":1}}],["111",{"2":{"178":2}}],["11434",{"2":{"83":1,"178":3}}],["1143",{"2":{"67":1,"166":1,"167":1,"178":1}}],["114",{"2":{"23":1,"26":1}}],["1141",{"2":{"20":1,"178":2}}],["1106",{"2":{"15":2}}],["1928",{"2":{"118":3}}],["190",{"2":{"19":2,"178":6}}],["19",{"2":{"19":2,"58":1,"178":6}}],["10897",{"2":{"178":5}}],["10`",{"2":{"166":1,"167":1}}],["1073",{"2":{"124":1}}],["1074",{"2":{"115":1}}],["10examples",{"2":{"7":1}}],["10×8",{"2":{"7":1}}],["100k",{"2":{"181":1}}],["1000",{"2":{"77":1,"86":1,"165":1,"173":1,"175":1,"178":4}}],["100x",{"2":{"74":1}}],["100",{"2":{"7":3,"52":4,"62":2,"64":5,"158":1,"177":3,"178":11,"181":15}}],["10",{"2":{"6":1,"7":4,"11":1,"52":8,"58":1,"64":1,"67":1,"73":2,"74":2,"106":1,"124":1,"177":6,"178":15,"181":10}}],["1024x1024",{"2":{"178":2}}],["102",{"2":{"4":1,"11":1}}],["1",{"0":{"153":1},"2":{"5":1,"6":1,"7":13,"10":2,"13":3,"16":2,"18":1,"21":6,"24":4,"28":1,"30":1,"32":1,"33":1,"37":2,"40":1,"45":1,"47":1,"51":6,"52":48,"58":6,"64":9,"66":2,"67":9,"73":1,"77":1,"83":1,"85":1,"87":4,"88":2,"91":1,"95":1,"96":2,"104":3,"105":1,"106":3,"108":1,"110":2,"112":4,"113":1,"115":2,"116":2,"118":5,"119":17,"120":3,"122":1,"123":1,"124":1,"125":1,"126":1,"128":3,"129":3,"130":1,"132":1,"134":3,"135":2,"136":2,"138":1,"139":1,"140":1,"142":1,"143":1,"145":2,"147":2,"148":1,"150":5,"151":4,"152":3,"155":1,"156":2,"157":2,"158":2,"159":1,"160":1,"161":1,"162":1,"163":1,"165":3,"166":6,"167":5,"168":1,"169":1,"171":1,"172":1,"173":2,"175":1,"176":1,"177":63,"178":67,"181":47}}],["q4",{"2":{"28":1,"37":1}}],["qaevalresult",{"2":{"6":1,"181":5}}],["qaevalitems",{"2":{"181":1}}],["qaevalitem",{"2":{"4":1,"5":1,"64":5,"181":13}}],["qa",{"2":{"4":1,"6":2,"7":5,"57":1,"64":8,"178":3,"181":38}}],["q",{"0":{"4":1,"5":1,"6":1},"2":{"3":1,"4":1,"6":1,"64":4,"181":4}}],["quantization",{"2":{"156":1,"181":6}}],["quantum",{"2":{"58":1}}],["quarter",{"2":{"64":1,"181":1}}],["quality=",{"2":{"178":1}}],["quality`",{"2":{"178":1}}],["quality",{"2":{"3":2,"5":1,"7":1,"8":1,"13":2,"17":1,"24":3,"88":1,"103":1,"105":2,"119":2,"120":2,"150":1,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"178":6,"181":2}}],["queried",{"2":{"178":2}}],["queries",{"2":{"134":1}}],["query",{"0":{"121":1},"1":{"122":1,"123":1,"124":1,"125":1,"126":1},"2":{"55":3,"63":3,"67":7,"110":4,"115":7,"116":8,"122":7,"123":5,"124":13,"125":11,"126":8,"178":15,"179":3,"181":35}}],["question=",{"2":{"181":4}}],["question>",{"2":{"171":2}}],["questionrouter",{"0":{"136":1},"2":{"178":1}}],["questions",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"3":1,"4":1,"13":1,"15":1,"23":1,"24":2,"26":1,"31":1,"34":1,"37":1,"42":1,"58":1,"64":3,"67":1,"95":1,"108":1,"122":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"178":5,"181":8}}],["question",{"2":{"2":5,"5":1,"6":4,"7":2,"8":1,"13":1,"23":1,"24":7,"26":1,"57":2,"58":8,"61":2,"62":3,"64":30,"77":1,"101":1,"102":1,"103":2,"105":2,"108":5,"110":4,"115":1,"116":1,"118":7,"119":8,"120":6,"123":1,"136":7,"150":1,"151":1,"152":4,"154":2,"155":1,"159":1,"161":1,"163":1,"168":1,"178":6,"181":74}}],["quirks",{"2":{"86":1}}],["quicker",{"2":{"177":1}}],["quick",{"0":{"95":1},"2":{"29":1,"73":1,"87":2,"93":1,"158":1,"178":6}}],["quickly",{"0":{"87":1},"2":{"11":1,"56":1,"67":1,"150":1,"178":1,"181":1}}],["quite",{"2":{"28":1,"63":1,"74":1,"88":1,"106":1,"181":1}}],["quote",{"2":{"152":1}}],["quotes",{"2":{"128":3,"150":1,"181":1}}],["quota",{"2":{"75":1}}],["quot",{"0":{"73":4,"74":2,"75":2},"2":{"1":4,"2":2,"6":2,"7":8,"10":8,"11":6,"13":4,"15":10,"17":8,"18":2,"21":6,"24":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"37":4,"42":10,"49":6,"51":6,"52":26,"55":6,"58":2,"60":2,"64":20,"67":52,"73":8,"74":4,"75":4,"77":2,"78":4,"79":6,"81":2,"83":2,"84":10,"85":6,"86":8,"88":16,"89":6,"90":4,"91":2,"93":6,"95":4,"96":2,"98":2,"99":4,"100":6,"102":8,"103":6,"104":8,"105":6,"106":16,"112":2,"113":2,"118":2,"132":2,"150":2,"151":2,"152":2,"153":2,"154":2,"165":2,"167":2,"169":2,"173":2,"177":64,"178":242,"179":6,"181":41}}],["=context",{"2":{"181":1}}],["=1",{"2":{"181":1}}],["=template",{"2":{"178":2}}],["=pt",{"2":{"178":3}}],["=prompt",{"2":{"178":1}}],["=url",{"2":{"178":1}}],["=user",{"2":{"147":1}}],["=system",{"2":{"147":1,"178":1}}],["=main",{"2":{"52":1,"178":1}}],["=nothing",{"2":{"52":2,"177":4,"181":1}}],["==true",{"2":{"178":1}}],["==",{"2":{"21":2,"51":3,"52":4,"86":1,"165":4,"173":4,"177":13,"178":2,"181":2}}],["=wordcount",{"2":{"13":1,"178":2}}],["=>dic",{"2":{"178":1}}],["=>dict",{"2":{"106":6,"178":2}}],["=>",{"2":{"6":8,"7":1,"86":3,"90":4,"105":4,"106":16,"166":1,"167":1,"178":16,"181":3}}],["=",{"2":{"1":2,"2":6,"4":4,"6":8,"7":14,"10":1,"12":6,"13":7,"14":2,"15":3,"16":4,"17":2,"18":4,"19":2,"20":3,"21":14,"22":5,"23":7,"24":8,"25":1,"26":3,"27":5,"28":1,"29":9,"30":1,"31":3,"32":1,"34":2,"35":2,"37":2,"39":2,"40":5,"41":2,"42":8,"43":1,"45":2,"46":5,"47":3,"48":1,"51":14,"52":68,"55":4,"56":1,"58":8,"60":2,"62":28,"64":146,"67":28,"78":2,"79":1,"81":1,"84":2,"85":2,"86":11,"88":5,"90":9,"91":6,"93":2,"95":1,"96":1,"100":1,"103":1,"104":3,"105":10,"106":20,"164":1,"165":1,"166":2,"167":1,"172":1,"173":1,"177":134,"178":478,"179":7,"181":417}}],["jxnl",{"2":{"150":1,"151":1}}],["javascript",{"2":{"161":2}}],["javascriptexpertask",{"0":{"161":1}}],["jargon",{"2":{"124":1}}],["jarvislabs",{"2":{"89":1}}],["jack",{"2":{"19":1,"87":4,"178":9}}],["james",{"2":{"19":1,"178":8}}],["jane",{"2":{"7":4,"112":2}}],["jedi",{"2":{"12":3,"35":1,"178":1}}],["joy",{"2":{"41":1}}],["job",{"2":{"7":4,"77":1,"178":5}}],["job=",{"2":{"7":1}}],["jobs",{"2":{"7":7}}],["john",{"2":{"7":3,"40":2,"85":6,"90":2}}],["joint",{"2":{"181":1}}],["join",{"2":{"6":3,"7":23,"106":2,"178":3}}],["joining",{"2":{"5":2,"6":2,"7":2,"70":1}}],["joins",{"2":{"2":1,"5":3,"6":1,"7":15,"181":1}}],["joinpath",{"2":{"2":2,"24":1,"178":3}}],["jsonl",{"2":{"89":2,"178":1}}],["json",{"2":{"4":2,"24":2,"87":1,"89":1,"91":1,"105":1,"106":14,"178":13}}],["json3",{"2":{"1":1,"4":2,"22":1,"45":1,"106":7,"178":3}}],["jump",{"2":{"177":1,"178":1}}],["judgment",{"2":{"158":1}}],["judging",{"2":{"119":1,"181":1}}],["judge=",{"2":{"181":1}}],["judgerating",{"2":{"178":1,"181":2}}],["judgeisittrue",{"0":{"135":1},"2":{"13":1,"17":2,"178":7}}],["judgeallscores",{"2":{"6":1,"178":1,"181":2}}],["judged",{"2":{"6":2}}],["judge",{"2":{"2":1,"6":3,"7":2,"10":1,"17":1,"52":1,"104":1,"119":4,"120":3,"135":1,"177":1,"178":3,"181":8}}],["juicy",{"2":{"31":2,"106":8}}],["just",{"2":{"2":1,"10":1,"13":1,"23":1,"24":4,"26":1,"31":1,"52":1,"55":1,"73":1,"75":1,"81":1,"83":2,"85":1,"86":1,"103":1,"104":1,"106":4,"108":1,"115":1,"116":1,"136":1,"156":2,"177":1,"178":8,"179":1}}],["juliaqa",{"2":{"181":1}}],["juliaquestion",{"2":{"58":1}}],["juliakwargs",{"2":{"181":1}}],["juliakw",{"2":{"181":3}}],["juliakeywordsprocessor",{"2":{"181":1}}],["juliakeywordsindexer",{"2":{"181":1}}],["julianotagger",{"2":{"181":1}}],["julianotagfilter",{"2":{"181":1}}],["julianoreranker",{"2":{"181":1}}],["julianorephraser",{"2":{"181":1}}],["julianorefiner",{"2":{"181":1}}],["julianoprocessor",{"2":{"181":1}}],["julianopostprocessor",{"2":{"181":1}}],["julianoembedder",{"2":{"181":1}}],["julianew",{"2":{"12":1,"178":1}}],["juliahamming",{"2":{"181":1}}],["juliahyderephraser",{"2":{"181":1}}],["juliahtmlstyler",{"2":{"181":1}}],["juliainitialize",{"2":{"178":1}}],["juliaindex",{"2":{"58":1,"64":2,"181":6}}],["juliagetpropertynested",{"2":{"181":1}}],["juliaget",{"2":{"181":7}}],["juliagenerate",{"2":{"64":1,"181":1}}],["juliagroqopenaischema",{"2":{"178":1}}],["juliagamma",{"2":{"177":1}}],["juliabin",{"2":{"181":2}}],["juliabinary",{"2":{"181":1}}],["juliabinarycosinesimilarity",{"2":{"181":1}}],["juliabinarybatchembedder",{"2":{"181":1}}],["juliabitpacked",{"2":{"181":1}}],["juliabitpackedcosinesimilarity",{"2":{"181":1}}],["juliabitpackedbatchembedder",{"2":{"181":1}}],["juliabatchembedder",{"2":{"181":1}}],["juliabm25similarity",{"2":{"181":1}}],["juliabeta",{"2":{"177":1}}],["juliablogwriter",{"0":{"162":1}}],["juliabuild",{"2":{"64":3,"178":1,"181":5}}],["juliaopentagger",{"2":{"181":1}}],["juliaopenai",{"2":{"178":3}}],["juliaollama",{"2":{"178":1}}],["juliaobj",{"2":{"106":1}}],["juliaoutput",{"2":{"51":1}}],["juliaout",{"2":{"21":1,"52":2,"177":2}}],["juliaunique",{"2":{"178":1}}],["juliaunwrap",{"2":{"91":1}}],["juliauct",{"2":{"177":1}}],["juliausing",{"2":{"1":1,"10":1,"12":1,"13":1,"16":1,"20":1,"21":1,"24":1,"25":1,"32":2,"37":1,"47":1,"48":1,"53":1,"66":1,"86":1,"88":1,"91":3,"94":1,"104":1,"105":2,"106":1,"178":9,"181":1}}],["juliaload",{"2":{"178":2,"181":1}}],["julialocalserveropenaischema",{"2":{"178":1}}],["juliallmleaderboard",{"2":{"89":1}}],["julialength",{"2":{"67":1,"178":1}}],["julialanguage",{"2":{"112":1}}],["julialang",{"2":{"57":1,"66":1,"67":1,"178":1}}],["juliawrap",{"2":{"67":2,"178":7}}],["juliaalign",{"2":{"181":1}}],["juliaalltagfilter",{"2":{"181":1}}],["juliaalternative",{"2":{"178":1}}],["juliaadvancedretriever",{"2":{"181":1}}],["juliaadvancedgenerator",{"2":{"181":1}}],["juliaadd",{"2":{"177":1,"181":1}}],["juliaabstractretriever",{"2":{"181":1}}],["juliaabstractmultiindex",{"2":{"181":1}}],["juliaabstractindexbuilder",{"2":{"181":1}}],["juliaabstractgenerator",{"2":{"181":1}}],["juliaabstractchunkindex",{"2":{"181":1}}],["juliaabstractcandidatechunks",{"2":{"181":1}}],["juliaa=1",{"2":{"178":1}}],["juliaaai",{"2":{"178":1}}],["juliaauth",{"2":{"178":1}}],["juliaa",{"2":{"178":2}}],["juliaapi",{"2":{"178":2}}],["juliaanswer",{"2":{"181":1}}],["juliaanytagfilter",{"2":{"181":1}}],["juliaanthropic",{"2":{"178":1}}],["juliaanthropicschema",{"2":{"178":1}}],["juliaannotatednode",{"2":{"181":1}}],["juliaannotater",{"2":{"64":1,"181":1}}],["juliaannotate",{"2":{"64":2,"181":2}}],["juliaagenttools",{"2":{"177":1}}],["juliaassume",{"2":{"64":1,"181":1}}],["juliaaiimage",{"2":{"178":2}}],["juliaaitemplate",{"2":{"178":1}}],["juliaaitemplates",{"2":{"87":1,"178":2}}],["juliaaimessage",{"2":{"178":1}}],["juliaaiscan",{"2":{"177":1,"178":3}}],["juliaaiextract",{"2":{"177":1,"178":3}}],["juliaaiembed",{"2":{"30":1,"31":1,"177":1,"178":3}}],["juliaairag",{"2":{"64":1,"181":1}}],["juliaairetry",{"2":{"52":1,"177":1}}],["juliaaicodefixer",{"2":{"52":1,"177":2}}],["juliaaicode",{"2":{"52":1,"178":1}}],["juliaaicall",{"2":{"52":3,"177":6}}],["juliaaiclassify",{"2":{"17":2,"177":1,"178":5}}],["juliaaigenerate",{"2":{"52":1,"87":2,"177":1,"178":8}}],["juliaai",{"2":{"34":1,"85":1,"95":2,"178":1}}],["juliart",{"2":{"181":1}}],["juliarank",{"2":{"181":2}}],["juliarankgptresult",{"2":{"181":1}}],["juliarankgptreranker",{"2":{"181":1}}],["juliaragresult",{"2":{"181":1}}],["juliaragconfig",{"2":{"181":1}}],["juliaragtools",{"2":{"181":1}}],["juliarun",{"2":{"177":2,"181":2}}],["juliarerank",{"2":{"181":2}}],["juliarefiner",{"2":{"181":1}}],["juliarefine",{"2":{"181":3}}],["juliarender",{"2":{"178":7}}],["juliarendered",{"2":{"105":1}}],["juliaremove",{"2":{"178":1}}],["juliaregister",{"2":{"178":2}}],["juliaretryconfig",{"2":{"177":1}}],["juliaretrieve",{"2":{"64":1,"181":1}}],["juliaretriever",{"2":{"62":1,"64":2,"181":2}}],["juliareciprocal",{"2":{"181":2}}],["juliareceive",{"2":{"181":1}}],["juliarecaptask",{"0":{"167":1}}],["juliarecapcottask",{"0":{"166":1}}],["juliarecursive",{"2":{"67":2,"178":2}}],["juliareplace",{"2":{"67":1,"178":1}}],["juliarephrase",{"2":{"62":1,"181":3}}],["juliaresponse",{"2":{"178":1}}],["juliaresize",{"2":{"178":2}}],["juliares",{"2":{"64":1,"181":1}}],["juliaresult",{"2":{"58":1,"104":1,"106":1,"178":4,"181":1}}],["juliaresults",{"2":{"7":1}}],["juliar",{"2":{"55":2,"179":2}}],["juliaflashranker",{"2":{"181":1}}],["juliafunction",{"2":{"178":1}}],["juliafind",{"2":{"178":2,"181":8}}],["juliafinalize",{"2":{"178":3}}],["juliafireworksopenaischema",{"2":{"178":1}}],["juliafilechunker",{"2":{"181":1}}],["juliafilename",{"2":{"24":1}}],["juliafiles",{"2":{"2":1}}],["juliafeedback",{"2":{"106":1}}],["juliafor",{"2":{"52":1,"177":1}}],["juliasplit",{"2":{"181":1}}],["juliaspec",{"2":{"178":1}}],["juliascore",{"2":{"181":1}}],["juliaschema",{"2":{"42":1}}],["juliastemmer",{"2":{"181":1}}],["juliastyler",{"2":{"181":1}}],["juliasubchunkindex",{"2":{"181":1}}],["juliasimpleretriever",{"2":{"181":1}}],["juliasimplerephraser",{"2":{"181":1}}],["juliasimplerefiner",{"2":{"181":1}}],["juliasimpleindexer",{"2":{"181":1}}],["juliasimplegenerator",{"2":{"181":1}}],["juliasimplebm25retriever",{"2":{"181":1}}],["juliasimpleanswerer",{"2":{"181":1}}],["juliasig",{"2":{"106":3}}],["juliasharegptschema",{"2":{"178":1}}],["juliasave",{"2":{"178":3}}],["juliasaverschema",{"2":{"178":1}}],["juliasample",{"2":{"177":1}}],["juliasamplenode",{"2":{"177":1}}],["juliasetpropertynested",{"2":{"181":1}}],["juliaset",{"2":{"178":1,"181":1}}],["juliaselect",{"2":{"177":1}}],["juliasentences",{"2":{"58":1}}],["juliaserialize",{"2":{"2":1}}],["juliamultiindex",{"2":{"181":1}}],["juliamultifinder",{"2":{"181":1}}],["juliamulticandidatechunks",{"2":{"181":1}}],["juliamerge",{"2":{"181":1}}],["juliamessages",{"2":{"178":1}}],["juliameta",{"2":{"91":1}}],["juliamarkdown",{"2":{"178":1}}],["juliamistralopenaischema",{"2":{"178":1}}],["juliamodelspec",{"2":{"178":1}}],["juliamodel",{"2":{"40":1,"106":2,"178":2}}],["juliamsgs",{"2":{"24":1}}],["juliamsg",{"2":{"12":1,"13":2,"20":1,"22":1,"23":1,"24":1,"26":1,"28":1,"29":1,"30":1,"31":1,"34":1,"39":1,"43":1,"45":2,"46":1,"47":1,"52":1,"64":1,"96":1,"178":11,"181":3}}],["juliadistance",{"2":{"178":1}}],["juliadetect",{"2":{"178":1}}],["juliadecode",{"2":{"178":1}}],["juliadeepseekopenaischema",{"2":{"178":1}}],["juliadatabricksopenaischema",{"2":{"178":1}}],["juliadatamessage",{"2":{"178":1}}],["juliadataexpertask",{"2":{"24":2}}],["juliadry",{"2":{"90":1}}],["juliadocumenttermmatrix",{"2":{"181":1}}],["juliadoc",{"2":{"64":1,"181":1}}],["juliadocs",{"2":{"46":1}}],["juliadf",{"2":{"7":1}}],["juliapositions1",{"2":{"181":2}}],["juliapermutation",{"2":{"181":1}}],["juliapack",{"2":{"181":1}}],["juliapackage",{"2":{"112":1}}],["juliaparent",{"2":{"181":1}}],["juliapassthroughtagger",{"2":{"181":1}}],["juliapush",{"2":{"178":1}}],["juliapprint",{"2":{"58":1,"178":2}}],["juliapreprocess",{"2":{"181":1}}],["juliapreferences",{"2":{"178":1}}],["juliaprompt",{"2":{"106":1}}],["juliapromptingtools",{"2":{"60":1,"178":5,"181":1}}],["juliaprompts",{"2":{"14":1}}],["juliaprint",{"2":{"52":1,"177":1,"181":1}}],["juliapt",{"2":{"24":2,"42":1,"52":1,"64":1,"87":2,"90":1,"91":1,"178":5,"181":3}}],["juliacc",{"2":{"181":1}}],["juliachunkkeywordsindex",{"2":{"181":2}}],["juliachunkembeddingsindex",{"2":{"181":1}}],["juliachoices",{"2":{"18":1,"86":1,"178":5}}],["juliacandidatechunks",{"2":{"181":1}}],["juliacall",{"2":{"178":1}}],["juliacustomopenaischema",{"2":{"178":1}}],["juliacfg",{"2":{"62":1,"64":1,"181":3}}],["juliacreate",{"2":{"55":1,"178":1,"179":1,"181":1}}],["juliacb",{"2":{"52":1,"177":1}}],["juliacohere",{"2":{"181":1}}],["juliacoherereranker",{"2":{"181":1}}],["juliacosinesimilarity",{"2":{"181":1}}],["juliacountry",{"2":{"95":1}}],["juliacommands",{"2":{"67":1,"178":1}}],["juliacode",{"2":{"52":2,"178":4}}],["juliaconv",{"2":{"178":2}}],["juliaconversation",{"2":{"35":1,"41":1,"85":1}}],["juliacontextenumerator",{"2":{"181":1}}],["juliacontext",{"2":{"67":1,"178":1}}],["juliaconst",{"2":{"15":1,"22":1,"23":1,"26":1,"178":15}}],["juliatokenize",{"2":{"181":1}}],["juliatoken",{"2":{"181":1}}],["juliatogetheropenaischema",{"2":{"178":1}}],["juliatags",{"2":{"181":1}}],["juliatavilysearchrefiner",{"2":{"181":1}}],["juliatavily",{"2":{"179":1}}],["juliatypeof",{"2":{"178":5}}],["juliatrigrams",{"2":{"181":1}}],["juliatrigram",{"2":{"181":1}}],["juliatrigramannotater",{"2":{"181":1}}],["juliatranslate",{"2":{"181":2}}],["juliatracerschema",{"2":{"178":1}}],["juliatracermessagelike",{"2":{"178":1}}],["juliatracermessage",{"2":{"178":1}}],["juliatryparse",{"2":{"178":1}}],["juliatruncate",{"2":{"177":1}}],["juliathompsonsampling",{"2":{"177":1}}],["juliatemplate",{"2":{"105":1}}],["juliatextchunker",{"2":{"181":1}}],["juliatext1",{"2":{"67":1,"178":1}}],["juliatext",{"2":{"16":1,"67":7,"178":7}}],["juliatpl",{"2":{"24":1}}],["juliatmps",{"2":{"13":2,"24":1,"178":4}}],["juliajulia>",{"2":{"13":1,"52":1,"177":1,"178":1}}],["juliaexperimental",{"2":{"180":1}}],["juliaexperttask",{"2":{"178":1}}],["juliaexperttestcodexml",{"0":{"173":1}}],["juliaexperttestcode",{"0":{"165":1}}],["juliaexperttranscriptcritic",{"0":{"140":1}}],["juliaexpertcottaskxml",{"0":{"172":1}}],["juliaexpertcottask",{"0":{"164":1}}],["juliaexpertaskxml",{"0":{"171":1}}],["juliaexpertask",{"0":{"163":1},"2":{"13":4,"24":6,"52":1,"104":2,"177":1,"178":6}}],["juliaextract",{"2":{"178":5,"181":1}}],["juliaencode",{"2":{"178":1}}],["juliaenv",{"2":{"78":1}}],["juliaeval",{"2":{"178":1}}],["juliaevaluate",{"2":{"177":1}}],["juliaevals",{"2":{"4":1,"5":1}}],["juliaerror",{"2":{"52":1,"177":1}}],["juliax",{"2":{"6":1,"178":1,"181":1}}],["julia>",{"2":{"5":1}}],["julia",{"2":{"2":3,"4":1,"6":1,"7":1,"10":1,"13":6,"19":2,"20":3,"21":2,"23":1,"24":14,"27":1,"29":1,"31":1,"43":1,"49":1,"51":2,"52":9,"56":1,"57":1,"58":26,"64":3,"67":1,"73":6,"74":1,"78":3,"81":1,"86":2,"87":1,"90":1,"93":3,"102":1,"103":1,"104":1,"105":2,"106":2,"112":2,"122":4,"128":4,"129":2,"130":1,"140":8,"162":3,"163":2,"164":2,"165":3,"166":7,"167":8,"171":2,"172":2,"173":3,"177":12,"178":66,"181":17}}],["jls",{"2":{"2":2}}],["jl",{"0":{"79":1},"2":{"0":3,"1":1,"2":3,"8":2,"10":1,"23":3,"24":1,"26":2,"27":1,"29":1,"30":1,"31":1,"47":1,"52":1,"58":3,"63":1,"64":1,"65":1,"67":3,"70":1,"78":2,"81":2,"82":1,"89":1,"93":2,"94":1,"97":1,"100":1,"104":1,"105":1,"106":1,"112":4,"177":1,"178":20,"181":5}}],["nfeedback",{"2":{"177":6}}],["n```",{"2":{"128":1,"129":1,"178":1}}],["nwhat",{"2":{"105":1}}],["nwe",{"2":{"7":1}}],["nparagraph",{"2":{"67":6,"88":2,"178":6}}],["n=5",{"2":{"64":1,"181":1}}],["n=2",{"2":{"21":1,"51":1,"52":1,"177":1}}],["nsfw",{"2":{"52":1,"177":1}}],["nsemijoin",{"2":{"7":1}}],["nbsp",{"2":{"52":9,"55":1,"64":6,"67":5,"177":37,"178":143,"179":2,"180":1,"181":141}}],["ngl",{"2":{"28":2}}],["nli",{"2":{"17":1}}],["nt2",{"2":{"181":3}}],["nt1",{"2":{"181":3}}],["nt",{"2":{"181":4}}],["nthreads",{"2":{"181":6}}],["nthe",{"2":{"7":1}}],["ntasks=2",{"2":{"74":2}}],["ntasks=1",{"2":{"64":1,"74":1,"181":4}}],["ntasks=10",{"2":{"14":1}}],["ntasks",{"2":{"64":1,"74":1,"181":7}}],["n7",{"2":{"7":1}}],["n6",{"2":{"7":1}}],["n5",{"2":{"7":1}}],["numerical",{"2":{"58":1}}],["num",{"2":{"37":2,"110":4,"177":6,"181":2}}],["number",{"2":{"14":1,"28":1,"52":14,"55":1,"58":1,"64":8,"66":1,"67":2,"74":4,"86":10,"106":1,"110":1,"136":1,"165":1,"173":1,"177":26,"178":21,"179":1,"181":19}}],["numbers",{"2":{"2":1,"52":4,"165":2,"173":2,"177":1,"178":3,"181":1}}],["null",{"2":{"7":1,"178":2}}],["n4",{"2":{"7":1}}],["n3",{"2":{"7":1}}],["n2",{"2":{"7":1}}],["n2×3",{"2":{"7":1}}],["n2×2",{"2":{"7":2}}],["n1",{"2":{"7":1}}],["njob",{"2":{"7":2}}],["njulia",{"2":{"7":1}}],["niche",{"2":{"124":1}}],["nice",{"2":{"13":1,"24":1,"39":1,"40":1,"42":1,"178":4}}],["nid",{"2":{"7":2}}],["nintroduction",{"2":{"7":1}}],["n─────┼───────────────",{"2":{"7":1}}],["n─────┼─────────────────────────",{"2":{"7":1}}],["n─────┼─────────────────",{"2":{"7":1}}],["naming",{"2":{"178":1}}],["name`",{"2":{"178":1}}],["named",{"2":{"165":1,"173":1,"178":15}}],["namedtuple=namedtuple",{"2":{"181":1}}],["namedtuples",{"2":{"166":1,"167":1,"181":1}}],["namedtuple",{"2":{"10":2,"52":7,"64":61,"104":2,"177":9,"178":74,"179":2,"181":79}}],["namespace",{"2":{"94":1}}],["names",{"2":{"7":3,"27":1,"28":1,"58":1,"60":1,"62":1,"67":1,"106":2,"112":5,"162":1,"166":1,"167":1,"178":15,"181":1}}],["name",{"2":{"7":6,"11":1,"12":2,"13":2,"15":1,"24":6,"28":1,"29":1,"30":1,"31":2,"37":1,"40":3,"42":1,"83":1,"84":1,"85":5,"87":7,"89":1,"90":3,"103":2,"106":9,"112":1,"128":2,"156":1,"158":1,"165":1,"173":1,"177":1,"178":71,"181":1}}],["name=",{"2":{"7":1,"12":1,"84":1,"87":2,"90":1,"91":1,"166":1,"167":1,"178":4}}],["narrative",{"2":{"169":2}}],["nature",{"2":{"151":1,"178":1}}],["naturally",{"2":{"178":1}}],["natural",{"2":{"58":1,"124":1,"126":1,"178":1}}],["native",{"2":{"106":1}}],["navigate",{"2":{"1":1}}],["n",{"2":{"7":17,"13":2,"21":2,"24":8,"51":2,"52":7,"62":2,"64":8,"67":24,"88":10,"103":2,"105":4,"106":4,"128":1,"129":1,"177":18,"178":30,"181":18}}],["neighboring",{"2":{"181":1}}],["network",{"2":{"181":3}}],["nedeed",{"2":{"178":1}}],["never",{"2":{"178":1,"181":1}}],["negative",{"2":{"165":1,"169":1,"173":1,"181":1}}],["nesting",{"2":{"165":1,"173":1}}],["nested",{"2":{"0":1,"62":2,"64":5,"165":1,"173":1,"178":3,"181":16}}],["neuroplasticity",{"2":{"112":2}}],["nexample",{"2":{"106":1}}],["next",{"0":{"8":1},"2":{"21":1,"51":1,"52":1,"85":1,"105":2,"151":14,"158":1,"177":2,"181":3}}],["nearest",{"2":{"87":2,"178":2}}],["near",{"2":{"56":1}}],["news",{"2":{"178":2}}],["newline",{"2":{"67":3,"178":4,"181":2}}],["newlines",{"2":{"66":1,"67":2,"88":1,"178":3}}],["new",{"2":{"12":2,"24":2,"31":1,"52":8,"60":3,"64":2,"72":1,"73":1,"74":1,"83":1,"85":1,"93":1,"95":1,"103":1,"105":1,"115":2,"116":1,"128":1,"129":1,"150":1,"151":1,"166":1,"167":1,"177":8,"178":18,"181":5}}],["necessary>",{"2":{"158":1}}],["necessary",{"2":{"10":1,"23":1,"27":1,"41":1,"49":1,"52":2,"56":1,"63":1,"90":1,"91":1,"97":1,"104":1,"140":1,"150":1,"177":1,"178":13}}],["needing",{"2":{"118":1}}],["needs",{"2":{"52":1,"100":1,"106":1,"128":1,"140":1,"177":1,"178":1}}],["needed>",{"2":{"158":1}}],["needed",{"2":{"10":1,"19":1,"21":1,"49":1,"51":1,"64":1,"86":1,"104":1,"115":2,"116":2,"138":1,"140":1,"169":1,"177":2,"178":5,"181":1}}],["need",{"2":{"3":1,"4":2,"5":1,"7":1,"10":2,"11":2,"28":1,"32":1,"37":1,"39":1,"42":1,"51":1,"52":1,"54":1,"57":1,"58":3,"62":1,"64":1,"66":1,"67":1,"74":1,"75":1,"77":1,"78":1,"84":1,"86":2,"87":1,"93":2,"101":2,"104":2,"106":4,"128":1,"129":1,"130":1,"150":1,"151":1,"152":1,"164":1,"165":1,"167":1,"169":1,"172":1,"173":1,"177":1,"178":25,"181":3}}],["noprocessor",{"2":{"178":1,"181":4}}],["nopostprocessor",{"2":{"64":2,"178":1,"181":6}}],["noembedder",{"2":{"178":1,"181":3}}],["noisy",{"2":{"116":1}}],["noise",{"2":{"2":1}}],["noschema",{"2":{"90":3,"105":1,"178":3}}],["noreranker",{"2":{"178":1,"181":4}}],["norephraser",{"2":{"178":1,"181":5}}],["norefiner",{"2":{"64":3,"178":1,"181":7}}],["normal",{"2":{"178":7}}],["normalization",{"2":{"47":1}}],["normalizes",{"2":{"181":1}}],["normalized",{"2":{"16":1,"66":1,"67":1,"178":3}}],["normalize",{"2":{"16":2,"47":2,"67":2,"178":8,"181":3}}],["norm",{"2":{"67":2,"178":2}}],["nodes",{"2":{"52":1,"64":5,"177":4,"181":15}}],["node",{"2":{"52":5,"64":3,"177":31,"178":4,"181":38}}],["nods",{"2":{"41":2}}],["nomic",{"2":{"31":2}}],["now",{"2":{"23":1,"24":1,"26":1,"32":1,"41":1,"52":2,"58":1,"77":1,"81":1,"86":1,"87":1,"89":1,"106":1,"177":3,"178":6,"181":1}}],["non",{"2":{"11":1,"21":1,"51":1,"52":1,"84":1,"177":1,"178":13,"181":2}}],["none",{"2":{"4":1,"21":1,"51":1,"64":2,"112":1,"113":1,"118":1,"136":2,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"172":1,"173":1,"181":3}}],["no",{"2":{"10":1,"15":1,"20":1,"21":1,"51":1,"52":5,"58":3,"64":3,"104":1,"105":2,"128":1,"130":1,"136":2,"151":1,"158":1,"177":6,"178":15,"181":20}}],["notfound",{"2":{"177":1}}],["notagfilter",{"2":{"178":1,"181":6}}],["notagger",{"2":{"64":2,"178":1,"181":10}}],["notation",{"2":{"52":1,"177":1}}],["notification",{"2":{"76":1}}],["notion",{"2":{"49":1}}],["notice",{"2":{"21":3,"22":1,"34":1,"51":2,"52":2,"58":1,"60":1,"62":2,"85":2,"86":1,"89":1,"95":1,"103":1,"105":1,"106":1,"177":2,"178":6,"181":1}}],["nothing",{"2":{"6":1,"7":1,"12":1,"19":4,"31":1,"52":19,"64":9,"73":1,"86":1,"90":1,"106":4,"115":2,"116":2,"150":1,"156":1,"177":24,"178":101,"181":51}}],["not",{"2":{"1":1,"5":1,"7":3,"10":3,"11":1,"12":2,"19":1,"22":1,"23":1,"24":2,"27":1,"32":1,"35":2,"36":2,"41":1,"42":2,"43":1,"49":1,"52":21,"55":1,"60":1,"64":1,"67":5,"69":1,"71":2,"72":2,"73":2,"75":2,"76":1,"78":1,"83":1,"85":1,"86":4,"88":1,"93":3,"97":1,"104":3,"106":9,"110":1,"115":1,"116":4,"118":1,"119":3,"124":1,"126":1,"128":2,"139":1,"150":5,"151":1,"152":1,"164":1,"165":1,"166":2,"167":2,"169":2,"173":1,"175":1,"177":23,"178":79,"179":1,"180":2,"181":11}}],["notes",{"2":{"52":2,"64":4,"67":2,"150":4,"151":1,"160":6,"162":7,"177":5,"178":7,"181":8}}],["notexist",{"2":{"21":1,"51":1,"52":2,"177":2}}],["noteworthy",{"2":{"10":1,"64":1,"181":1}}],["note",{"2":{"0":1,"1":2,"6":1,"7":4,"19":1,"21":1,"23":1,"24":1,"27":1,"30":1,"31":1,"37":1,"42":2,"51":1,"52":2,"63":1,"64":1,"69":1,"75":1,"87":1,"103":1,"105":1,"106":1,"158":1,"177":4,"178":24,"180":1,"181":3}}],["pwd",{"2":{"178":2}}],["pct",{"2":{"169":3}}],["photos",{"2":{"176":1}}],["phrase",{"2":{"156":1}}],["phrasings",{"2":{"124":1}}],["phase",{"2":{"63":3,"64":1,"181":1}}],["phases",{"2":{"60":1}}],["python",{"2":{"43":1,"58":1,"166":1,"167":1,"178":2}}],["pkgdir",{"2":{"24":1}}],["pkg",{"2":{"24":2,"32":2,"52":1,"73":1,"94":2,"178":2}}],["png",{"2":{"20":2,"43":2,"178":10}}],["p",{"2":{"18":2,"86":4,"177":2,"178":5}}],["plots",{"2":{"112":2}}],["plural",{"2":{"89":1}}],["plus",{"2":{"17":2,"86":2,"178":4}}],["please",{"2":{"24":1,"73":1,"75":2,"119":1,"175":1,"177":1,"178":1}}],["plausible",{"2":{"169":2}}],["plain",{"2":{"158":2,"181":1}}],["plaintextblog",{"2":{"175":1}}],["plaintextexplain",{"2":{"169":1}}],["plaintextextract",{"2":{"113":1}}],["plaintextnotes",{"2":{"160":1,"162":1}}],["plaintextuser",{"2":{"134":1,"136":1,"158":1}}],["plaintextusing",{"2":{"24":1}}],["plaintextoriginal",{"2":{"125":1}}],["plaintexthere",{"2":{"124":1,"126":1}}],["plaintextquery",{"2":{"123":1}}],["plaintextwrite",{"2":{"122":1}}],["plaintextwe",{"2":{"115":1,"116":1}}],["plaintextignore",{"2":{"128":1}}],["plaintexti",{"2":{"110":1}}],["plaintextyour",{"2":{"175":1}}],["plaintextyou",{"2":{"110":1,"112":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"134":1,"135":1,"136":1,"142":1,"143":1,"145":1,"148":1,"155":1,"157":1,"159":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"176":1}}],["plaintextact",{"2":{"108":1,"115":1,"116":1,"138":1,"139":1,"140":1,"150":1,"151":1,"156":1,"158":1,"160":1,"162":1}}],["plaintextaimessage",{"2":{"12":1}}],["plaintext2",{"2":{"90":3,"105":2}}],["plaintext>",{"2":{"12":1}}],["plaintext",{"2":{"11":1,"58":1,"95":2,"96":1,"108":1,"112":1,"113":1,"118":1,"119":1,"120":1,"128":1,"129":2,"130":2,"132":2,"135":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":2,"148":1,"150":1,"151":1,"152":1,"154":1,"155":1,"156":1,"157":1,"159":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1}}],["placing",{"2":{"128":1,"129":1}}],["places",{"2":{"106":1,"112":1}}],["placeholder",{"2":{"24":1,"64":1,"87":1,"103":1,"105":1,"135":1,"142":1,"143":1,"145":1,"148":1,"178":6,"181":1}}],["placeholders",{"0":{"96":1},"2":{"13":2,"24":4,"98":1,"103":1,"105":4,"106":2,"108":2,"110":2,"112":2,"113":2,"115":2,"116":2,"118":2,"119":2,"120":2,"122":2,"123":2,"124":2,"125":2,"126":2,"128":2,"129":2,"130":2,"132":2,"134":2,"135":1,"136":2,"138":2,"139":2,"140":2,"142":1,"143":1,"145":1,"147":2,"148":1,"150":2,"151":2,"152":2,"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":3,"171":2,"172":2,"173":2,"175":2,"176":2,"178":8}}],["place",{"2":{"21":1,"52":1,"60":1,"100":1,"151":1,"177":2,"178":1}}],["platform",{"2":{"75":1,"178":1}}],["plant",{"2":{"18":2,"86":1,"178":8}}],["plan",{"2":{"16":1,"23":1,"75":1,"151":1,"178":2}}],["playful",{"2":{"175":1}}],["plays",{"2":{"151":1}}],["playing",{"2":{"150":1}}],["play",{"2":{"8":1,"21":1,"51":1,"52":2,"177":2}}],["pprint",{"2":{"10":1,"57":2,"58":1,"64":4,"178":11,"181":12}}],["pesona",{"2":{"160":1}}],["penicillin",{"2":{"118":2}}],["perched",{"2":{"178":1}}],["permanently",{"2":{"178":1}}],["permanent",{"2":{"178":1}}],["permutation",{"2":{"178":7,"181":12}}],["persistent",{"2":{"178":1}}],["persistently",{"2":{"84":1}}],["persist",{"2":{"178":1}}],["persists",{"2":{"79":1}}],["personality",{"2":{"178":1}}],["personally",{"2":{"90":1}}],["personal",{"2":{"83":1}}],["persona",{"0":{"149":1},"1":{"150":1,"151":1,"152":1},"2":{"24":1,"147":1,"148":1,"159":1,"160":4,"162":1,"178":5}}],["personas",{"2":{"24":1}}],["person",{"2":{"7":2,"19":1,"178":6}}],["periods",{"2":{"181":1}}],["period",{"2":{"74":1}}],["perfectly",{"2":{"119":1}}],["perfect",{"2":{"67":1,"106":1,"122":1,"178":3}}],["performance",{"2":{"14":1,"58":2,"125":1,"140":1,"166":1,"167":1,"178":1,"181":2}}],["perform",{"2":{"7":1}}],["per",{"2":{"64":1,"74":5,"77":3,"106":4,"112":1,"177":1,"178":9,"181":4}}],["perhaps",{"2":{"41":1}}],["perplexity",{"2":{"23":1,"27":1}}],["people",{"2":{"7":4,"96":1,"150":1,"178":2}}],["punctuation",{"2":{"181":2}}],["push",{"2":{"178":4}}],["puppy",{"2":{"156":1}}],["pure",{"2":{"124":1}}],["purposes",{"2":{"90":1,"105":1}}],["purpose",{"2":{"5":2,"6":1,"7":6,"10":2,"103":1,"104":2,"106":1,"138":2,"160":6,"162":6,"165":1,"173":1,"178":1}}],["published",{"2":{"58":1,"112":1}}],["pull",{"2":{"37":1,"83":2}}],["put",{"2":{"2":1,"52":1,"74":1,"106":1,"177":1,"178":1}}],["pipe",{"2":{"177":1}}],["pipelines",{"2":{"52":1,"177":2,"180":1}}],["pipeline",{"2":{"6":1,"56":1,"58":2,"60":2,"62":1,"64":10,"90":3,"181":16}}],["pinpoint",{"2":{"151":1}}],["pinpointing",{"2":{"128":1}}],["pirate",{"2":{"87":4,"178":6}}],["piece",{"2":{"64":1,"181":3}}],["pieces",{"2":{"2":1,"63":1}}],["picking",{"2":{"142":1}}],["pick",{"2":{"8":1,"52":1,"100":1,"106":1,"134":1,"136":1,"177":1,"178":1}}],["picture",{"2":{"5":2,"6":1,"7":2}}],["pounds",{"2":{"178":1}}],["port",{"2":{"178":6}}],["porsche",{"2":{"86":2,"106":2}}],["pop",{"2":{"177":1}}],["population=",{"2":{"96":1}}],["population",{"2":{"95":1,"96":4}}],["popular",{"2":{"82":1}}],["points",{"2":{"119":1,"128":4,"138":1,"139":1,"150":9,"151":4,"158":1,"159":1,"161":1,"168":1,"175":1,"177":1,"181":1}}],["point",{"2":{"60":1,"64":1,"87":2,"106":1,"118":1,"128":1,"150":2,"151":1,"158":2,"178":2,"181":1}}],["pose",{"2":{"151":1}}],["positive",{"2":{"77":1,"158":1,"165":1,"169":1,"173":1}}],["positions1",{"2":{"181":3}}],["positions3",{"2":{"181":2}}],["positions2",{"2":{"181":5}}],["positions",{"2":{"178":10,"181":32}}],["position",{"2":{"67":1,"178":1,"181":9}}],["pos",{"2":{"67":4,"178":4,"181":1}}],["post",{"2":{"162":2,"175":5,"178":4,"181":1}}],["posts",{"2":{"138":1,"162":1}}],["postorderdfs",{"2":{"52":3,"177":8}}],["postprocessor",{"2":{"64":8,"181":11}}],["postprocessing",{"0":{"47":1},"2":{"47":1,"63":1,"64":1,"181":3}}],["postprocess",{"2":{"45":1,"61":1,"64":3,"178":7,"181":5}}],["possibly",{"2":{"181":1}}],["possible",{"2":{"7":1,"52":1,"67":4,"122":1,"123":2,"150":1,"165":1,"173":1,"176":1,"177":1,"178":6,"181":4}}],["possess",{"2":{"12":1}}],["possessions",{"2":{"12":1,"35":1}}],["powerful",{"2":{"15":1,"21":1,"52":1,"56":1,"89":1,"106":2,"124":1,"148":1,"177":1,"178":1,"181":1}}],["powered",{"2":{"14":1,"96":1}}],["power",{"2":{"12":1,"112":1}}],["poor",{"2":{"4":1}}],["potentially",{"2":{"63":1,"64":2,"181":2}}],["potential",{"2":{"2":2,"52":1,"63":1,"125":1,"169":1,"177":2}}],["pt",{"2":{"1":1,"15":2,"22":2,"23":3,"24":6,"25":1,"26":2,"27":1,"28":1,"29":4,"30":2,"31":2,"32":1,"35":2,"37":5,"39":1,"41":2,"42":6,"47":1,"52":6,"64":10,"81":1,"84":5,"87":2,"89":2,"90":4,"105":12,"106":3,"177":19,"178":65,"181":30}}],["palm",{"2":{"178":1}}],["packed",{"2":{"181":8}}],["pack",{"2":{"178":1,"181":9}}],["packages",{"2":{"13":2,"24":2,"52":1,"58":1,"112":1,"166":1,"167":1,"178":4,"180":1,"181":2}}],["package",{"2":{"1":1,"2":1,"10":1,"24":10,"32":1,"37":1,"52":1,"56":1,"73":1,"94":1,"97":2,"100":1,"104":1,"112":1,"177":1,"178":9,"181":5}}],["payout",{"2":{"169":1}}],["payload",{"2":{"106":1}}],["paying",{"0":{"77":1},"2":{"77":1}}],["pay",{"2":{"74":1,"77":3}}],["painting",{"2":{"67":1,"178":1}}],["pair",{"0":{"5":1,"6":1},"2":{"178":2,"181":2}}],["pairs",{"0":{"4":1},"2":{"3":1,"6":1,"57":1,"64":3,"178":1,"181":3}}],["padding",{"2":{"67":1,"178":6,"181":1}}],["padawan",{"2":{"12":1,"35":1,"178":1}}],["pauses",{"2":{"41":1}}],["paper",{"2":{"21":2,"52":2,"123":1,"128":1,"177":2,"181":1}}],["page",{"2":{"8":1,"24":1,"32":1,"47":1,"71":1,"72":1,"93":1,"178":2}}],["pages",{"2":{"2":3,"11":1,"176":1}}],["paris",{"2":{"95":1,"181":3}}],["parents",{"2":{"177":1}}],["parent",{"2":{"64":1,"91":1,"177":4,"178":16,"181":41}}],["param2",{"2":{"181":1}}],["param1",{"2":{"181":1}}],["parameter",{"2":{"64":1,"105":1,"106":3,"177":1,"178":5,"181":5}}],["parameters",{"2":{"2":1,"6":2,"7":3,"10":2,"52":1,"64":16,"104":2,"106":5,"177":3,"178":7,"181":29}}],["paragraphs",{"2":{"67":2,"88":1,"178":2}}],["paragraph",{"2":{"67":3,"88":1,"178":3,"181":2}}],["parallelism",{"2":{"58":1}}],["parallel",{"2":{"52":1,"58":7,"64":1,"177":1,"181":6}}],["paralellize",{"2":{"46":1}}],["parts",{"2":{"57":1,"139":1,"151":1,"177":1,"178":1}}],["particular",{"2":{"64":1,"65":1,"169":1,"178":1,"181":1}}],["particularly",{"2":{"52":1,"67":2,"142":1,"143":1,"145":1,"177":2,"178":4}}],["partially",{"2":{"178":1}}],["partial",{"2":{"24":2,"58":1,"90":2,"178":2,"181":2}}],["part",{"2":{"12":1,"52":1,"63":2,"64":2,"150":2,"177":1,"178":4,"181":2}}],["parseable",{"2":{"86":2}}],["parses",{"2":{"52":1,"178":1}}],["parser",{"2":{"52":1,"178":1}}],["parse",{"2":{"20":1,"52":2,"77":1,"177":1,"178":4}}],["parsed",{"2":{"8":1,"52":6,"106":1,"178":8}}],["parsing",{"2":{"7":1,"19":1,"52":6,"177":1,"178":7}}],["patience",{"2":{"41":1}}],["pathways",{"2":{"165":1,"173":1}}],["path=",{"2":{"20":1,"43":1,"178":5}}],["path",{"2":{"12":1,"35":2,"41":1,"43":2,"178":33}}],["paths",{"2":{"4":1,"64":4,"178":2,"181":6}}],["patterns",{"2":{"178":3}}],["pattern",{"2":{"1":1,"11":1,"178":4}}],["past",{"2":{"85":2,"128":5,"177":2,"178":1}}],["paste",{"2":{"2":1}}],["passage",{"2":{"122":3,"123":3,"181":2}}],["passages",{"2":{"110":7,"181":1}}],["passtroughtagger",{"2":{"64":1,"181":1}}],["passthroughtagger",{"2":{"64":3,"178":1,"181":6}}],["passthrough",{"2":{"63":1,"178":1,"181":3}}],["pass",{"2":{"52":1,"60":1,"62":3,"64":4,"85":1,"177":1,"178":9,"181":22}}],["passes",{"2":{"21":1,"51":1,"181":4}}],["passed",{"2":{"6":1,"7":4,"52":2,"58":1,"60":2,"64":9,"86":1,"177":8,"178":6,"181":9}}],["passing",{"0":{"62":1},"2":{"0":1,"52":1,"177":1}}],["pragmatic",{"2":{"138":1,"139":1,"140":1}}],["practics",{"2":{"178":1}}],["practically",{"2":{"177":1}}],["practical",{"2":{"96":1,"106":1,"159":1,"161":1,"168":1,"178":1,"181":1}}],["practices",{"2":{"58":6,"64":1,"140":1,"181":6}}],["practice",{"2":{"4":1,"7":1,"105":1}}],["pristine",{"2":{"178":1}}],["primary",{"2":{"178":1}}],["pricing",{"2":{"77":1}}],["price",{"2":{"77":1}}],["privacy",{"0":{"71":1},"2":{"69":1}}],["principles",{"2":{"60":1}}],["printed",{"2":{"64":1,"181":4}}],["printstyled",{"2":{"181":1}}],["prints",{"2":{"52":1,"64":1,"177":1,"178":1,"181":3}}],["println",{"2":{"52":5,"177":2,"178":7}}],["print",{"2":{"24":1,"49":3,"52":6,"58":1,"64":4,"67":1,"177":8,"178":19,"181":20}}],["printing",{"2":{"10":1,"57":1,"58":2,"178":1,"181":1}}],["priority",{"2":{"178":1}}],["prioritizing",{"2":{"142":1,"143":1,"145":1}}],["prioritize",{"2":{"112":1,"118":1,"151":1,"165":1,"166":1,"167":1,"173":1,"177":2}}],["prior",{"2":{"37":1,"178":1,"181":1}}],["pr",{"2":{"24":1}}],["prettify",{"2":{"181":1}}],["pretty",{"2":{"10":1,"52":1,"57":1,"58":2,"64":3,"90":1,"177":1,"178":5,"181":7}}],["predicts",{"2":{"169":1}}],["prediction",{"2":{"169":6}}],["predictions",{"2":{"169":2}}],["prerequisites",{"0":{"93":1}}],["pre",{"2":{"90":1,"103":1,"178":2}}],["preprocessor",{"2":{"181":2}}],["preprocessed",{"2":{"181":1}}],["preprocess",{"2":{"178":1,"181":4}}],["prepayment",{"2":{"93":1}}],["preparing",{"2":{"118":1}}],["prepare",{"2":{"61":1,"62":1,"64":1,"181":2}}],["prepared",{"2":{"52":1,"177":1}}],["preparation",{"2":{"60":1,"63":1,"181":11}}],["prepend",{"2":{"85":1}}],["prepended",{"2":{"52":1,"178":2}}],["prefences",{"2":{"178":1}}],["prefer",{"2":{"46":1,"67":2,"90":1,"156":1,"166":1,"167":1,"178":2}}],["preferencesfor",{"2":{"178":1}}],["preferences",{"0":{"79":1},"2":{"23":2,"26":2,"42":1,"73":1,"79":3,"84":2,"178":38}}],["preference",{"2":{"0":1,"178":5}}],["prefix",{"2":{"52":3,"178":5}}],["preorderdfs",{"2":{"52":1,"177":3}}],["precedence",{"2":{"150":1,"154":1,"178":1}}],["preceding",{"2":{"2":1,"181":1}}],["precision",{"2":{"124":1,"150":1,"176":1}}],["precisely",{"2":{"150":2,"154":1,"158":1,"164":1}}],["precise",{"2":{"24":3,"103":1,"105":2,"148":1,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1}}],["precompile",{"2":{"73":1}}],["precompiled",{"2":{"73":1}}],["precompilation",{"2":{"73":3}}],["present",{"2":{"124":1,"151":1,"152":1,"178":4}}],["preserve",{"2":{"67":1,"178":1,"181":1}}],["preserving",{"2":{"67":2,"178":2}}],["preset",{"2":{"0":1,"178":3}}],["press",{"2":{"24":2}}],["prev",{"2":{"181":1}}],["previously",{"2":{"67":1,"87":1,"88":1,"103":1,"128":1,"178":1,"181":3}}],["previous",{"2":{"24":1,"52":4,"85":1,"95":1,"101":2,"115":1,"116":1,"128":2,"150":1,"154":1,"177":5,"178":5}}],["previews",{"2":{"178":2}}],["preview",{"2":{"13":2,"15":2,"24":3,"87":2,"177":3,"178":10}}],["prevent",{"2":{"11":1,"76":1,"178":1}}],["proxy",{"2":{"177":1}}],["proposed",{"2":{"177":1}}],["propertynames",{"2":{"178":5}}],["property",{"2":{"178":5,"181":6}}],["properties",{"2":{"52":2,"91":1,"106":3,"177":1,"178":2,"181":1}}],["proper",{"2":{"52":1,"177":1,"178":1,"181":3}}],["properly",{"2":{"8":1}}],["professional",{"2":{"138":1,"158":1}}],["proficient",{"2":{"24":2}}],["project",{"2":{"87":2,"89":1,"178":1}}],["projects",{"2":{"79":1}}],["prototyping",{"2":{"87":1}}],["programming",{"2":{"58":2,"140":1,"162":1}}],["programmatically",{"2":{"52":1,"178":1}}],["programmer",{"2":{"13":1,"24":4,"102":1,"140":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"171":1,"172":1,"173":1,"178":2}}],["program",{"2":{"52":2,"86":2,"177":2}}],["promising",{"2":{"52":1,"177":1}}],["prompting",{"2":{"178":1}}],["promptingtools",{"2":{"0":2,"1":4,"10":2,"12":1,"13":2,"15":2,"19":1,"21":1,"22":1,"23":4,"24":11,"25":3,"26":3,"27":1,"28":1,"29":1,"30":1,"31":1,"32":4,"37":3,"45":2,"46":1,"47":1,"48":2,"52":13,"53":1,"55":1,"56":2,"58":1,"64":6,"65":1,"66":1,"67":7,"73":5,"78":1,"79":3,"81":3,"82":1,"84":1,"85":4,"86":1,"87":5,"88":1,"89":1,"90":8,"91":3,"93":1,"94":4,"97":1,"104":1,"105":6,"106":2,"177":72,"178":518,"179":4,"180":3,"181":281}}],["promptengineerfortask",{"0":{"148":1}}],["prompts",{"0":{"12":1,"13":1,"35":1,"41":1,"101":1},"2":{"12":1,"13":2,"14":1,"17":2,"24":5,"74":1,"75":1,"98":2,"101":1,"103":2,"178":8}}],["prompt",{"0":{"87":1,"90":1,"103":1},"2":{"10":2,"17":3,"23":2,"24":2,"27":2,"31":2,"36":1,"42":3,"52":3,"60":1,"74":2,"84":2,"86":2,"87":3,"90":3,"91":1,"95":1,"96":1,"98":1,"101":1,"103":2,"104":2,"106":8,"108":2,"110":2,"112":2,"113":2,"115":2,"116":2,"118":2,"119":2,"120":3,"122":2,"123":2,"124":2,"125":2,"126":2,"128":2,"129":2,"130":2,"132":2,"134":2,"135":2,"136":2,"138":2,"139":2,"140":2,"142":3,"143":3,"145":2,"147":5,"148":9,"150":3,"151":3,"152":1,"154":1,"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":2,"171":3,"172":3,"173":3,"175":3,"176":2,"177":3,"178":241,"181":3}}],["prob",{"2":{"178":4}}],["probabilities",{"2":{"178":1}}],["probability",{"2":{"169":4,"178":2}}],["probably",{"2":{"1":1,"11":2}}],["problems",{"2":{"67":2,"128":1,"164":1,"166":1,"167":1,"172":1,"178":2}}],["problem",{"2":{"41":1,"140":1,"164":1,"166":1,"167":1}}],["produce",{"2":{"36":1}}],["production",{"2":{"180":1}}],["product",{"2":{"7":1,"16":1,"67":3,"178":5}}],["processed",{"2":{"67":1,"178":2,"181":2}}],["processes",{"2":{"64":1,"67":1,"177":1,"178":1,"181":1}}],["processor=rt",{"2":{"64":1,"181":1}}],["processor",{"2":{"64":11,"181":24}}],["process",{"2":{"21":1,"51":1,"64":2,"65":1,"74":2,"86":2,"89":2,"124":1,"126":1,"177":4,"178":7,"181":8}}],["processing",{"2":{"8":1,"58":2,"64":1,"67":1,"86":1,"95":1,"105":1,"177":1,"178":5,"181":1}}],["pro",{"2":{"14":1,"32":1,"33":1,"72":1,"95":1,"96":2,"178":2}}],["provide",{"2":{"2":2,"4":1,"5":2,"6":1,"7":2,"10":4,"12":1,"18":1,"19":2,"21":1,"23":2,"26":2,"30":1,"35":1,"37":1,"43":1,"51":2,"52":11,"54":1,"57":1,"58":3,"60":1,"62":1,"64":5,"69":1,"73":1,"85":1,"87":1,"96":1,"100":1,"101":1,"103":2,"104":3,"106":6,"110":1,"112":1,"113":2,"115":3,"116":3,"118":1,"120":1,"124":1,"128":3,"136":1,"138":3,"139":4,"140":2,"147":1,"150":2,"156":1,"158":1,"160":1,"162":1,"177":16,"178":49,"181":12}}],["provides",{"2":{"2":1,"42":1,"48":1,"56":1,"65":1,"67":1,"112":1,"118":1,"151":1,"165":1,"166":1,"167":1,"173":1,"177":3,"178":3,"181":2}}],["provided",{"2":{"2":1,"7":1,"10":3,"15":1,"17":2,"20":1,"21":2,"24":2,"31":1,"49":1,"51":2,"52":7,"56":1,"58":2,"60":1,"63":3,"64":10,"66":1,"67":2,"87":1,"104":3,"105":1,"106":8,"108":2,"112":2,"113":2,"115":1,"116":1,"118":4,"119":9,"120":2,"122":2,"123":1,"125":1,"128":2,"130":1,"134":1,"135":3,"136":2,"138":1,"140":3,"142":1,"143":1,"145":1,"150":1,"152":2,"154":1,"156":2,"158":1,"160":1,"162":1,"164":2,"165":1,"169":2,"172":1,"173":2,"175":1,"176":1,"177":14,"178":86,"181":41}}],["provider",{"2":{"0":4,"27":2,"90":2,"99":1,"100":1,"105":1,"106":2}}],["providers",{"0":{"0":1,"99":1},"2":{"0":1,"23":1,"27":1,"64":1,"90":1,"98":2,"99":2,"106":1,"178":2,"181":4}}],["providing",{"0":{"43":1},"2":{"0":1,"27":1,"28":1,"31":1,"43":1,"49":2,"64":2,"151":1,"177":2,"178":1,"181":2}}],["v3",{"2":{"181":3}}],["vocab",{"2":{"181":10}}],["vocabulary",{"2":{"64":1,"124":1,"181":8}}],["voyage",{"2":{"178":4}}],["voyager",{"2":{"70":1}}],["v2",{"2":{"37":1,"64":1,"181":1}}],["v1",{"2":{"28":1,"30":1,"31":1,"73":2,"178":8,"181":2}}],["v0",{"2":{"28":1,"106":1}}],["vcat",{"2":{"12":1}}],["vscodedisplay",{"2":{"13":2,"24":2,"178":4}}],["vscode",{"2":{"11":1,"13":1,"24":1,"178":2}}],["vs",{"2":{"10":1,"52":2,"57":1,"64":1,"67":1,"98":1,"177":2,"178":1,"181":2}}],["vidid",{"2":{"178":2}}],["video",{"2":{"150":3,"151":1}}],["videos",{"2":{"150":2,"151":2}}],["vibrant",{"2":{"67":1,"178":2}}],["visible",{"2":{"176":1}}],["visits",{"2":{"177":6}}],["visit",{"2":{"75":1}}],["vision",{"2":{"10":1,"104":1,"178":4}}],["visualize",{"2":{"178":1}}],["visualization",{"2":{"58":1}}],["visual",{"0":{"174":1},"1":{"175":1,"176":1},"2":{"72":1,"93":1}}],["viewers",{"2":{"178":2}}],["view",{"2":{"52":1,"177":1,"178":2,"181":9}}],["via",{"0":{"79":1},"2":{"2":1,"6":1,"12":1,"16":1,"20":1,"23":2,"26":2,"28":1,"42":1,"52":2,"58":1,"60":1,"63":1,"64":2,"66":1,"73":1,"83":1,"93":1,"99":1,"106":3,"108":1,"115":1,"116":1,"135":1,"142":1,"143":1,"145":1,"177":2,"178":20,"181":9}}],["vect",{"2":{"181":2}}],["vectorstore",{"2":{"126":1}}],["vectors",{"2":{"64":1,"178":3,"181":5}}],["vectorized",{"2":{"7":1}}],["vector",{"2":{"4":1,"13":2,"16":1,"19":2,"24":3,"31":1,"45":4,"47":1,"52":3,"58":1,"61":1,"64":18,"67":13,"85":1,"86":1,"87":4,"89":1,"90":4,"91":1,"100":1,"103":1,"105":4,"106":1,"177":5,"178":144,"181":81}}],["ve",{"2":{"37":1,"42":1,"74":1,"83":1,"105":1}}],["vegetable",{"2":{"17":1,"178":2}}],["verification",{"2":{"181":1}}],["verify",{"2":{"178":1}}],["versus",{"2":{"181":1}}],["version=",{"2":{"87":1,"178":1}}],["versions",{"2":{"73":1,"91":1}}],["version",{"2":{"7":1,"13":2,"24":1,"42":1,"51":1,"52":1,"58":1,"64":1,"73":1,"83":1,"87":1,"96":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":2,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":2,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":1,"178":9,"181":3}}],["verbatim",{"2":{"152":3,"154":1}}],["verbosity",{"2":{"52":2,"64":1,"177":4,"181":2}}],["verbose=2",{"2":{"177":1}}],["verbose=true",{"2":{"64":1,"181":1}}],["verbose=false",{"2":{"52":1,"177":1}}],["verbose",{"2":{"4":1,"6":1,"7":2,"10":1,"13":1,"21":1,"51":1,"52":6,"64":16,"104":1,"177":7,"178":30,"181":65}}],["very",{"2":{"10":1,"18":2,"21":1,"66":1,"74":1,"83":1,"104":1,"119":2,"159":1,"161":1,"164":1,"166":1,"167":1,"168":1,"172":1,"178":2,"181":1}}],["vararg",{"2":{"178":2}}],["varying",{"2":{"178":1}}],["variety",{"2":{"23":1,"26":1,"138":1}}],["various",{"0":{"9":1},"1":{"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1},"2":{"52":1,"60":1,"96":1,"168":1,"177":1,"181":2}}],["variables",{"2":{"12":1,"13":1,"24":1,"29":1,"52":2,"73":1,"78":1,"87":1,"90":1,"94":1,"95":1,"96":1,"112":1,"166":1,"167":1,"178":33}}],["variable",{"0":{"78":1},"2":{"0":1,"30":1,"31":1,"52":2,"54":1,"78":3,"85":1,"90":1,"91":1,"93":3,"112":1,"140":1,"169":2,"178":12}}],["vanilla",{"2":{"106":1}}],["vanished",{"2":{"67":1,"178":1}}],["vast",{"2":{"67":1,"178":1}}],["valid",{"2":{"49":1,"64":1,"177":1,"178":1,"181":3}}],["validated",{"2":{"181":1}}],["validate",{"2":{"21":2,"51":1,"165":1,"173":1}}],["validation",{"0":{"21":1},"2":{"51":1}}],["value2",{"2":{"181":1}}],["value1",{"2":{"181":1}}],["value",{"2":{"7":2,"21":1,"51":1,"52":3,"112":1,"113":1,"166":1,"167":1,"169":2,"177":8,"178":17,"181":2}}],["values",{"2":{"6":1,"7":10,"52":1,"60":1,"112":1,"169":6,"177":1,"178":6,"181":6}}],["valuable",{"2":{"1":1}}],["vllm",{"2":{"0":1,"70":1,"178":1}}],["lucene",{"2":{"181":2}}],["l99",{"2":{"178":1}}],["l912",{"2":{"178":1}}],["l914",{"2":{"178":1}}],["l96",{"2":{"178":1}}],["l116",{"2":{"178":1}}],["l154",{"2":{"178":1}}],["l164",{"2":{"178":1}}],["l123",{"2":{"42":1}}],["lngpt3t",{"2":{"90":1}}],["l244",{"2":{"181":1}}],["l215",{"2":{"181":1}}],["l288",{"2":{"67":1,"178":1}}],["l252",{"2":{"67":1,"178":1}}],["llava",{"2":{"42":1}}],["llamaindex",{"2":{"115":1,"116":1,"123":1,"125":1}}],["llama123",{"2":{"42":3}}],["llama2",{"2":{"37":1,"39":1,"42":2,"83":1,"84":1,"178":2}}],["llama",{"0":{"28":1},"2":{"0":1,"25":1,"28":3,"29":6,"70":2,"98":1,"99":1,"178":6}}],["ll",{"2":{"21":1,"23":1,"26":1,"32":1,"34":1,"51":1,"52":1,"58":1,"75":1,"76":1,"83":1,"97":1,"106":3,"128":1,"177":1,"178":2}}],["llmtextanalysis",{"2":{"87":1}}],["llm",{"2":{"10":3,"11":1,"13":1,"19":1,"22":1,"24":1,"49":2,"52":5,"62":1,"64":2,"77":1,"98":1,"99":1,"104":4,"135":1,"177":7,"178":8,"181":3}}],["llms",{"2":{"10":1,"13":1,"19":1,"64":1,"82":1,"83":1,"101":2,"104":1,"106":1,"110":1,"178":2,"181":2}}],["lt",{"2":{"10":3,"37":1,"55":2,"61":1,"64":4,"67":1,"78":1,"83":1,"87":3,"93":1,"100":2,"101":1,"102":1,"103":3,"104":3,"106":1,"177":1,"178":23,"179":2,"181":30}}],["laptop",{"2":{"106":1}}],["launch",{"2":{"78":1,"83":1}}],["launching",{"2":{"78":1,"93":1}}],["launched",{"2":{"37":1}}],["latter",{"2":{"70":1}}],["latency",{"2":{"181":3}}],["latest",{"2":{"13":1,"15":1,"24":4,"28":1,"58":2,"71":1,"73":1,"83":1,"108":1,"115":1,"116":1,"128":1,"163":1,"171":1,"177":1,"178":8}}],["later",{"2":{"2":1,"4":1,"7":1,"13":1,"47":1,"76":1,"106":1,"178":2,"181":2}}],["lament",{"2":{"67":1,"178":1}}],["langchain",{"0":{"88":1},"2":{"67":3,"88":1,"126":1,"178":3}}],["languages",{"2":{"32":1,"58":1,"178":2}}],["language",{"2":{"10":1,"13":3,"14":3,"21":1,"22":1,"24":6,"49":1,"52":2,"58":6,"98":1,"99":1,"101":1,"104":1,"122":2,"124":1,"126":1,"162":2,"163":2,"164":2,"165":1,"166":2,"167":2,"171":2,"172":2,"173":1,"177":2,"178":5,"181":3}}],["lazily",{"2":{"52":1,"177":1}}],["lazy",{"2":{"10":4,"21":2,"49":5,"51":2,"52":5,"86":1,"104":6,"177":20,"180":1}}],["layers",{"2":{"28":1}}],["largeint",{"2":{"86":3}}],["large",{"2":{"22":1,"30":1,"52":1,"58":1,"64":1,"66":1,"67":1,"98":1,"99":1,"101":1,"165":1,"173":1,"177":2,"178":2,"181":9}}],["larger",{"2":{"7":5,"64":1,"66":1,"67":1,"96":2,"158":1,"178":3,"181":1}}],["last",{"2":{"21":3,"49":3,"51":4,"52":32,"75":1,"85":4,"86":4,"105":1,"106":2,"128":1,"177":36,"178":30,"181":5}}],["lastly",{"2":{"10":1,"52":1,"177":1,"181":1}}],["lake",{"2":{"19":2}}],["labeling",{"2":{"156":2}}],["labeled",{"2":{"152":1}}],["labels",{"2":{"18":1,"156":1,"175":1}}],["label",{"2":{"18":1,"134":3,"156":4,"169":3}}],["lawyer",{"2":{"7":4}}],["led",{"2":{"118":1}}],["leetcode",{"2":{"67":1,"178":1}}],["legend",{"2":{"58":1}}],["legacy",{"2":{"20":1,"178":2}}],["less",{"2":{"52":1,"158":1,"162":1,"177":1}}],["leveraging",{"2":{"178":2}}],["leverages",{"2":{"23":1,"26":1,"54":1,"106":1,"177":1}}],["leverage",{"2":{"13":1,"14":1,"21":1,"52":1,"58":1,"100":1,"106":1,"160":2,"162":2,"177":1,"178":2}}],["level",{"2":{"52":2,"60":3,"62":1,"64":2,"67":1,"162":1,"177":4,"178":10,"181":4}}],["leaves",{"2":{"177":2}}],["leave",{"2":{"162":1}}],["leaving",{"2":{"67":2,"178":2}}],["leadership",{"2":{"152":1}}],["leads",{"2":{"35":1,"178":2}}],["leaf",{"2":{"64":2,"181":2}}],["least",{"2":{"63":1,"64":1,"152":1,"178":3,"181":1}}],["learned",{"2":{"12":1,"105":1}}],["learning",{"2":{"10":1,"49":1,"52":1,"58":1,"104":1,"177":1}}],["lengths",{"2":{"181":1}}],["length=20",{"2":{"67":1,"178":1}}],["length=13",{"2":{"67":1,"178":1}}],["length=10000",{"2":{"67":2,"178":2}}],["length=10",{"2":{"64":1,"67":2,"88":1,"178":2,"181":3}}],["length",{"2":{"7":1,"8":1,"21":2,"24":1,"28":1,"51":2,"52":32,"58":1,"64":4,"66":7,"67":35,"88":1,"138":1,"177":49,"178":47,"181":30}}],["left",{"2":{"6":1,"7":12,"52":1,"177":1,"178":1}}],["letters",{"2":{"175":1,"181":1}}],["letter",{"2":{"128":1,"129":1}}],["let",{"2":{"1":1,"2":2,"3":1,"5":1,"6":2,"7":2,"12":1,"19":1,"20":1,"22":1,"23":1,"24":3,"26":1,"30":1,"32":1,"37":1,"41":2,"51":1,"52":8,"58":3,"62":1,"64":1,"67":1,"74":1,"85":1,"86":2,"87":1,"105":2,"106":7,"128":1,"129":1,"177":9,"178":6,"181":5}}],["lossless",{"2":{"181":1}}],["losses",{"2":{"177":1}}],["losing",{"2":{"41":1}}],["lot",{"2":{"65":1}}],["lower",{"2":{"52":3,"64":1,"67":1,"177":3,"178":1,"181":1}}],["lowercased",{"2":{"181":1}}],["lowercase",{"2":{"20":1,"52":2,"177":2,"178":2,"181":1}}],["low",{"2":{"52":1,"74":1,"177":1,"178":8,"181":5}}],["love",{"2":{"35":1}}],["loads",{"2":{"87":1,"178":5}}],["loading",{"2":{"64":1,"178":1,"181":1}}],["loaded",{"2":{"24":1,"78":1,"178":2,"181":2}}],["load",{"2":{"23":1,"24":6,"26":1,"56":1,"87":10,"103":1,"106":1,"178":35,"181":3}}],["longer",{"2":{"112":1,"158":1,"178":1,"181":1}}],["longest",{"2":{"66":6,"67":17,"178":17}}],["long",{"2":{"23":2,"24":1,"26":1,"27":1,"29":1,"52":3,"74":1,"177":4,"178":1}}],["location",{"2":{"19":3,"91":1}}],["localserver",{"2":{"178":1}}],["localserveropenaischema",{"2":{"0":1,"178":5}}],["localpreferences",{"2":{"79":1,"178":2}}],["locally",{"2":{"25":1,"43":1,"64":3,"70":1,"98":1,"99":1,"106":1,"178":2,"181":3}}],["localhost",{"2":{"23":1,"28":1,"62":3,"64":3,"178":8,"181":3}}],["local",{"0":{"37":1},"1":{"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1},"2":{"0":2,"23":1,"43":1,"52":1,"69":1,"73":1,"77":1,"84":1,"177":1,"178":20,"181":1}}],["logprobs",{"2":{"178":1}}],["logged",{"2":{"64":1,"181":1}}],["logging",{"0":{"91":1},"2":{"52":2,"64":5,"177":6,"178":5,"181":16}}],["logical",{"2":{"140":1}}],["logically",{"2":{"140":1}}],["logic",{"2":{"64":5,"67":1,"100":1,"105":1,"140":1,"177":1,"178":8,"181":9}}],["logit",{"2":{"10":1,"18":1,"104":1,"178":12}}],["logo",{"2":{"20":1,"178":2}}],["logs",{"2":{"10":1,"64":2,"104":1,"178":3,"181":4}}],["log",{"2":{"7":1,"11":1,"64":1,"91":2,"178":33,"181":1}}],["loose",{"2":{"181":1}}],["loosely",{"2":{"101":1,"103":1,"128":1}}],["look",{"2":{"64":1,"74":1,"88":1,"105":1,"178":1,"181":2}}],["looking",{"2":{"23":1,"26":1,"58":3,"177":1,"181":1}}],["looks",{"2":{"15":1,"52":1,"63":1,"103":1,"178":4,"181":2}}],["lookups",{"2":{"181":1}}],["lookup",{"2":{"2":2,"8":1,"124":1,"178":2,"181":3}}],["loop",{"2":{"7":1,"24":1,"74":1,"177":2}}],["lifting",{"2":{"106":1}}],["lifecycle",{"2":{"177":1}}],["life",{"2":{"29":1}}],["lightweight",{"2":{"181":1}}],["light",{"2":{"95":1,"106":1,"178":4}}],["libraries",{"2":{"58":1,"166":1,"167":1}}],["library",{"2":{"37":1,"83":1}}],["living",{"2":{"35":1,"178":1}}],["linux",{"2":{"168":3}}],["linuxbashexpertask",{"0":{"168":1}}],["links",{"2":{"178":6}}],["link",{"2":{"24":1,"37":1,"150":1,"178":1}}],["line",{"2":{"11":1,"24":1,"28":2,"78":1,"150":1,"151":1,"178":3,"181":1}}],["lines",{"0":{"2":1},"2":{"2":1,"52":3,"67":1,"178":9,"181":2}}],["linearalgebra",{"2":{"1":2,"16":2,"47":2,"56":1,"178":5,"181":5}}],["limitations",{"2":{"97":1,"178":2}}],["limits",{"0":{"76":1},"2":{"72":1,"74":4,"76":1,"177":1,"178":2}}],["limited",{"2":{"67":1,"169":1,"178":1}}],["limit",{"0":{"74":1},"2":{"14":1,"74":7,"76":4,"106":1,"178":7,"181":6}}],["listened",{"2":{"67":1,"178":1}}],["listed",{"2":{"7":2,"110":2}}],["list",{"2":{"10":1,"24":1,"37":2,"55":4,"57":1,"58":1,"67":1,"83":1,"104":1,"106":1,"128":3,"134":1,"136":1,"139":1,"140":1,"151":2,"178":23,"179":4,"181":12}}],["literate",{"2":{"8":1,"24":1,"47":1}}],["likely",{"2":{"10":2,"74":1,"77":1}}],["like",{"0":{"88":1},"2":{"2":2,"6":1,"7":2,"12":1,"13":1,"19":1,"21":1,"24":2,"25":1,"30":1,"31":1,"32":1,"35":1,"39":1,"42":2,"49":2,"51":1,"52":4,"60":1,"63":1,"64":3,"67":1,"85":1,"86":1,"87":5,"91":4,"96":1,"106":1,"112":1,"157":1,"165":1,"166":1,"167":1,"173":1,"177":5,"178":24,"181":10}}],["kw2",{"2":{"181":2}}],["kw",{"2":{"181":3}}],["kwarg",{"2":{"10":1,"52":1,"60":3,"73":1,"85":1,"104":1,"177":1,"181":4}}],["kwargs`",{"2":{"62":1}}],["kwargs=",{"2":{"20":1,"23":1,"27":1,"28":1,"37":2,"52":3,"58":1,"60":1,"91":1,"104":2,"106":2,"177":3,"178":10,"181":2}}],["kwargs",{"0":{"80":1},"2":{"0":2,"10":3,"21":2,"29":1,"51":2,"52":15,"58":2,"60":2,"62":22,"64":81,"87":1,"90":1,"91":2,"104":3,"106":2,"177":33,"178":151,"179":2,"181":150}}],["king",{"2":{"55":2,"179":2}}],["kinds",{"2":{"7":3}}],["knows",{"2":{"64":1,"100":1,"181":1}}],["knowing",{"2":{"17":1}}],["knowledge",{"2":{"13":1,"15":1,"24":4,"56":2,"108":1,"115":1,"116":1,"159":1,"161":1,"163":1,"168":1,"171":1,"178":2}}],["know",{"2":{"12":1,"23":1,"24":2,"26":1,"30":2,"31":1,"74":1,"86":1,"108":2,"115":2,"116":2,"166":1,"167":1,"178":1}}],["known",{"2":{"10":1,"32":1,"67":1,"88":1,"104":1,"178":4}}],["k=5",{"2":{"181":1}}],["k=5`",{"2":{"181":1}}],["k=100",{"2":{"64":1,"181":1}}],["k=",{"2":{"7":10}}],["k",{"2":{"2":1,"6":2,"7":3,"28":1,"37":1,"62":2,"64":7,"181":29}}],["kept",{"2":{"42":1}}],["keeping",{"2":{"177":1}}],["keeps",{"2":{"6":1,"178":2}}],["keep",{"2":{"2":1,"8":1,"21":1,"27":1,"28":1,"52":1,"112":1,"150":1,"151":1,"154":1,"177":2,"178":1,"181":3}}],["key1",{"2":{"178":1}}],["keylocal",{"2":{"178":1}}],["keypreset",{"2":{"178":1}}],["key=env",{"2":{"23":1,"26":1}}],["keywordsprocessor",{"2":{"64":1,"178":1,"181":6}}],["keywords",{"2":{"64":5,"112":1,"113":2,"124":3,"156":1,"178":1,"181":27}}],["keywordsindexer",{"2":{"64":1,"178":1,"181":4}}],["keyword",{"0":{"62":1,"80":1},"2":{"10":5,"12":1,"14":1,"15":1,"24":2,"43":2,"49":1,"52":5,"60":2,"62":2,"64":11,"74":1,"85":2,"87":1,"96":1,"103":1,"104":5,"113":1,"124":1,"147":1,"177":11,"178":53,"181":18}}],["keys",{"2":{"7":1,"23":1,"27":1,"58":1,"105":1,"106":1,"178":8,"181":10}}],["key",{"0":{"72":1,"73":3,"78":1,"79":1,"98":1},"1":{"99":1,"100":1,"101":1,"102":1,"103":1,"104":1},"2":{"0":3,"6":1,"7":9,"8":1,"23":5,"24":2,"26":2,"27":3,"29":3,"30":1,"31":1,"32":3,"52":2,"54":2,"55":4,"64":2,"72":3,"73":9,"78":10,"79":5,"93":12,"97":1,"98":1,"105":1,"106":2,"122":1,"123":1,"138":1,"142":1,"143":1,"145":1,"150":3,"151":5,"156":1,"166":3,"167":3,"175":2,"177":3,"178":132,"179":5,"181":17}}],["uct",{"2":{"177":12,"178":1}}],["ultimately",{"2":{"86":1}}],["u>",{"2":{"67":1,"178":6,"181":1}}],["u>promptingtools",{"2":{"67":1,"178":6,"181":1}}],["uint16",{"2":{"177":1}}],["uint64",{"2":{"45":2,"181":7}}],["uint8",{"2":{"45":1}}],["utils",{"2":{"67":1,"178":1}}],["utilized",{"2":{"112":1,"178":1}}],["utilizes",{"2":{"0":1}}],["utilizing",{"2":{"58":1}}],["utility",{"2":{"49":2,"66":1,"88":1,"105":1,"151":1,"178":6}}],["utilities",{"0":{"65":1},"1":{"66":1,"67":1},"2":{"21":1,"48":1,"49":2,"51":1,"52":1,"56":1,"64":1,"65":1,"66":1,"67":2,"177":2,"181":2}}],["ut",{"2":{"19":1}}],["unpack",{"2":{"181":4}}],["unhealthy",{"2":{"178":1}}],["unable",{"2":{"178":1}}],["unanswered",{"2":{"67":1,"178":1}}],["unbiased",{"2":{"156":1}}],["unchanged",{"2":{"181":1}}],["unclear",{"2":{"139":2,"181":1}}],["uncommon",{"2":{"124":1}}],["unfortunately",{"2":{"106":2}}],["unwrapping",{"2":{"178":2}}],["unwraps",{"2":{"177":1,"178":1}}],["unwrap",{"2":{"91":1,"177":2,"178":11}}],["unnecessary",{"2":{"88":1,"118":1,"126":1}}],["unexpected",{"2":{"76":1}}],["unexported",{"2":{"48":1,"56":1,"81":1}}],["unlock",{"2":{"104":1}}],["unlike",{"2":{"75":1,"181":1}}],["unless",{"2":{"67":1,"158":2,"166":2,"167":2,"178":2}}],["unspecified",{"2":{"178":6}}],["unspoken",{"2":{"67":1,"178":1}}],["unsuccessfully",{"2":{"52":1,"178":1}}],["unsafe",{"2":{"52":7,"177":2,"178":7}}],["unusable",{"2":{"37":1}}],["un",{"2":{"24":1,"37":1}}],["until",{"2":{"21":3,"51":2,"52":2,"74":1,"177":1,"178":1}}],["unique",{"2":{"64":1,"112":1,"177":1,"178":10,"181":8}}],["universal",{"2":{"52":1,"177":1}}],["union",{"2":{"19":3,"31":1,"52":11,"64":4,"67":1,"106":1,"177":17,"178":80,"181":33}}],["units",{"2":{"181":1}}],["unitrange",{"2":{"45":1}}],["unit",{"2":{"19":2,"77":1,"98":1,"102":1,"128":1,"165":2,"173":2,"178":1,"181":5}}],["unicode",{"2":{"1":2,"56":1,"181":3}}],["unknown",{"2":{"17":3,"135":2,"178":5}}],["underscores",{"2":{"181":1}}],["understood",{"2":{"90":1,"140":1}}],["understandable",{"2":{"119":1,"178":1}}],["understand",{"2":{"49":1,"52":1,"64":1,"97":1,"138":1,"140":1,"150":1,"151":1,"162":1,"178":2,"181":1}}],["understanding",{"0":{"80":1},"2":{"41":1,"97":1,"118":1,"138":1}}],["underlying",{"2":{"10":1,"24":1,"49":1,"52":1,"56":1,"104":1,"106":1,"156":1,"177":2,"178":2,"181":5}}],["under",{"2":{"2":1,"18":1,"23":1,"26":1,"28":1,"49":1,"58":1,"67":1,"87":2,"97":1,"105":2,"106":1,"178":7}}],["updating",{"2":{"178":1}}],["updates",{"2":{"58":1,"177":2,"178":2,"181":1}}],["updated",{"2":{"52":1,"177":4,"178":1}}],["update",{"2":{"20":1,"52":1,"73":1,"177":1,"178":2,"181":1}}],["upto",{"2":{"178":2}}],["upfront",{"2":{"62":1,"64":1,"181":1}}],["uppercase",{"2":{"181":1}}],["uppercased",{"2":{"112":1}}],["upper",{"2":{"52":2,"177":4}}],["uploads",{"2":{"20":1,"178":2}}],["upon",{"2":{"12":1,"52":3,"70":1,"151":1,"177":2,"178":2}}],["up",{"2":{"1":1,"8":1,"11":1,"15":1,"52":2,"54":1,"58":1,"63":1,"72":1,"75":1,"85":1,"86":1,"103":1,"105":1,"106":3,"108":1,"115":1,"116":1,"158":1,"177":3,"178":2,"181":5}}],["usable",{"2":{"98":1,"103":1}}],["usage",{"2":{"21":1,"36":1,"67":1,"71":1,"140":1,"177":1,"178":2}}],["usd",{"2":{"74":1}}],["usually",{"2":{"52":1,"73":1,"103":1,"177":2,"178":4}}],["usual",{"2":{"29":1,"30":2,"31":2}}],["us",{"2":{"10":1,"21":2,"49":2,"51":2,"52":1,"58":1,"71":1,"104":1,"177":1}}],["using",{"0":{"22":1,"23":1,"24":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"47":1,"96":1},"2":{"1":4,"5":1,"7":2,"8":2,"10":1,"23":1,"24":4,"27":1,"37":1,"42":1,"47":1,"56":2,"57":1,"58":4,"63":3,"64":7,"67":6,"81":1,"84":1,"87":1,"88":1,"93":1,"94":2,"104":1,"106":2,"110":1,"112":1,"118":1,"128":1,"151":4,"165":2,"169":1,"172":1,"173":2,"177":8,"178":35,"181":40}}],["uses",{"2":{"10":2,"11":1,"13":1,"28":1,"49":1,"64":1,"88":1,"104":2,"129":1,"178":9,"181":34}}],["useful",{"2":{"10":1,"15":1,"17":1,"21":1,"51":1,"52":4,"64":4,"67":3,"83":1,"104":2,"115":2,"116":1,"142":1,"143":1,"166":1,"167":1,"171":1,"172":1,"173":1,"177":2,"178":14,"181":16}}],["users",{"2":{"162":1,"178":1}}],["user=",{"2":{"87":1,"91":1,"103":1,"178":3}}],["usermessagewithimages",{"2":{"102":1,"178":5}}],["usermessage",{"2":{"10":1,"12":4,"24":5,"35":1,"41":1,"49":1,"52":2,"85":2,"87":2,"90":3,"98":2,"102":2,"103":2,"104":1,"105":2,"177":14,"178":25}}],["user",{"2":{"10":3,"12":2,"13":1,"15":1,"17":1,"24":1,"35":1,"36":1,"41":1,"49":1,"52":10,"56":1,"63":1,"87":3,"90":3,"98":1,"100":1,"102":3,"103":1,"104":3,"105":1,"106":5,"108":1,"110":1,"112":2,"113":1,"115":1,"116":1,"118":2,"119":4,"120":2,"122":2,"123":2,"124":3,"125":1,"126":3,"128":6,"129":2,"130":1,"132":2,"134":3,"135":1,"136":3,"138":10,"139":6,"140":11,"142":4,"143":4,"145":4,"147":5,"148":3,"150":2,"151":2,"154":2,"155":1,"156":2,"157":1,"158":6,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":5,"166":2,"167":2,"168":1,"169":1,"171":1,"172":1,"173":9,"175":1,"176":1,"177":13,"178":48}}],["used",{"2":{"6":2,"7":1,"15":4,"16":1,"17":2,"18":1,"52":2,"64":6,"67":4,"71":2,"85":1,"91":1,"98":1,"128":1,"129":1,"169":1,"177":11,"178":85,"181":25}}],["use",{"2":{"0":1,"1":1,"2":5,"7":2,"8":3,"10":3,"12":2,"13":4,"15":2,"16":1,"17":1,"18":3,"19":2,"20":1,"21":4,"22":2,"23":3,"24":8,"25":1,"26":2,"27":1,"28":1,"29":4,"30":4,"31":4,"32":1,"33":1,"34":1,"37":1,"39":1,"42":1,"43":1,"46":1,"51":4,"52":9,"54":1,"55":1,"56":1,"57":1,"58":1,"60":1,"61":1,"62":1,"63":1,"64":46,"67":7,"69":2,"71":4,"74":1,"77":2,"78":1,"79":1,"81":1,"82":1,"84":2,"85":3,"86":4,"87":6,"89":2,"91":2,"95":3,"96":4,"97":1,"100":1,"104":2,"105":3,"106":6,"128":4,"130":1,"150":9,"151":2,"156":1,"158":3,"159":1,"161":1,"162":1,"164":1,"166":1,"167":1,"168":1,"169":1,"175":1,"177":19,"178":117,"179":1,"181":85}}],["urls",{"2":{"102":1,"178":2}}],["url=env",{"2":{"29":1}}],["url=provider",{"2":{"27":1}}],["url=",{"2":{"23":1,"28":1,"178":2}}],["url",{"2":{"0":3,"10":1,"20":2,"23":1,"27":4,"43":1,"62":3,"64":4,"104":1,"178":43,"179":1,"181":7}}],["rules",{"2":{"181":1}}],["runtime",{"2":{"52":2,"177":2}}],["runs",{"2":{"52":2,"64":1,"73":1,"83":1,"177":1,"178":2,"181":3}}],["running",{"2":{"7":1,"22":2,"23":1,"24":1,"37":1,"58":1,"73":1,"83":3,"177":1,"178":2}}],["run",{"2":{"6":2,"7":3,"10":3,"14":1,"21":5,"22":1,"42":1,"49":3,"51":3,"52":10,"58":1,"61":1,"64":1,"73":1,"78":1,"79":1,"83":1,"86":2,"87":1,"90":5,"93":1,"96":1,"104":4,"106":2,"177":31,"178":52,"181":11}}],["ripple",{"2":{"67":1,"178":1}}],["river",{"2":{"67":1,"178":1}}],["right",{"2":{"7":11,"100":2,"106":2,"142":1,"177":1,"178":1,"181":4}}],["rm",{"2":{"24":1,"73":1}}],["rolls",{"2":{"181":1}}],["role=",{"2":{"178":8}}],["role",{"2":{"23":1,"27":1,"58":1,"90":2,"105":3,"151":1}}],["root",{"2":{"52":3,"64":5,"177":11,"178":1,"181":8}}],["robust",{"2":{"21":1,"69":1,"93":1,"104":1}}],["robustness",{"2":{"13":1,"49":1}}],["row",{"2":{"7":3}}],["rows",{"2":{"6":1,"7":18,"181":4}}],["roughly",{"2":{"98":1,"181":3}}],["routines",{"2":{"64":2,"181":2}}],["routing",{"0":{"18":1},"2":{"18":1,"134":1,"136":1,"178":3}}],["routed",{"2":{"136":1}}],["route",{"2":{"136":1}}],["router",{"2":{"10":1,"104":1,"136":1}}],["routes",{"2":{"0":1}}],["rounds=3",{"2":{"181":1}}],["rounds=5",{"2":{"177":1}}],["rounds",{"2":{"52":1,"106":1,"128":1,"177":18,"181":1}}],["round",{"2":{"7":2,"177":5}}],["raises",{"2":{"178":1}}],["raised",{"2":{"52":1,"152":1,"178":2}}],["rationale",{"2":{"181":2}}],["ratio",{"2":{"175":1,"177":1}}],["rating",{"2":{"6":1,"120":1,"181":3}}],["ratelimit",{"2":{"74":2}}],["rate",{"0":{"74":1},"2":{"74":3,"181":3}}],["rare",{"2":{"73":1}}],["radius",{"2":{"67":1,"178":6,"181":1}}],["raw=true",{"2":{"178":1}}],["raw",{"2":{"52":1,"55":2,"178":1,"179":2}}],["rand",{"2":{"52":2,"178":3,"181":2}}],["random",{"2":{"52":1,"177":2,"178":3}}],["range",{"2":{"30":1,"31":1,"67":1,"178":1}}],["ranked",{"2":{"181":5}}],["rankermodel",{"2":{"181":1}}],["ranker",{"2":{"181":1}}],["rankgptresult",{"2":{"178":1,"181":4}}],["rankgptreranker",{"2":{"178":1,"181":4}}],["rankgpt",{"2":{"110":3,"181":9}}],["rankings",{"2":{"181":2}}],["ranking",{"0":{"109":1},"1":{"110":1},"2":{"8":1,"60":1,"110":1,"178":1,"181":15}}],["rankanswer",{"2":{"7":1}}],["rank",{"2":{"6":1,"110":4,"178":5,"181":40}}],["ranks",{"2":{"2":1,"181":3}}],["ragjuliaqueryhyde",{"0":{"122":1}}],["ragjudgeanswerfromcontextshort",{"0":{"120":1}}],["ragjudgeanswerfromcontext",{"0":{"119":1},"2":{"6":1,"181":2}}],["ragwebsearchrefiner",{"0":{"116":1},"2":{"181":2}}],["ragextractmetadatalong",{"0":{"112":1}}],["ragextractmetadatashort",{"0":{"113":1},"2":{"64":1,"181":4}}],["ragrankgpt",{"0":{"110":1},"2":{"181":1}}],["ragresult",{"2":{"52":3,"58":3,"63":2,"64":6,"178":1,"181":19}}],["ragcreateqafromcontext",{"0":{"118":1},"2":{"64":1,"181":1}}],["ragconfig",{"2":{"58":1,"60":1,"62":1,"64":3,"178":1,"181":10}}],["ragcontext",{"2":{"6":1}}],["ragquerysimplifier",{"0":{"126":1}}],["ragquerykeywordexpander",{"0":{"124":1}}],["ragqueryoptimizer",{"0":{"125":1},"2":{"64":1,"181":3}}],["ragqueryhyde",{"0":{"123":1},"2":{"62":3,"64":1,"181":4}}],["ragdetails",{"2":{"64":1,"181":1}}],["raganswerrefiner",{"0":{"115":1},"2":{"64":2,"181":4}}],["raganswerfromcontext",{"0":{"108":1},"2":{"64":2,"181":4}}],["ragtoolsexperimentalext",{"2":{"181":1}}],["ragtools",{"0":{"1":1,"181":1},"1":{"2":1},"2":{"1":3,"10":1,"56":3,"60":1,"63":1,"64":6,"66":2,"178":137,"180":2,"181":278}}],["rag",{"0":{"1":1,"2":1,"56":1,"59":1,"61":1,"107":1},"1":{"2":1,"57":1,"58":1,"59":1,"60":2,"61":2,"62":3,"63":2,"64":1,"108":1},"2":{"1":3,"2":1,"6":1,"7":2,"8":1,"10":2,"56":3,"57":5,"58":3,"61":1,"63":1,"64":8,"104":1,"108":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"180":1,"181":22}}],["r",{"2":{"2":1,"21":2,"51":2,"52":1,"58":1,"105":1,"177":1,"181":2}}],["rt",{"2":{"1":1,"4":3,"6":1,"56":1,"64":3,"181":21}}],["rewritten",{"2":{"178":2}}],["rejected",{"2":{"175":1,"178":1}}],["reveal",{"2":{"169":1}}],["revisions",{"2":{"139":1}}],["revise",{"2":{"138":3,"139":3,"140":3}}],["revised",{"2":{"125":1,"128":1,"178":2}}],["reviewing",{"2":{"178":2}}],["review",{"2":{"4":1,"8":1,"49":1,"128":1,"129":1,"138":1,"139":1,"140":1,"169":1}}],["reorganization",{"2":{"138":1}}],["reuse",{"2":{"87":1}}],["recipient",{"2":{"178":4}}],["reciprocal",{"2":{"178":2,"181":8}}],["recall",{"2":{"128":1,"166":1,"167":2}}],["recognized",{"2":{"181":1}}],["recognizes",{"2":{"103":1}}],["recommended",{"2":{"178":2}}],["recommendation",{"2":{"67":1,"178":1}}],["recommend",{"2":{"67":2,"88":1,"178":2}}],["recorded",{"2":{"64":1,"178":1,"181":1}}],["recursive=true",{"2":{"73":1}}],["recursively",{"2":{"67":1,"178":1,"181":1}}],["recursivecharactertextsplitter",{"0":{"88":1},"2":{"67":3,"88":1,"178":3}}],["recursive",{"2":{"66":2,"67":8,"88":3,"128":1,"178":11,"181":1}}],["recent",{"2":{"177":2,"178":2}}],["recently",{"2":{"74":1}}],["receive",{"2":{"74":1,"76":1,"178":1,"181":2}}],["received",{"2":{"10":1,"52":1,"86":2,"104":1,"177":1,"178":6}}],["reception",{"2":{"47":1}}],["requested",{"2":{"128":1,"166":1,"167":1,"172":1,"178":1,"181":4}}],["request",{"2":{"74":2,"77":1,"85":2,"86":1,"98":1,"101":1,"103":1,"105":1,"106":3,"128":3,"129":2,"139":4,"140":6,"178":11}}],["requests",{"0":{"75":1},"2":{"55":1,"74":7,"75":3,"178":1,"179":2}}],["requirements",{"2":{"138":1,"139":1,"140":4,"142":1,"143":1,"145":1,"178":1,"181":1}}],["requirement",{"2":{"106":2}}],["required",{"2":{"56":1,"105":2,"106":7,"148":1,"177":1,"178":9,"181":6}}],["require",{"2":{"15":1,"118":1,"178":1}}],["requires",{"2":{"0":1,"29":1,"30":1,"31":1,"64":2,"65":1,"89":1,"122":1,"139":1,"178":8,"181":7}}],["removing",{"2":{"177":2,"181":1}}],["removes",{"2":{"177":1,"178":6}}],["remove",{"2":{"52":5,"67":1,"177":4,"178":16,"181":1}}],["reminder",{"2":{"166":1,"167":1}}],["remaining",{"2":{"74":2}}],["remembers",{"2":{"178":1}}],["remembered",{"2":{"178":1}}],["remember",{"2":{"2":1,"10":1,"24":1,"35":1,"49":1,"73":1,"87":1,"101":2,"104":1,"105":1,"138":1,"139":1,"140":1,"178":4}}],["reducing",{"2":{"64":1,"181":4}}],["reduces",{"2":{"181":2}}],["reduce",{"2":{"64":1,"181":4}}],["red",{"2":{"21":1,"51":1,"52":2,"58":1,"177":2}}],["react",{"2":{"178":1}}],["reach",{"2":{"100":1,"177":1}}],["reaching",{"2":{"67":1,"138":1,"178":1}}],["reasonable",{"2":{"181":3}}],["reasonably",{"2":{"181":1}}],["reason",{"2":{"178":9}}],["reasoning",{"2":{"142":3,"169":1,"178":1}}],["real",{"2":{"177":5,"181":11}}],["really",{"2":{"19":1,"178":4}}],["reader=",{"2":{"181":1}}],["reads",{"2":{"181":2}}],["readme",{"2":{"178":1}}],["readability",{"2":{"138":1}}],["ready",{"2":{"11":1,"83":1,"178":1,"180":1}}],["readtimeout",{"2":{"10":1,"104":1,"178":10}}],["read",{"2":{"4":1,"11":1,"24":1,"58":1,"75":1,"90":1,"106":5,"112":1,"120":1,"128":1,"129":1,"150":1,"152":1,"178":1,"181":1}}],["regarding",{"2":{"142":1,"143":1,"145":1}}],["regards",{"2":{"87":2,"178":2}}],["regardless",{"2":{"7":2}}],["region",{"2":{"32":1,"178":2}}],["regions",{"2":{"32":1,"178":3}}],["registration",{"2":{"29":1}}],["registry",{"2":{"23":1,"26":1,"37":2,"39":1,"42":1,"105":1,"178":29}}],["registers",{"2":{"178":1}}],["registering",{"2":{"178":3}}],["register",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"42":1,"84":2,"91":3,"93":1,"103":1,"178":15,"181":1}}],["registered",{"2":{"23":1,"26":1,"30":1,"31":1,"87":1,"178":1}}],["regenerate",{"2":{"21":1,"51":1}}],["regex",{"2":{"19":1,"24":1,"64":1,"178":2,"181":6}}],["renders",{"2":{"178":3}}],["rendered",{"0":{"90":1},"2":{"90":1,"105":7,"178":2,"181":1}}],["render",{"2":{"13":1,"24":2,"90":6,"98":2,"100":1,"105":6,"178":20}}],["rendering",{"2":{"13":1,"90":4,"100":1,"178":5}}],["refresh",{"2":{"128":1,"178":3}}],["ref",{"2":{"67":1,"178":1}}],["refining",{"2":{"64":2,"181":5}}],["refines",{"2":{"177":1,"181":3}}],["refined",{"2":{"115":3,"116":3,"181":1}}],["refinements",{"2":{"177":1}}],["refinement",{"0":{"114":1},"1":{"115":1,"116":1},"2":{"181":2}}],["refiner",{"2":{"64":13,"181":24}}],["refine",{"2":{"61":1,"63":2,"64":4,"115":6,"116":6,"125":1,"177":1,"178":3,"181":15}}],["reflections",{"2":{"138":1,"139":2,"140":1}}],["reflection",{"2":{"128":1,"129":1,"138":4,"139":4,"140":4}}],["reflecting",{"2":{"67":1,"128":1,"151":1,"178":1}}],["reflects",{"2":{"120":1}}],["reflect",{"2":{"12":1,"138":1,"139":1,"140":1}}],["referring",{"2":{"181":1}}],["referred",{"2":{"7":1,"29":1}}],["refers",{"2":{"10":1,"28":1,"49":1,"104":1,"177":1,"178":2,"181":2}}],["references",{"0":{"52":1,"55":1,"64":1,"67":1},"2":{"52":1,"60":1,"124":1,"177":1,"181":3}}],["reference",{"0":{"177":1,"178":1,"179":1,"180":1,"181":1},"2":{"4":1,"10":1,"80":1,"88":1,"90":1,"118":3,"178":6,"181":12}}],["refer",{"2":{"0":1,"90":1,"128":1,"151":1,"178":6}}],["repetition",{"2":{"118":1}}],["repeats",{"2":{"128":2}}],["repeat",{"2":{"21":1,"51":1,"128":1,"150":1,"151":1,"158":1}}],["repeated",{"2":{"21":1,"51":1,"128":1}}],["repeatedly",{"2":{"10":1,"49":1,"104":1,"177":1}}],["report",{"2":{"178":1}}],["reports",{"2":{"64":1,"138":1,"181":1}}],["reported",{"2":{"36":1,"178":1}}],["rephrasing",{"2":{"64":6,"124":2,"125":1,"181":19}}],["rephrases",{"2":{"125":1,"126":1,"181":2}}],["rephraser",{"2":{"62":7,"64":11,"181":25}}],["rephrased",{"2":{"58":1,"63":1,"64":2,"124":1,"126":1,"181":9}}],["rephrase",{"2":{"8":1,"61":1,"62":2,"63":2,"64":1,"122":1,"123":1,"125":2,"126":1,"178":3,"181":14}}],["representation",{"2":{"181":1}}],["representative",{"2":{"7":1}}],["represented",{"2":{"178":2,"181":8}}],["represents",{"2":{"152":1,"178":3,"181":1}}],["representing",{"2":{"52":1,"64":3,"67":1,"119":1,"178":79,"181":3}}],["reply",{"2":{"52":1,"85":1,"95":1,"138":1,"139":1,"140":1,"177":1,"178":3}}],["repl",{"2":{"24":2,"58":1,"73":3,"81":1,"96":1,"178":1}}],["replaces",{"2":{"181":1}}],["replaced",{"2":{"67":1,"105":1,"178":3,"181":1}}],["replacements",{"2":{"90":1,"178":6}}],["replacement",{"2":{"67":4,"105":1,"178":8}}],["replace",{"2":{"12":1,"64":1,"66":2,"67":3,"90":1,"98":1,"103":2,"105":3,"178":5,"181":2}}],["rescore",{"2":{"181":8}}],["resized",{"2":{"178":4}}],["resize",{"2":{"178":5}}],["reserved",{"2":{"166":1,"167":1,"178":3}}],["reset",{"2":{"74":1,"177":2,"178":1}}],["resets",{"2":{"74":1}}],["researcher",{"2":{"152":1,"156":1}}],["research",{"2":{"58":1,"69":1,"112":1}}],["res",{"2":{"64":1,"181":1}}],["resolutions",{"2":{"178":1}}],["resolution",{"2":{"178":1}}],["resolved",{"2":{"178":1}}],["resolves",{"2":{"128":1}}],["resolve",{"2":{"64":1,"181":4}}],["resources",{"2":{"23":1,"26":1,"58":1,"71":1,"72":1,"76":1,"77":1,"78":2,"93":2}}],["respect",{"2":{"181":1}}],["respective",{"2":{"181":1}}],["respectively",{"2":{"52":1,"60":1,"67":1,"177":2,"178":1}}],["resp",{"2":{"178":2}}],["respond",{"2":{"10":1,"52":2,"85":1,"104":1,"110":1,"125":1,"134":2,"136":2,"177":3}}],["responses",{"0":{"86":1},"2":{"14":1,"24":1,"86":1,"105":1,"139":1,"152":10,"154":2,"177":2,"178":5}}],["response",{"2":{"7":1,"10":5,"49":1,"60":1,"63":5,"64":5,"74":1,"77":1,"85":4,"86":14,"95":1,"102":2,"104":5,"105":5,"106":8,"119":1,"128":1,"138":1,"139":2,"140":1,"165":1,"177":1,"178":52,"179":1,"181":8}}],["restrictive",{"2":{"166":1,"167":1}}],["restricted",{"2":{"6":1,"7":1}}],["restart",{"2":{"42":1,"52":1,"177":1}}],["rest",{"2":{"19":1,"55":1,"94":1,"101":1,"177":1,"179":1}}],["resulting",{"2":{"181":4}}],["results",{"2":{"7":10,"13":1,"19":1,"52":2,"55":8,"58":1,"63":1,"110":1,"115":1,"116":12,"122":1,"123":1,"125":2,"126":1,"129":2,"130":1,"177":6,"178":1,"179":8,"181":16}}],["result",{"2":{"2":1,"7":1,"52":3,"57":1,"58":7,"61":1,"62":2,"64":22,"104":2,"106":8,"177":9,"178":30,"181":70}}],["retain",{"2":{"177":1,"178":2}}],["retrive",{"2":{"60":1,"181":1}}],["retries=3",{"2":{"106":1}}],["retries=2",{"2":{"86":1}}],["retries`",{"2":{"52":1,"177":1}}],["retries",{"2":{"21":6,"51":3,"52":22,"106":2,"177":26,"178":10}}],["retrieving",{"2":{"125":1,"181":1}}],["retrievable",{"2":{"64":1,"181":1}}],["retrieval",{"0":{"1":1},"1":{"2":1},"2":{"1":1,"6":3,"7":5,"56":1,"60":2,"63":2,"64":13,"124":3,"126":1,"178":2,"180":1,"181":25}}],["retrieves",{"2":{"64":1,"181":1}}],["retriever=advancedretriever",{"2":{"64":1,"181":1}}],["retriever",{"2":{"61":1,"62":6,"64":35,"181":44}}],["retrieved",{"2":{"57":1,"60":1,"63":1,"64":1,"181":3}}],["retrieve",{"2":{"10":2,"57":2,"58":4,"60":2,"61":3,"62":1,"63":1,"64":14,"103":1,"178":1,"181":21}}],["retrying",{"2":{"21":1,"49":2,"52":7,"86":2,"106":1,"177":7}}],["retry",{"2":{"21":3,"49":1,"51":3,"52":15,"106":6,"177":22,"178":10}}],["retryconfig",{"2":{"21":3,"49":1,"51":3,"52":10,"177":14,"178":1}}],["returning",{"2":{"178":2,"181":1}}],["returned",{"2":{"95":1,"106":2,"177":1,"178":12,"181":3}}],["returns",{"2":{"7":7,"10":5,"18":3,"52":12,"64":11,"66":1,"67":5,"73":1,"104":5,"105":2,"138":1,"139":1,"140":1,"177":16,"178":65,"179":1,"181":46}}],["return",{"2":{"2":1,"6":2,"7":1,"10":4,"18":1,"19":4,"24":1,"31":1,"52":6,"55":1,"58":3,"60":2,"64":11,"67":1,"77":1,"85":5,"86":5,"90":4,"91":1,"104":5,"106":11,"115":2,"116":3,"177":13,"178":86,"179":1,"181":33}}],["reranking",{"2":{"63":1,"64":8,"181":16}}],["reranker",{"2":{"60":2,"64":8,"181":19}}],["reranked",{"2":{"58":1,"181":5}}],["rerank",{"2":{"2":2,"8":2,"60":3,"61":1,"63":2,"64":5,"178":2,"181":25}}],["reload",{"2":{"87":3,"178":2}}],["relentless",{"2":{"67":1,"178":1}}],["releases",{"2":{"180":1}}],["release",{"2":{"35":1}}],["relevancy",{"2":{"110":1,"178":1}}],["relevance",{"2":{"6":1,"110":2,"119":2,"138":1,"181":8}}],["relevant",{"2":{"2":1,"57":1,"58":1,"60":1,"61":2,"63":3,"64":7,"94":1,"110":1,"112":1,"116":1,"119":2,"120":1,"124":3,"125":1,"126":1,"148":1,"150":1,"151":1,"177":2,"178":1,"181":11}}],["related",{"2":{"13":1,"75":1,"118":1,"124":2,"152":1,"178":2,"181":2}}],["relational",{"2":{"7":1}}],["rely",{"2":{"0":1}}],["re",{"2":{"1":1,"2":3,"7":1,"8":1,"10":1,"12":1,"20":1,"22":2,"23":1,"24":11,"26":1,"29":1,"31":1,"35":1,"41":1,"42":1,"49":1,"58":1,"60":2,"62":1,"64":1,"67":2,"73":1,"75":1,"83":2,"91":2,"98":1,"102":1,"103":4,"104":1,"105":5,"106":3,"110":1,"112":1,"119":1,"120":1,"122":1,"129":1,"155":2,"159":1,"161":1,"162":1,"163":2,"168":1,"169":1,"171":2,"177":1,"178":16,"181":16}}],["gsk",{"2":{"178":1}}],["ggi",{"2":{"178":3}}],["gguf",{"2":{"28":1}}],["gnarled",{"2":{"67":1,"178":1}}],["glossy",{"2":{"178":1}}],["globally",{"2":{"49":1}}],["global",{"2":{"0":1,"42":1,"52":1,"178":3}}],["glittering",{"2":{"67":1,"178":1}}],["glasses",{"2":{"39":1}}],["glad",{"2":{"31":1}}],["gpu=99",{"2":{"37":2}}],["gpu",{"2":{"28":1,"37":1}}],["gpt4o",{"2":{"181":3}}],["gpt4v",{"2":{"20":2,"178":5}}],["gpt4",{"2":{"15":1,"95":1,"96":1,"178":3}}],["gpt4t",{"2":{"6":1,"7":2,"15":3,"17":1,"21":1,"51":1,"95":1,"178":5,"181":2}}],["gpt3t",{"2":{"105":1}}],["gpt3",{"2":{"15":1,"105":1,"178":5}}],["gpt",{"2":{"6":1,"7":1,"15":5,"91":4,"95":2,"96":1,"178":21,"181":5}}],["guidance",{"2":{"106":1}}],["guidelines>",{"2":{"173":2}}],["guidelines",{"2":{"138":1,"151":1,"158":3,"165":2,"166":1,"167":1,"173":1}}],["guides",{"2":{"75":1}}],["guide",{"0":{"83":1},"2":{"22":1,"41":1,"52":2,"58":2,"69":1,"78":2,"93":1,"165":1,"173":1,"177":3,"178":2}}],["guarantees",{"2":{"86":1}}],["guardian",{"2":{"67":1,"178":1}}],["guardrails",{"2":{"52":1,"177":1}}],["guessed",{"2":{"52":1,"177":1}}],["guesser",{"2":{"52":3,"177":3}}],["guesses",{"2":{"21":1,"51":1,"52":2,"177":2}}],["guess",{"2":{"21":1,"51":2,"52":31,"177":31}}],["guessing",{"2":{"21":1,"51":2,"52":1,"177":1}}],["g",{"2":{"19":1,"52":2,"110":1,"134":1,"136":1,"139":1,"178":4}}],["giraffe",{"2":{"178":7}}],["github",{"2":{"67":1,"73":1,"78":1,"93":1,"110":1,"178":6,"181":5}}],["gitignore",{"2":{"11":3}}],["give",{"2":{"24":1,"52":1,"70":1,"86":2,"177":1,"181":1}}],["given",{"2":{"19":2,"57":1,"64":2,"67":4,"74":1,"115":2,"116":2,"125":1,"134":2,"136":2,"139":1,"148":1,"152":1,"156":1,"160":1,"162":1,"164":1,"175":1,"177":5,"178":29,"181":8}}],["gives",{"2":{"5":1,"13":1,"98":1,"99":1,"115":1,"116":1,"178":2}}],["gracefully",{"2":{"178":6}}],["grammatical",{"2":{"138":1}}],["grammar",{"2":{"106":1,"138":1}}],["grasp",{"2":{"125":1}}],["granularity",{"2":{"58":1}}],["grab",{"2":{"52":1,"177":1}}],["gratefully",{"2":{"12":1}}],["grins",{"2":{"41":2}}],["group",{"2":{"86":1,"178":1,"181":4}}],["grow",{"2":{"12":1}}],["groq",{"2":{"0":1,"178":6}}],["groqopenaischema",{"2":{"0":1,"178":2}}],["greater",{"2":{"178":1,"181":1}}],["greatingpirate",{"2":{"87":5,"178":7}}],["great",{"2":{"11":1,"24":2,"67":2,"95":1,"157":2,"178":2}}],["gt",{"2":{"7":14,"10":3,"15":1,"21":3,"37":1,"42":2,"51":2,"52":4,"61":16,"64":9,"67":1,"78":1,"79":1,"83":1,"84":2,"87":3,"93":1,"96":2,"98":10,"100":1,"103":3,"104":3,"105":2,"106":5,"177":7,"178":18,"181":15}}],["gamma",{"2":{"177":4,"178":1}}],["game",{"2":{"21":1,"51":1,"52":2,"169":1,"177":2}}],["gaps",{"2":{"158":1}}],["gaze",{"2":{"67":1,"178":1}}],["gauge",{"2":{"24":1}}],["gave",{"2":{"12":1}}],["gain",{"2":{"6":1}}],["garbage",{"2":{"2":2}}],["goes",{"2":{"178":1}}],["goals",{"2":{"138":3,"139":1}}],["goal",{"2":{"125":1,"128":1,"178":2}}],["going",{"2":{"62":1,"106":1}}],["got",{"2":{"52":2,"177":2,"178":1}}],["gotchas",{"0":{"36":1},"2":{"52":1,"177":1}}],["good",{"2":{"4":1,"8":1,"13":1,"24":2,"52":1,"76":1,"86":1,"148":1,"165":1,"173":1,"177":1,"178":3,"181":5}}],["googlegenaipromptingtoolsext",{"2":{"178":1}}],["googlegenai",{"2":{"32":2,"178":1}}],["google",{"0":{"32":1},"1":{"33":1,"34":1,"35":1,"36":1},"2":{"0":1,"11":1,"32":3,"36":1,"70":1,"112":1,"178":9}}],["googleschema",{"2":{"0":1,"178":2}}],["golden",{"2":{"4":1,"8":1}}],["go",{"2":{"2":1,"12":1,"41":3,"64":1,"72":1,"76":1,"83":2,"93":2,"103":1,"165":1,"173":1,"181":1}}],["germany",{"2":{"181":2}}],["genai",{"2":{"77":1,"180":1}}],["gensym",{"2":{"64":2,"181":3}}],["genie",{"2":{"58":1}}],["general",{"0":{"146":1},"1":{"147":1,"148":1},"2":{"10":1,"23":1,"26":1,"104":1,"106":1,"112":1,"118":1,"151":2,"165":2,"166":1,"167":1,"173":3,"178":1}}],["generally",{"2":{"7":1,"106":1}}],["generator",{"2":{"61":1,"62":1,"64":24,"181":25}}],["generating",{"2":{"10":1,"48":1,"64":11,"104":1,"175":1,"177":2,"178":16,"181":20}}],["generativeai",{"2":{"53":1}}],["generative",{"2":{"1":1,"57":1,"65":1,"66":1}}],["generation",{"0":{"1":1,"33":1,"38":1},"1":{"2":1,"34":1,"35":1,"36":1,"39":1,"40":1,"41":1,"42":1},"2":{"1":1,"6":1,"51":1,"56":1,"60":2,"63":3,"64":3,"106":1,"118":1,"177":2,"178":24,"180":1,"181":7}}],["generated",{"2":{"6":1,"8":1,"10":5,"18":1,"24":1,"47":1,"49":1,"52":2,"57":1,"58":1,"64":5,"66":1,"67":1,"71":1,"95":1,"104":2,"118":2,"177":2,"178":25,"181":10}}],["generates",{"2":{"2":1,"10":1,"21":1,"63":3,"64":1,"104":1,"122":1,"123":1,"178":5,"181":4}}],["generate",{"0":{"4":1},"2":{"0":1,"2":1,"3":1,"7":1,"8":1,"10":4,"49":3,"52":1,"56":1,"57":3,"58":5,"60":2,"61":3,"63":2,"64":10,"66":2,"86":2,"87":1,"89":1,"93":1,"104":2,"106":3,"118":1,"122":1,"124":1,"139":1,"140":1,"148":1,"175":4,"177":3,"178":24,"181":18}}],["genericwriter",{"0":{"160":1}}],["generictopicexpertask",{"0":{"159":1}}],["generictranscriptcritic",{"0":{"139":1}}],["generic",{"2":{"4":1,"103":1,"118":1,"139":1,"155":1,"159":1,"160":1}}],["gestures",{"2":{"41":1}}],["getpropertynested",{"2":{"64":2,"178":1,"181":5}}],["getindex",{"2":{"52":1,"177":1}}],["getting",{"0":{"73":2,"74":1,"75":1,"92":1},"1":{"93":1,"94":1,"95":1,"96":1},"2":{"22":1,"150":1}}],["get",{"2":{"10":1,"21":1,"32":1,"46":1,"51":2,"52":3,"55":2,"56":1,"58":1,"61":5,"63":5,"64":11,"69":1,"72":2,"73":2,"78":1,"79":1,"83":1,"84":1,"85":1,"86":4,"93":1,"95":1,"104":1,"105":1,"106":2,"177":4,"178":45,"179":2,"181":57}}],["gemini",{"2":{"0":1,"32":3,"33":2,"34":3,"35":1,"36":1,"178":11}}],["tf",{"2":{"181":1}}],["td",{"2":{"181":1}}],["tp",{"2":{"181":1}}],["tpl=pt",{"2":{"87":1,"178":2}}],["tpl",{"2":{"24":1,"87":2,"90":2,"178":2}}],["tsang",{"2":{"177":1}}],["tldr",{"2":{"162":1,"175":6}}],["tl",{"2":{"39":1}}],["tmixtral",{"2":{"30":2,"106":2}}],["tmp",{"2":{"24":1}}],["tmps",{"2":{"13":1,"178":2}}],["typically",{"2":{"178":3}}],["typing",{"2":{"20":1,"178":2}}],["typed",{"0":{"86":1},"2":{"86":2,"94":1}}],["type=fruit",{"2":{"178":1}}],["type=food",{"2":{"10":1,"31":1,"104":1,"106":1}}],["type=maybetags",{"2":{"181":1}}],["type=manymeasurements",{"2":{"19":1,"178":2}}],["type=mymeasurement",{"2":{"178":4}}],["type=currentweather",{"2":{"19":1}}],["types",{"2":{"12":1,"52":2,"60":2,"61":4,"63":1,"64":7,"81":1,"84":1,"86":4,"102":1,"104":1,"106":4,"166":2,"167":2,"177":2,"178":2,"181":8}}],["type",{"2":{"6":1,"10":1,"11":1,"15":1,"19":2,"52":3,"57":1,"58":1,"60":2,"62":2,"63":1,"64":3,"86":2,"91":1,"95":1,"98":1,"104":1,"106":21,"128":1,"166":1,"167":1,"177":8,"178":105,"181":81}}],["tiktokenizer",{"2":{"178":1}}],["titles",{"2":{"150":2,"151":2}}],["title",{"2":{"150":2,"151":1,"156":1,"162":1,"175":2}}],["tiniest",{"2":{"130":1}}],["tinyrag",{"2":{"181":2}}],["tiny",{"2":{"23":3,"26":3,"178":2,"181":1}}],["tier",{"2":{"74":3,"178":2}}],["timing",{"2":{"52":1,"177":1}}],["timed",{"2":{"52":1,"177":1}}],["timeout",{"2":{"52":3,"178":8}}],["timestamp",{"2":{"150":2,"151":3,"178":4}}],["timestamps",{"2":{"150":3,"151":2}}],["times",{"2":{"21":1,"49":2,"51":1,"52":3,"87":1,"177":4}}],["time",{"2":{"3":1,"7":1,"10":1,"13":1,"21":1,"24":3,"31":1,"36":1,"51":1,"52":3,"67":1,"71":1,"77":2,"78":1,"84":1,"89":1,"98":1,"101":1,"103":1,"104":1,"177":4,"178":29,"180":1,"181":3}}],["tired",{"2":{"19":1}}],["tips",{"2":{"21":1,"67":1,"150":2,"151":2,"178":2}}],["tip",{"2":{"14":1,"67":1,"72":1,"95":1,"96":2,"113":1,"178":1}}],["tell",{"2":{"169":1}}],["tedious",{"2":{"84":1}}],["tens",{"2":{"77":1}}],["tenth",{"2":{"75":1}}],["tends",{"2":{"88":1}}],["tend",{"2":{"10":1,"67":1,"70":1,"84":1,"104":1,"178":1}}],["terms",{"2":{"112":1,"124":2}}],["term",{"2":{"56":1,"112":1,"181":1}}],["terminal",{"2":{"28":1,"37":1,"58":1,"66":1,"78":4,"83":1,"93":2}}],["testing",{"2":{"178":5}}],["testechoopenaischema",{"2":{"178":2}}],["testechoollamaschema",{"2":{"178":2}}],["testechoollamamanagedschema",{"2":{"178":2}}],["testechogoogleschema",{"2":{"178":2}}],["testechoanthropicschema",{"2":{"178":2}}],["test`",{"2":{"128":1,"165":3,"173":3}}],["tests>",{"2":{"173":2}}],["testset`",{"2":{"165":1,"173":1}}],["testsets",{"2":{"165":1,"173":1}}],["testset",{"2":{"52":1,"128":1,"165":2,"173":2,"178":1}}],["tests",{"2":{"52":4,"128":1,"165":4,"173":4,"178":5}}],["test",{"2":{"42":1,"52":2,"64":5,"165":14,"169":1,"173":14,"178":9,"181":11}}],["teacher",{"2":{"118":1}}],["teach",{"2":{"41":1}}],["technical",{"2":{"112":2,"124":1}}],["technically",{"2":{"28":1}}],["technique",{"2":{"89":1}}],["techniques",{"2":{"58":1}}],["technology",{"2":{"41":1,"156":1}}],["tempdir",{"2":{"178":1}}],["temporary",{"2":{"178":1}}],["temperature",{"2":{"19":1,"177":2,"178":2}}],["temperatureunits",{"2":{"19":2}}],["temperature=0",{"2":{"10":1,"52":3,"91":1,"104":3,"106":2,"177":3,"178":3}}],["templating",{"2":{"13":1,"96":1,"178":1}}],["template",{"0":{"87":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1},"2":{"13":5,"17":1,"20":1,"24":10,"52":1,"60":2,"62":5,"64":17,"87":13,"90":1,"91":1,"103":7,"105":4,"124":1,"128":1,"129":1,"130":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"150":1,"151":1,"152":1,"157":1,"158":1,"166":1,"167":1,"177":9,"178":126,"181":47}}],["templated",{"0":{"13":1},"2":{"17":1,"24":1}}],["templates=true",{"2":{"178":1}}],["templates",{"0":{"103":1,"107":1,"109":1,"111":1,"114":1,"117":1,"121":1,"127":1,"131":1,"133":1,"137":1,"141":1,"144":1,"146":1,"149":1,"170":1,"174":1},"1":{"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"171":1,"172":1,"173":1,"175":1,"176":1},"2":{"10":1,"13":2,"17":1,"24":13,"87":12,"90":2,"91":1,"96":1,"98":1,"103":3,"104":1,"177":4,"178":48}}],["text=",{"2":{"181":1}}],["text1",{"2":{"67":1,"178":1}}],["text2",{"2":{"67":2,"178":2}}],["texts",{"2":{"64":3,"67":2,"138":1,"178":2,"181":6}}],["textchunker",{"2":{"64":1,"178":1,"181":7}}],["textanalysis",{"2":{"8":1}}],["text",{"0":{"33":1,"38":1,"65":1},"1":{"34":1,"35":1,"36":1,"39":1,"40":1,"41":1,"42":1,"66":1,"67":1},"2":{"2":3,"8":1,"10":6,"16":1,"19":2,"20":1,"30":1,"31":2,"52":3,"58":1,"64":9,"65":2,"66":7,"67":41,"88":2,"102":1,"104":4,"106":1,"112":7,"113":6,"138":8,"158":4,"160":1,"162":1,"175":2,"176":1,"177":1,"178":63,"181":36}}],["trove",{"2":{"87":2,"178":2}}],["troubleshooting",{"2":{"37":1}}],["treated",{"2":{"178":2}}],["treasure",{"2":{"87":2,"178":2}}],["trees",{"2":{"52":1,"177":3}}],["tree",{"2":{"18":2,"21":2,"49":1,"52":7,"64":2,"67":1,"86":1,"177":17,"178":7,"181":4}}],["traced",{"2":{"178":2}}],["tracemessage",{"2":{"178":1}}],["trace",{"2":{"178":2}}],["tracers",{"2":{"178":3}}],["tracerschema",{"2":{"91":7,"178":17}}],["tracer",{"2":{"178":95}}],["tracermessagelike",{"2":{"178":2}}],["tracermessage",{"2":{"91":2,"178":10}}],["tracing",{"0":{"91":1},"2":{"91":2,"178":15}}],["tracked",{"2":{"178":1,"181":1}}],["tracker",{"2":{"64":9,"178":1,"181":28}}],["tracking",{"2":{"177":1,"178":2}}],["tracks",{"2":{"64":1,"178":1,"181":1}}],["track",{"2":{"64":5,"177":1,"178":1,"181":16}}],["trained",{"2":{"150":1,"151":1,"156":1}}],["train",{"2":{"71":1}}],["training",{"2":{"71":1,"178":1}}],["trail",{"2":{"67":1,"178":1}}],["transcripts",{"2":{"150":2,"151":2}}],["transcript",{"2":{"138":5,"139":6,"140":4,"150":7,"151":6,"156":6}}],["transcribe",{"2":{"20":2,"176":2,"178":8}}],["transformation",{"2":{"178":1}}],["transformations",{"0":{"121":1},"1":{"122":1,"123":1,"124":1,"125":1,"126":1},"2":{"123":1}}],["transform",{"2":{"64":1,"178":1,"181":2}}],["translate",{"2":{"14":1,"178":2,"181":6}}],["truncated",{"2":{"178":4}}],["truncates",{"2":{"177":1}}],["truncate",{"2":{"177":2,"178":1,"181":9}}],["truths",{"2":{"67":1,"178":1}}],["trusted",{"2":{"58":1}}],["true",{"2":{"4":1,"6":2,"7":1,"12":2,"17":3,"21":1,"35":1,"45":1,"51":1,"52":32,"55":1,"64":17,"86":4,"87":2,"90":2,"135":2,"177":25,"178":106,"179":1,"181":58}}],["tryparse",{"2":{"52":4,"86":2,"177":4,"178":1}}],["try",{"2":{"18":1,"31":1,"41":1,"52":2,"64":1,"87":1,"106":4,"108":1,"115":1,"116":1,"122":1,"123":1,"177":1,"178":4,"181":4}}],["trying",{"2":{"12":1,"35":1,"41":1,"49":1,"177":1,"178":5}}],["trial",{"2":{"181":1}}],["trims",{"2":{"178":1}}],["tries",{"2":{"177":1,"178":1,"181":3}}],["triple",{"2":{"128":1,"129":1,"152":1,"178":1}}],["trivially",{"2":{"86":1}}],["trigram",{"2":{"64":3,"178":1,"181":8}}],["trigrams",{"2":{"64":6,"66":4,"178":2,"181":23}}],["trigramannotater",{"2":{"64":4,"178":1,"181":10}}],["triggers",{"2":{"52":1,"106":1,"177":2}}],["triggered",{"2":{"49":1,"52":1,"177":1}}],["trigger",{"2":{"10":1,"49":1,"52":2,"104":1,"177":3}}],["trick",{"2":{"10":1,"18":1,"41":1,"104":1,"178":5}}],["tuning",{"2":{"89":1,"178":1}}],["tune",{"0":{"89":1}}],["tuned",{"2":{"31":1}}],["tuple",{"2":{"45":1,"177":1,"178":34,"181":5}}],["tuples",{"2":{"18":1,"166":1,"167":1,"178":5}}],["turn",{"0":{"85":1},"2":{"35":2,"42":1,"96":1,"178":2}}],["turbo",{"2":{"7":1,"15":3,"91":1,"95":2,"105":1,"106":2,"178":11}}],["tutorials",{"2":{"58":2}}],["tutorial",{"2":{"8":1,"72":1,"93":1,"94":1}}],["t",{"2":{"6":1,"8":1,"24":1,"27":1,"28":1,"30":1,"37":1,"39":1,"52":2,"84":1,"101":1,"106":2,"108":3,"112":1,"113":1,"115":5,"116":3,"118":1,"150":2,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"177":5,"178":30,"181":20}}],["tweak",{"2":{"2":2,"7":1,"52":2,"177":2}}],["two",{"0":{"2":1},"2":{"2":1,"5":4,"6":1,"7":7,"10":1,"16":1,"17":3,"21":1,"51":2,"52":2,"66":2,"67":2,"74":1,"86":5,"90":1,"105":1,"106":1,"128":1,"177":4,"178":17,"181":6}}],["taking",{"2":{"124":1,"126":1}}],["taken",{"2":{"178":2}}],["takes",{"2":{"74":1,"178":1}}],["take",{"2":{"7":1,"24":2,"100":1,"105":1,"129":1,"130":1,"150":1,"154":1,"172":1,"177":1,"178":1}}],["tapestry",{"2":{"67":2,"178":2}}],["target",{"2":{"64":2,"138":1,"160":1,"162":2,"169":2,"181":14}}],["tavilysearchrefiner",{"2":{"178":1,"181":6}}],["tavily",{"2":{"54":3,"55":1,"178":5,"179":5,"180":1,"181":3}}],["tall",{"2":{"19":2,"178":10}}],["tabular",{"2":{"13":1,"178":2}}],["table",{"2":{"7":2,"24":1,"77":1,"169":4}}],["tables",{"2":{"7":1}}],["task>",{"2":{"172":4}}],["tasked",{"2":{"124":1,"126":1}}],["task=",{"2":{"20":1,"178":2}}],["tasks",{"2":{"14":2,"15":1,"17":1,"19":1,"23":1,"26":1,"30":1,"34":1,"42":1,"46":2,"58":1,"64":2,"69":1,"96":1,"134":1,"136":1,"152":1,"157":1,"177":1,"178":3,"181":8}}],["task",{"0":{"149":1},"1":{"150":1,"151":1,"152":1},"2":{"11":1,"19":1,"24":1,"58":1,"89":1,"91":1,"102":1,"103":1,"106":3,"115":1,"116":1,"119":1,"122":1,"123":1,"124":2,"125":1,"126":1,"128":1,"129":1,"134":1,"136":1,"138":1,"139":1,"140":1,"147":1,"148":6,"156":1,"157":4,"164":7,"165":1,"166":6,"167":6,"169":5,"172":6,"173":1,"175":1,"176":4,"178":4}}],["tag2",{"2":{"64":1,"181":1}}],["tag1",{"2":{"64":1,"181":1}}],["tagging",{"2":{"64":2,"181":4}}],["tagger=opentagger",{"2":{"64":1,"181":1}}],["tagger",{"2":{"64":27,"181":43}}],["tag",{"2":{"2":1,"58":1,"63":1,"64":4,"181":30}}],["tags",{"2":{"2":3,"61":4,"63":8,"64":17,"142":2,"143":1,"172":3,"173":2,"178":9,"181":106}}],["tailored",{"2":{"1":1,"138":1,"148":1}}],["txtouterjoin",{"2":{"7":1}}],["txtrightjoin",{"2":{"7":1}}],["txtleftjoin",{"2":{"7":1}}],["txtinnerjoin",{"2":{"7":1}}],["txtin",{"2":{"7":1}}],["txtwe",{"2":{"7":1}}],["txtjulia",{"2":{"7":3}}],["txtdatabase",{"2":{"7":1}}],["txt",{"2":{"2":2,"5":1,"6":1}}],["toml",{"2":{"79":1,"178":2}}],["touches",{"2":{"63":1}}],["total",{"2":{"58":1,"64":6,"177":1,"178":1,"181":14}}],["toy",{"2":{"52":1,"106":1,"177":1}}],["tone",{"2":{"24":1,"138":2,"158":1}}],["took",{"2":{"52":1,"106":1,"177":1,"181":1}}],["too",{"0":{"75":1},"2":{"16":1,"47":1,"52":1,"67":1,"106":1,"118":1,"150":2,"166":1,"167":1,"177":2,"178":5}}],["tool",{"2":{"12":1,"21":1,"22":1,"106":4,"142":4,"178":14}}],["tools",{"0":{"48":1,"56":1},"1":{"49":1,"50":1,"51":1,"52":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1},"2":{"10":1,"57":1,"58":1,"67":2,"106":2,"178":4}}],["tokenizes",{"2":{"181":2}}],["tokenized",{"2":{"181":2}}],["tokenizers",{"2":{"181":1}}],["tokenizer",{"2":{"178":1}}],["tokenize",{"2":{"66":2,"178":1,"181":2}}],["tokens=",{"2":{"178":1}}],["tokens=2500",{"2":{"20":1,"178":2}}],["tokens",{"2":{"11":1,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"36":1,"64":2,"74":4,"77":1,"85":1,"95":2,"96":1,"178":62,"181":21}}],["token",{"2":{"10":1,"18":1,"29":1,"64":1,"77":1,"104":1,"177":1,"178":53,"181":11}}],["today",{"2":{"7":1,"22":1,"23":1,"26":1,"30":1,"40":1,"42":1,"85":1,"178":8}}],["topics",{"2":{"23":1,"26":1,"30":1,"31":1,"158":1}}],["topic",{"2":{"5":2,"6":1,"7":2,"156":6,"159":5,"162":5}}],["top",{"2":{"2":1,"6":2,"7":13,"52":1,"57":1,"58":1,"60":1,"62":4,"64":22,"84":1,"169":1,"177":1,"178":5,"181":46}}],["to",{"0":{"18":1,"85":1,"86":1,"87":1,"90":1},"2":{"0":1,"1":3,"2":11,"3":1,"4":2,"5":4,"6":5,"7":17,"8":2,"10":21,"11":13,"12":9,"13":6,"14":2,"15":4,"16":4,"17":3,"18":2,"19":6,"21":11,"22":1,"23":6,"24":20,"25":1,"26":5,"27":1,"28":6,"29":7,"30":3,"31":6,"32":1,"34":5,"35":6,"36":1,"37":7,"39":3,"40":2,"41":2,"42":6,"43":1,"46":1,"47":1,"48":1,"49":16,"51":11,"52":100,"54":3,"55":9,"56":6,"57":9,"58":20,"60":9,"61":1,"62":4,"63":14,"64":159,"65":1,"66":14,"67":43,"69":1,"70":1,"71":7,"72":2,"73":2,"74":4,"75":3,"76":4,"77":2,"78":5,"79":1,"81":2,"82":3,"83":3,"84":3,"85":8,"86":18,"87":17,"88":2,"89":4,"90":11,"91":6,"93":9,"94":1,"95":4,"96":2,"97":3,"98":3,"99":1,"100":9,"101":6,"103":6,"104":21,"105":7,"106":31,"108":2,"110":4,"112":3,"115":8,"116":8,"118":4,"119":5,"120":2,"122":4,"123":3,"124":3,"125":6,"126":1,"128":10,"129":5,"130":2,"134":2,"136":5,"138":10,"139":5,"140":7,"142":2,"143":1,"145":1,"148":2,"150":14,"151":10,"152":6,"156":1,"158":1,"159":1,"160":2,"161":1,"162":5,"164":1,"165":4,"166":2,"167":2,"168":1,"169":5,"172":1,"173":4,"175":2,"177":146,"178":673,"179":10,"180":3,"181":425}}],["together",{"0":{"30":1},"2":{"0":1,"2":1,"5":3,"6":1,"7":3,"19":1,"30":3,"36":1,"64":1,"70":1,"91":1,"97":1,"106":6,"112":1,"178":7,"181":2}}],["togetheropenaischema",{"2":{"0":1,"30":2,"106":1,"178":2}}],["thomsonsampling",{"2":{"177":1}}],["thompson",{"2":{"177":3}}],["thompsonsampling",{"2":{"177":6,"178":1}}],["thoroughly",{"2":{"118":1}}],["thought",{"2":{"142":1,"164":1,"166":1,"172":1}}],["though",{"2":{"106":1}}],["those",{"2":{"58":1,"64":1,"95":1,"142":1,"143":1,"145":1,"151":1,"178":2,"181":1}}],["than",{"2":{"28":1,"64":2,"67":2,"96":2,"106":1,"128":1,"158":1,"178":7,"181":8}}],["thanks",{"2":{"103":1,"177":2}}],["thank",{"2":{"12":1}}],["that",{"2":{"0":2,"3":1,"5":1,"6":3,"7":15,"10":2,"13":2,"15":3,"16":1,"18":1,"19":1,"21":4,"22":3,"23":3,"24":6,"26":2,"32":1,"36":2,"37":2,"42":2,"48":1,"49":5,"51":4,"52":22,"54":1,"56":2,"58":1,"60":3,"62":3,"63":1,"64":23,"67":6,"69":1,"72":1,"74":4,"75":1,"83":3,"85":2,"86":1,"87":1,"89":1,"90":2,"91":1,"93":1,"94":1,"97":1,"98":3,"99":2,"100":1,"101":2,"103":4,"104":3,"105":2,"106":10,"108":1,"110":1,"115":2,"116":2,"118":2,"120":1,"122":3,"123":2,"124":5,"126":1,"128":1,"134":2,"136":3,"138":1,"139":1,"140":3,"148":2,"150":3,"151":1,"152":2,"156":1,"158":1,"160":1,"162":2,"164":1,"166":2,"167":2,"169":2,"172":1,"175":1,"177":25,"178":94,"180":1,"181":67}}],["third",{"2":{"21":1,"51":1,"52":1,"177":1}}],["think",{"2":{"99":1,"106":1,"128":1,"129":2,"130":1,"160":1,"162":1,"164":1,"165":1,"172":1,"173":1,"178":2,"181":1}}],["thinking",{"2":{"21":2,"51":2,"52":3,"177":3}}],["things",{"2":{"12":1,"35":1}}],["this",{"0":{"6":1},"2":{"0":2,"1":2,"2":1,"3":1,"4":1,"6":2,"7":2,"8":1,"10":1,"11":2,"13":1,"17":1,"21":2,"24":3,"32":1,"35":1,"37":1,"41":2,"47":1,"49":2,"52":10,"54":2,"58":1,"60":1,"62":2,"64":6,"65":1,"67":4,"71":1,"73":2,"74":1,"75":2,"78":1,"87":1,"91":1,"93":1,"94":1,"97":2,"102":1,"104":1,"105":2,"106":2,"122":1,"124":4,"125":1,"126":1,"128":1,"129":1,"130":1,"140":1,"150":2,"151":2,"152":3,"166":2,"167":2,"169":2,"177":15,"178":72,"180":2,"181":32}}],["throw==false",{"2":{"52":1,"177":1}}],["throw=true",{"2":{"52":2,"177":2}}],["thrown",{"2":{"52":1,"73":1,"177":1}}],["throw",{"2":{"52":4,"106":1,"177":4}}],["throughout",{"2":{"94":1}}],["through",{"2":{"0":1,"7":1,"11":1,"35":1,"52":1,"67":1,"97":1,"112":1,"164":1,"165":1,"172":1,"173":1,"177":3,"178":5,"181":2}}],["thread",{"2":{"85":1,"91":2,"178":21}}],["threads`",{"2":{"58":1}}],["threads",{"2":{"46":1,"64":7,"178":1,"181":28}}],["threshold",{"2":{"64":1,"181":4}}],["three",{"2":{"12":1,"17":1,"60":1,"66":1,"84":1,"86":1,"138":2,"139":2,"140":2,"178":4,"181":3}}],["then",{"2":{"10":2,"11":1,"12":1,"19":1,"28":1,"37":1,"47":1,"52":2,"60":1,"63":1,"64":4,"67":1,"85":1,"86":2,"87":2,"91":1,"97":1,"104":1,"105":2,"177":1,"178":11,"181":13}}],["theory",{"2":{"7":1,"169":1}}],["their",{"2":{"7":2,"10":1,"23":1,"26":1,"31":1,"52":1,"58":2,"64":3,"67":1,"71":1,"100":1,"104":1,"110":3,"113":1,"134":1,"136":1,"138":1,"139":1,"177":2,"178":8,"181":12}}],["there",{"2":{"7":2,"19":1,"23":3,"24":1,"26":2,"27":1,"30":1,"31":1,"34":1,"37":1,"39":2,"40":1,"41":1,"42":2,"52":5,"54":1,"63":1,"64":2,"66":1,"67":3,"69":1,"70":1,"73":1,"83":1,"84":1,"90":2,"99":1,"100":1,"102":1,"103":1,"105":2,"128":2,"129":1,"158":1,"177":5,"178":15,"181":4}}],["themselves",{"2":{"178":1}}],["themed",{"2":{"156":1}}],["theme",{"0":{"153":2,"154":2},"1":{"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":2,"170":2,"171":2,"172":2,"173":2},"2":{"152":6,"156":7}}],["themes",{"2":{"152":5,"156":1,"175":1}}],["them",{"2":{"2":4,"3":1,"6":1,"7":1,"8":1,"10":1,"12":1,"16":1,"21":1,"23":2,"24":6,"26":1,"27":1,"36":1,"37":1,"52":4,"58":1,"60":1,"62":1,"64":5,"66":1,"67":3,"77":1,"99":1,"103":1,"104":1,"106":1,"128":1,"150":3,"165":1,"166":1,"167":1,"169":1,"173":1,"177":4,"178":19,"181":6}}],["they",{"2":{"1":1,"10":1,"20":1,"21":2,"23":2,"24":2,"26":1,"27":1,"52":4,"64":1,"66":1,"101":1,"104":2,"106":1,"139":1,"150":1,"151":1,"154":2,"169":2,"177":4,"178":8,"181":3}}],["these",{"2":{"0":1,"10":1,"15":1,"37":1,"52":1,"58":3,"64":2,"67":1,"74":1,"104":1,"112":1,"118":1,"119":1,"138":1,"140":2,"142":1,"143":1,"145":1,"151":3,"160":1,"162":1,"177":1,"178":3,"181":3}}],["the",{"0":{"7":1,"75":1,"78":1,"79":1,"80":1,"84":1,"90":1},"2":{"0":12,"1":4,"2":24,"3":3,"4":2,"5":7,"6":9,"7":91,"8":6,"10":39,"11":11,"12":8,"13":12,"14":2,"15":7,"16":5,"17":5,"18":6,"19":10,"20":7,"21":22,"22":5,"23":16,"24":49,"25":1,"26":9,"27":8,"28":12,"29":6,"30":4,"31":9,"32":3,"33":2,"34":3,"35":5,"36":5,"37":4,"39":1,"41":6,"42":3,"43":3,"45":1,"46":1,"48":1,"49":33,"51":21,"52":194,"53":1,"55":15,"56":9,"57":13,"58":48,"60":34,"61":2,"62":6,"63":29,"64":247,"65":1,"66":14,"67":98,"69":3,"70":3,"71":5,"72":3,"73":15,"74":11,"75":3,"76":1,"77":4,"78":7,"79":2,"81":1,"82":2,"83":3,"84":4,"85":19,"86":18,"87":20,"88":3,"89":4,"90":19,"91":14,"93":6,"94":4,"95":14,"96":8,"97":5,"98":9,"99":4,"100":9,"101":5,"102":13,"103":9,"104":37,"105":35,"106":75,"108":6,"110":10,"112":10,"113":3,"115":26,"116":32,"118":17,"119":20,"120":5,"122":6,"123":6,"124":11,"125":7,"126":4,"128":31,"129":12,"130":2,"134":6,"135":2,"136":13,"138":21,"139":19,"140":26,"142":6,"143":4,"145":3,"147":1,"148":4,"150":14,"151":20,"152":17,"154":1,"155":1,"156":8,"158":15,"159":2,"160":7,"161":1,"162":9,"163":3,"164":5,"165":12,"166":6,"167":7,"168":1,"169":22,"171":4,"172":6,"173":13,"175":9,"176":2,"177":339,"178":1285,"179":16,"180":3,"181":835}}],["f1",{"2":{"181":2}}],["fn",{"2":{"178":2}}],["ffs",{"2":{"128":1,"129":1}}],["f2",{"2":{"52":2,"177":2,"181":2}}],["fmixtral",{"2":{"31":2}}],["f",{"2":{"21":2,"31":1,"51":2,"52":11,"106":1,"166":1,"167":1,"177":16,"178":6}}],["fences",{"2":{"178":2}}],["fence",{"2":{"128":1,"129":1,"178":2}}],["fear",{"2":{"41":1}}],["features",{"2":{"77":1,"140":1,"169":4}}],["feature",{"2":{"17":1,"21":1,"169":7,"178":1}}],["february",{"2":{"178":1}}],["feb",{"2":{"31":1,"36":1}}],["feedbackfromevaluator",{"0":{"132":1},"2":{"177":3}}],["feedback",{"0":{"131":1},"1":{"132":1},"2":{"21":6,"49":6,"51":8,"52":55,"86":2,"106":5,"128":9,"129":4,"130":4,"132":5,"177":125,"178":4}}],["feel",{"2":{"23":1,"26":1,"31":1,"34":1,"42":1,"57":1,"66":1}}],["feels",{"2":{"12":1}}],["feelings",{"2":{"12":1,"35":2,"41":2,"178":8}}],["fewer",{"2":{"181":1}}],["few",{"2":{"2":2,"6":1,"11":1,"128":1,"150":1,"158":1,"177":2,"178":3}}],["flexibility",{"2":{"177":1}}],["flexible",{"2":{"52":2,"56":1,"177":2,"178":1}}],["fleming",{"2":{"118":3}}],["flowed",{"2":{"67":1,"178":1}}],["flow",{"2":{"61":4,"64":2,"86":1,"178":5,"181":3}}],["flows",{"2":{"35":1}}],["float",{"2":{"178":1,"181":5}}],["float32",{"2":{"58":4,"181":2}}],["float64",{"2":{"16":1,"19":1,"22":2,"45":2,"46":2,"47":2,"64":13,"177":1,"178":20,"181":35}}],["float64int64float64dict",{"2":{"7":1}}],["flashrank",{"2":{"181":4}}],["flashranker",{"2":{"178":1,"181":3}}],["flag",{"2":{"86":1,"177":2,"178":3,"181":10}}],["flags",{"2":{"15":1,"95":1}}],["flavors",{"2":{"10":1,"49":1,"104":1}}],["flavor",{"2":{"0":1,"178":2,"181":1}}],["fruit",{"2":{"178":2}}],["friendly",{"2":{"30":1,"158":2}}],["francisco",{"2":{"19":1}}],["france",{"2":{"15":1,"64":2,"95":3,"105":4,"181":7}}],["frameworks",{"2":{"58":1}}],["frame",{"2":{"7":8}}],["frames",{"2":{"6":1,"7":7}}],["frequencies",{"2":{"181":1}}],["frequently",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"37":1,"178":1}}],["free",{"2":{"23":1,"26":1,"31":2,"34":1,"36":1,"42":1,"57":1,"66":1,"70":1,"74":2,"75":1,"77":1,"178":5,"181":1}}],["freedom",{"2":{"12":1}}],["french",{"2":{"14":1,"91":1,"178":3}}],["from",{"0":{"74":1,"81":1},"2":{"2":5,"3":1,"6":2,"7":13,"8":1,"10":6,"11":2,"12":2,"19":2,"20":1,"23":1,"25":1,"26":1,"31":1,"32":1,"35":1,"37":2,"41":1,"49":1,"51":1,"52":15,"55":2,"56":1,"57":4,"58":2,"60":2,"61":1,"63":2,"64":17,"66":2,"67":2,"72":1,"78":1,"81":2,"85":1,"86":1,"93":1,"95":1,"102":3,"104":4,"105":1,"106":6,"112":1,"113":2,"115":1,"116":4,"118":2,"119":3,"120":1,"122":1,"123":1,"124":1,"125":1,"126":2,"128":2,"132":2,"134":1,"136":1,"140":1,"148":1,"150":1,"151":1,"152":3,"158":1,"166":1,"167":1,"169":2,"176":1,"177":29,"178":79,"179":2,"181":57}}],["fairly",{"2":{"178":1}}],["fail",{"2":{"52":1,"177":3,"178":4}}],["failure",{"2":{"21":1,"49":3,"51":1,"52":1,"177":3}}],["failures",{"2":{"21":1,"51":1,"52":2,"177":1,"178":3}}],["fails",{"2":{"21":3,"49":1,"51":3,"52":2,"177":3,"178":7}}],["failedresponse",{"2":{"86":3}}],["failed",{"2":{"7":2,"19":1,"52":1,"86":2,"177":1,"178":3,"181":1}}],["favors",{"2":{"177":1}}],["favorite",{"2":{"83":1,"91":1}}],["far",{"2":{"177":2}}],["famous",{"2":{"162":1}}],["familiar",{"2":{"1":1}}],["faq",{"2":{"71":1,"93":1,"103":1}}],["fallback",{"2":{"178":7}}],["falls",{"2":{"52":1,"177":1}}],["fall",{"2":{"52":3,"177":3}}],["false`",{"2":{"52":1,"177":1}}],["false",{"2":{"2":1,"7":2,"17":2,"21":1,"51":1,"52":13,"55":3,"64":2,"135":2,"177":14,"178":53,"179":3,"181":15}}],["fahrenheit",{"2":{"19":1}}],["faster",{"2":{"21":1,"28":1,"46":1,"51":1,"52":1,"64":1,"177":1,"181":1}}],["fast",{"2":{"18":1,"28":1,"178":1,"181":1}}],["face",{"2":{"42":1}}],["facilitating",{"2":{"178":2}}],["facilitate",{"2":{"10":1,"49":1,"52":1,"63":1,"104":1,"177":1,"178":2}}],["facing",{"2":{"15":1}}],["facts",{"2":{"167":1}}],["fact",{"2":{"10":1,"17":1,"49":1,"104":1}}],["focused",{"2":{"128":1,"151":1,"162":1}}],["focus",{"2":{"124":1,"158":1,"169":1,"177":1,"178":2}}],["focusing",{"2":{"58":1,"138":1}}],["four",{"2":{"17":1,"86":2,"178":2}}],["foundation",{"0":{"29":1},"2":{"29":1,"178":3}}],["found",{"2":{"7":1,"52":2,"64":2,"81":1,"177":1,"178":22,"181":6}}],["food",{"2":{"10":1,"31":5,"104":1,"106":24}}],["footers",{"2":{"2":1}}],["follow",{"2":{"85":1,"128":1,"129":1,"138":2,"139":2,"140":2,"150":2,"152":1,"154":1,"158":4,"164":2,"169":1,"172":1,"178":1}}],["followed",{"2":{"24":1,"64":1,"181":1}}],["follows",{"2":{"7":1,"48":1,"53":1,"56":1,"115":1,"128":1,"178":1,"181":3}}],["following",{"2":{"5":1,"7":2,"11":1,"17":1,"24":1,"52":1,"58":2,"66":1,"81":1,"88":2,"94":1,"98":1,"115":1,"116":1,"129":1,"158":1,"177":2,"178":8,"181":1}}],["folder",{"2":{"2":1,"11":3,"13":1,"87":4,"178":4}}],["forget",{"2":{"178":1,"181":1}}],["forward",{"2":{"178":1}}],["forwarded",{"2":{"64":12,"181":16}}],["forbidden",{"2":{"165":1,"173":1}}],["forum",{"2":{"76":1}}],["forefront",{"2":{"69":1}}],["forever",{"2":{"67":1,"178":1}}],["formulate",{"2":{"118":1}}],["form",{"2":{"71":1,"178":1,"181":10}}],["former",{"2":{"67":1,"178":1}}],["forms",{"2":{"52":1,"177":1,"181":1}}],["format=",{"2":{"178":2}}],["format=dict",{"2":{"106":2}}],["formatting",{"2":{"51":1,"63":1,"90":1,"142":1,"143":1,"145":1,"150":1,"151":1,"152":1,"158":1,"176":1,"181":3}}],["formatted",{"0":{"141":1,"170":1},"1":{"142":1,"143":1,"171":1,"172":1,"173":1},"2":{"0":2,"89":1,"90":1,"100":1,"105":1,"106":1,"142":1,"143":1,"152":1,"171":1,"172":1,"173":1,"177":1,"181":1}}],["format",{"2":{"10":1,"21":1,"51":1,"52":2,"63":1,"86":1,"89":2,"100":1,"102":1,"104":1,"105":2,"106":3,"110":1,"113":1,"128":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"150":1,"151":1,"152":2,"156":2,"158":3,"160":1,"162":2,"177":2,"178":10,"181":1}}],["forth",{"2":{"41":1}}],["fortunately",{"2":{"6":1,"106":1}}],["forces",{"2":{"142":1}}],["force=true",{"2":{"73":1}}],["force",{"2":{"12":1,"18":1,"24":1,"35":2,"41":1,"73":2,"178":3}}],["for",{"0":{"45":1,"77":1,"78":1,"83":1,"105":1,"106":1,"177":1,"179":1,"180":1,"181":1},"2":{"0":5,"2":6,"3":1,"4":2,"5":1,"6":2,"7":14,"8":1,"10":9,"12":2,"13":2,"14":2,"15":2,"16":1,"17":3,"18":7,"19":2,"21":7,"22":1,"23":5,"24":14,"26":2,"27":1,"30":5,"31":8,"32":2,"33":1,"35":2,"36":3,"37":3,"39":1,"41":2,"42":2,"47":1,"48":1,"49":6,"51":5,"52":30,"53":1,"54":1,"55":3,"56":1,"57":3,"58":28,"60":6,"62":3,"63":5,"64":65,"66":2,"67":12,"69":2,"71":2,"72":1,"74":1,"75":1,"77":4,"78":3,"80":1,"81":1,"82":1,"83":1,"84":1,"86":5,"87":4,"88":3,"89":2,"90":4,"91":1,"93":3,"95":3,"96":3,"97":1,"99":2,"100":2,"103":2,"104":9,"105":7,"106":13,"108":1,"112":2,"113":1,"115":1,"116":2,"118":4,"119":2,"120":1,"122":2,"123":1,"124":5,"125":2,"126":3,"128":3,"129":3,"134":2,"136":3,"138":1,"139":3,"140":2,"142":4,"143":4,"145":3,"147":2,"148":1,"150":2,"151":6,"152":3,"155":1,"156":1,"157":1,"158":8,"159":1,"160":2,"161":1,"162":2,"163":1,"164":1,"165":7,"166":4,"167":4,"168":1,"169":1,"171":2,"172":2,"173":8,"175":2,"177":65,"178":309,"179":3,"180":4,"181":250}}],["five",{"2":{"178":1}}],["fits",{"2":{"97":1,"134":1,"136":2}}],["fit",{"2":{"66":1,"67":2,"169":1,"178":2,"181":3}}],["fixes",{"2":{"177":1}}],["fixed",{"2":{"86":1,"177":1,"178":2}}],["fix",{"2":{"49":2,"52":1,"73":1,"128":1,"130":1,"177":4,"178":1}}],["fixing",{"0":{"51":1,"127":1},"1":{"128":1,"129":1,"130":1},"2":{"10":1,"48":1,"49":1,"52":4,"104":1,"106":1,"177":21}}],["fieldnames",{"2":{"106":1}}],["fields",{"2":{"24":1,"52":4,"60":1,"86":1,"105":1,"106":2,"138":1,"139":1,"140":1,"177":6,"178":21,"181":21}}],["field",{"2":{"10":5,"49":1,"52":2,"64":1,"95":1,"104":6,"106":8,"177":3,"178":1,"181":2}}],["finished",{"2":{"178":2}}],["finish",{"2":{"139":2,"178":5}}],["finance",{"2":{"58":1}}],["finalizes",{"2":{"178":3}}],["finalize",{"2":{"178":17}}],["finally",{"2":{"63":1,"178":1}}],["final",{"2":{"6":1,"52":2,"58":2,"63":1,"64":5,"105":1,"119":1,"177":1,"181":21}}],["finetuning",{"2":{"89":5,"178":2}}],["fine",{"0":{"89":1},"2":{"31":1,"89":1,"178":1}}],["finders",{"2":{"181":1}}],["finder",{"2":{"64":10,"181":23}}],["findings",{"2":{"112":1}}],["finding",{"2":{"41":1,"64":2,"181":2}}],["find",{"2":{"2":1,"8":1,"11":1,"12":1,"13":1,"23":1,"26":1,"29":1,"35":1,"41":2,"49":1,"52":1,"58":5,"61":2,"63":3,"64":7,"66":2,"67":3,"91":1,"177":3,"178":21,"181":44}}],["finds",{"2":{"2":1,"64":1,"177":1,"181":14}}],["filled",{"2":{"178":2}}],["fill",{"2":{"71":1,"106":1,"158":1,"178":14,"181":1}}],["fills",{"2":{"7":1}}],["filechunker",{"2":{"178":1,"181":4}}],["filenames",{"2":{"64":1,"181":1}}],["filename",{"2":{"24":2,"89":1,"178":2}}],["file",{"2":{"4":1,"11":6,"24":3,"28":1,"32":1,"37":1,"64":4,"73":1,"78":1,"89":2,"91":1,"150":1,"151":1,"152":1,"178":23,"181":10}}],["files`",{"2":{"64":1,"181":1}}],["files",{"2":{"2":2,"24":1,"61":1,"64":6,"72":1,"93":1,"181":14}}],["filtered",{"2":{"58":1,"64":2,"181":4}}],["filtering",{"2":{"8":1,"17":1,"63":2,"64":2,"181":6}}],["filter",{"2":{"2":2,"7":1,"64":7,"112":2,"178":1,"181":13}}],["filters",{"2":{"2":2,"8":1,"63":1}}],["fired",{"2":{"165":1,"173":1}}],["firefunction",{"2":{"31":2}}],["fireworks",{"0":{"31":1},"2":{"0":1,"23":1,"27":1,"31":4,"70":1,"106":1,"178":2}}],["fireworksopenaischema",{"2":{"0":1,"31":2,"178":2}}],["first",{"2":{"1":1,"2":1,"6":1,"7":7,"10":2,"13":1,"15":1,"16":1,"23":1,"24":2,"26":1,"28":1,"37":1,"39":1,"41":1,"52":1,"60":2,"63":1,"64":2,"67":3,"73":2,"74":1,"86":1,"87":3,"90":2,"104":2,"105":1,"110":1,"142":1,"160":1,"162":1,"164":1,"166":1,"167":1,"172":1,"177":2,"178":22,"181":13}}],["fur",{"2":{"178":1}}],["furthermore",{"2":{"106":1}}],["further",{"2":{"67":2,"86":2,"177":1,"178":2}}],["fusion",{"2":{"178":2,"181":8}}],["fulfills",{"2":{"140":1}}],["fulfilling",{"2":{"128":1}}],["fully",{"2":{"58":1,"64":1,"86":1,"140":3,"181":1}}],["full",{"2":{"7":1,"64":3,"86":1,"178":9,"181":10}}],["fuzzy",{"2":{"67":1,"178":1}}],["functor",{"2":{"52":1,"177":2}}],["functionality",{"2":{"48":1,"56":1,"140":1,"165":1,"173":1,"177":1,"178":1,"180":3,"181":3}}],["functionalities",{"2":{"0":1,"140":1,"178":1}}],["function",{"0":{"47":1},"2":{"6":1,"7":2,"8":1,"10":4,"12":1,"16":1,"17":1,"20":1,"21":5,"22":2,"24":1,"31":1,"45":1,"47":1,"49":2,"51":6,"52":37,"54":2,"55":1,"58":2,"60":2,"61":1,"63":1,"64":20,"67":12,"73":2,"85":1,"86":2,"87":1,"89":1,"90":1,"100":1,"104":4,"106":10,"110":1,"112":1,"128":3,"140":1,"143":3,"145":3,"165":3,"173":3,"177":58,"178":80,"181":41}}],["functions",{"0":{"10":1,"104":1},"2":{"0":2,"2":1,"7":1,"10":5,"15":1,"21":2,"23":1,"24":1,"27":1,"37":1,"49":4,"51":1,"52":7,"57":1,"58":2,"60":5,"61":1,"63":1,"64":1,"66":2,"73":1,"81":1,"84":1,"85":1,"87":2,"90":1,"103":1,"104":4,"164":1,"165":1,"166":1,"167":1,"172":1,"173":1,"177":8,"178":10,"181":12}}],["func",{"2":{"52":2,"177":4,"181":1}}],["future",{"2":{"1":1,"4":2,"23":1,"58":1,"87":1,"106":1,"177":1,"178":2,"180":1,"181":1}}],["ml",{"2":{"169":1}}],["mm",{"2":{"150":2,"151":3}}],["mdoel",{"2":{"105":1}}],["mdash",{"2":{"52":9,"55":1,"64":6,"67":5,"177":37,"178":143,"179":2,"180":1,"181":141}}],["m1",{"2":{"37":1}}],["mcts",{"2":{"21":1,"49":1,"52":1,"177":1}}],["m",{"2":{"21":2,"23":1,"26":1,"28":3,"30":1,"31":2,"34":1,"37":1,"42":1,"51":2,"52":3,"85":3,"106":1,"177":3,"178":5}}],["myfunction",{"2":{"178":2}}],["mytemplates",{"2":{"177":1}}],["mytype",{"2":{"86":1}}],["myaijudgemodel",{"2":{"181":1}}],["myadd",{"2":{"165":6,"173":6}}],["myabstractresponse",{"2":{"86":5}}],["mybool",{"2":{"86":2}}],["myreranker",{"2":{"60":4,"64":2,"181":2}}],["mymeasurementwrapper",{"2":{"178":1}}],["mymeasurement",{"2":{"19":5,"178":32}}],["my",{"0":{"90":1},"2":{"12":1,"13":1,"23":3,"26":2,"31":1,"34":1,"35":1,"41":1,"74":1,"83":1,"85":3,"106":1,"178":12}}],["msg1",{"2":{"178":2}}],["msgs",{"2":{"178":1}}],["msg=aigenerate",{"2":{"178":7}}],["msg",{"2":{"7":1,"12":2,"16":5,"19":4,"20":2,"22":4,"23":2,"26":1,"27":1,"29":1,"31":2,"35":1,"40":2,"41":1,"45":1,"46":1,"47":2,"52":12,"58":1,"64":2,"86":4,"91":5,"105":3,"106":2,"177":9,"178":119,"181":6}}],["music",{"2":{"150":1,"151":1}}],["must",{"2":{"1":1,"12":2,"21":2,"37":1,"41":2,"51":2,"52":8,"64":1,"87":3,"93":1,"103":1,"106":3,"113":1,"115":1,"116":1,"119":1,"123":1,"128":3,"129":1,"134":2,"136":2,"150":1,"151":1,"152":2,"154":1,"158":1,"162":1,"165":2,"169":1,"173":2,"175":1,"177":12,"178":15,"180":1,"181":8}}],["murmured",{"2":{"67":1,"178":1}}],["mutates",{"2":{"64":1,"181":1}}],["mutated",{"2":{"64":1,"181":4}}],["mutating",{"2":{"52":1,"63":1,"64":1,"177":2,"181":2}}],["mutable",{"2":{"52":1,"178":3}}],["multihits",{"2":{"181":1}}],["multihop",{"2":{"181":1}}],["multicandidatechunks",{"2":{"178":1,"181":2}}],["multifinder",{"2":{"64":1,"178":1,"181":4}}],["multiindex",{"2":{"64":2,"178":1,"181":14}}],["multiplier",{"2":{"181":5}}],["multiplication",{"2":{"47":1}}],["multiple",{"0":{"46":1},"2":{"6":1,"8":1,"14":1,"21":1,"46":1,"52":3,"60":1,"64":2,"67":3,"86":1,"91":1,"96":1,"100":1,"103":1,"105":1,"106":1,"165":1,"166":2,"167":2,"173":1,"177":6,"178":23,"181":10}}],["multi",{"0":{"85":1},"2":{"35":1,"42":1,"64":3,"96":1,"177":2,"178":6,"181":7}}],["much",{"0":{"77":1},"2":{"7":2,"8":1,"13":1,"24":1,"41":1,"52":1,"64":2,"104":2,"106":1,"177":3,"178":3,"181":2}}],["mix",{"2":{"178":1,"181":1}}],["mixed",{"2":{"106":1}}],["mixtral",{"2":{"28":1,"30":1,"31":2,"37":2,"106":2,"178":1}}],["million",{"2":{"96":2}}],["mickey",{"2":{"67":1,"178":1}}],["middleware",{"2":{"178":1}}],["middle",{"2":{"41":1,"110":1,"177":1,"181":1}}],["mimics",{"2":{"67":1,"178":1}}],["mimic",{"2":{"27":1,"86":1,"99":1,"177":2}}],["mind",{"2":{"106":1}}],["minute",{"2":{"74":5}}],["minutes",{"2":{"11":2,"77":2,"178":3}}],["min",{"2":{"64":8,"67":1,"178":1,"181":12}}],["minichunks",{"2":{"67":1,"178":1}}],["minimize",{"2":{"181":1}}],["minimal",{"2":{"56":1}}],["minimum",{"2":{"2":1,"64":2,"67":2,"93":1,"178":2,"181":7}}],["mini",{"2":{"52":2,"177":2,"181":2}}],["mistakes",{"2":{"128":2}}],["mistrall",{"2":{"178":2}}],["mistralai",{"0":{"23":1,"26":1},"2":{"23":3,"25":1,"26":1,"27":1,"70":1,"78":2,"106":1,"178":5}}],["mistral",{"2":{"0":1,"22":3,"23":7,"26":7,"37":1,"40":1,"47":1,"83":2,"178":22}}],["mistralopenaischema",{"2":{"0":1,"23":2,"26":2,"178":4}}],["missing",{"2":{"7":1,"52":1,"139":1,"140":2,"158":1,"178":6}}],["might",{"2":{"7":1,"10":1,"23":2,"26":1,"52":2,"67":1,"75":2,"76":1,"78":1,"104":1,"177":2,"178":2}}],["madrid",{"2":{"95":1,"96":3}}],["made",{"2":{"49":1,"52":5,"118":1,"151":1,"177":6,"178":2}}],["map",{"2":{"181":1}}],["mapped",{"2":{"178":1}}],["mapping",{"2":{"86":1,"178":1}}],["mapreduce",{"2":{"46":1}}],["mask",{"2":{"66":1}}],["mastering",{"2":{"58":1}}],["master",{"2":{"12":2,"35":1,"41":1,"178":5}}],["magenta",{"2":{"58":1,"181":3}}],["maintaining",{"2":{"176":1}}],["maintain",{"2":{"151":1,"178":2}}],["mainly",{"2":{"124":1}}],["main",{"2":{"49":2,"57":1,"58":1,"60":3,"61":1,"64":1,"66":1,"87":1,"102":1,"106":1,"156":1,"178":7,"180":1,"181":3}}],["machine",{"2":{"58":1}}],["machines",{"2":{"35":1}}],["mac",{"2":{"37":1,"78":1}}],["macros",{"2":{"52":1,"178":5}}],["macro",{"2":{"15":1,"34":1,"85":3,"95":1,"128":1,"178":8}}],["may",{"2":{"24":1,"34":1,"42":1,"87":2,"138":1,"140":1,"150":1,"177":1,"178":6,"180":1,"181":1}}],["maybeextract",{"2":{"19":1,"178":18}}],["marks",{"2":{"178":1,"181":1}}],["markup",{"2":{"178":1}}],["marked",{"2":{"118":1,"178":3}}],["markdown",{"2":{"20":3,"150":1,"151":1,"152":1,"158":1,"162":2,"178":20}}],["marsaglia",{"2":{"177":1}}],["mars",{"2":{"17":1,"178":2}}],["margin=",{"2":{"181":1}}],["margin",{"2":{"2":1,"181":4}}],["manner",{"2":{"150":1,"181":3}}],["management",{"2":{"178":1}}],["managed",{"2":{"177":1,"178":4}}],["manage",{"2":{"177":1}}],["manages",{"2":{"106":1,"177":1,"178":1}}],["manageable",{"2":{"63":1,"67":1,"177":1,"178":1}}],["managing",{"2":{"60":1}}],["manually",{"2":{"27":1,"28":1,"73":1}}],["manymeasurements",{"2":{"19":1,"178":2}}],["many",{"0":{"75":1},"2":{"19":1,"23":1,"27":1,"49":2,"66":1,"69":1,"70":1,"83":1,"86":1,"87":1,"100":1,"106":1,"122":1,"123":1,"178":5}}],["mandarin",{"2":{"14":1}}],["manipulations",{"2":{"157":1}}],["manipulation",{"2":{"2":1,"64":1,"65":1,"181":1}}],["matrices",{"2":{"181":1}}],["matrix",{"2":{"22":1,"46":2,"47":1,"63":1,"178":4,"181":26}}],["mat",{"2":{"181":2}}],["matlab",{"2":{"58":1}}],["matter",{"2":{"36":1}}],["materialized",{"2":{"181":1}}],["materialize",{"2":{"45":1,"178":1}}],["material",{"2":{"12":1}}],["matches",{"2":{"178":5,"181":2}}],["matched",{"2":{"122":1,"123":1,"126":1,"181":2}}],["match",{"2":{"7":2,"11":1,"24":3,"58":5,"63":1,"64":9,"67":7,"178":9,"181":16}}],["matching",{"2":{"7":5,"58":1,"64":3,"67":1,"178":1,"181":9}}],["maximize",{"2":{"181":1}}],["maximum",{"2":{"18":1,"21":2,"52":4,"55":1,"67":4,"74":1,"112":1,"177":6,"178":13,"179":1,"181":3}}],["maxes",{"2":{"74":1}}],["max",{"2":{"8":1,"20":1,"21":4,"51":2,"52":21,"55":1,"64":3,"66":1,"67":21,"86":1,"88":1,"106":1,"177":29,"178":45,"179":1,"181":14}}],["makie",{"2":{"64":1,"181":1}}],["making",{"2":{"0":1,"98":1,"103":1}}],["makes",{"2":{"37":1,"104":1,"150":1}}],["make",{"2":{"4":1,"6":1,"7":1,"8":2,"11":1,"29":1,"37":2,"52":2,"64":3,"65":1,"74":1,"78":2,"87":1,"93":2,"106":2,"108":1,"115":1,"116":1,"136":1,"150":3,"151":1,"160":1,"162":1,"177":2,"178":8,"181":7}}],["mention",{"2":{"150":1}}],["mentioning",{"2":{"140":1,"169":1}}],["mentioned",{"2":{"119":1,"124":1,"140":1,"169":1}}],["merely",{"2":{"90":1,"178":1}}],["merged",{"2":{"181":2}}],["merges",{"2":{"181":3}}],["merge",{"2":{"64":2,"178":1,"181":5}}],["melody",{"2":{"67":1,"178":1}}],["memory`",{"2":{"106":1}}],["memory",{"2":{"58":1,"128":1,"157":1,"181":2}}],["memories",{"2":{"12":1,"67":1,"178":1}}],["meetings",{"2":{"150":2,"151":2}}],["meeting",{"2":{"140":1}}],["meets",{"2":{"138":2,"140":1}}],["meet",{"2":{"39":1,"40":1,"42":1,"140":1}}],["messaging",{"2":{"138":1,"178":3}}],["message",{"0":{"34":1,"39":1},"2":{"21":1,"49":2,"51":1,"52":18,"58":1,"64":1,"75":1,"83":2,"85":2,"87":2,"91":3,"95":2,"100":3,"105":2,"106":3,"128":1,"129":2,"132":1,"138":1,"147":1,"177":21,"178":105,"181":4}}],["message`",{"2":{"21":1,"51":1,"52":1,"177":1}}],["messagese",{"2":{"178":1}}],["messages",{"0":{"102":1},"2":{"12":2,"23":1,"24":1,"27":1,"36":1,"52":1,"85":1,"86":1,"87":1,"89":1,"90":5,"91":1,"98":1,"101":1,"102":2,"105":6,"106":1,"177":4,"178":52}}],["mesages",{"2":{"24":1}}],["mechanisms",{"2":{"104":1}}],["mechanism",{"2":{"23":1,"26":1,"67":1,"106":1,"178":1}}],["medium",{"2":{"23":1,"26":1,"181":4}}],["measuring",{"2":{"181":4}}],["measurement",{"2":{"178":1}}],["measurements",{"2":{"19":2,"178":16}}],["measures",{"2":{"64":1,"67":2,"178":2,"181":1}}],["meantime",{"2":{"178":1}}],["meant",{"2":{"128":1,"129":1,"178":2}}],["meaningful",{"2":{"150":1}}],["meaning",{"2":{"125":1,"181":1}}],["means",{"2":{"18":1,"32":1,"37":1,"58":1,"64":2,"66":2,"74":1,"178":2,"181":3}}],["mean",{"2":{"1":1,"7":2,"181":2}}],["me",{"2":{"16":2,"22":3,"23":1,"26":1,"30":2,"31":2,"34":1,"39":1,"42":1,"45":2,"46":4,"47":2,"67":1,"81":1,"86":2,"87":4,"169":1,"178":10}}],["meticulously",{"2":{"142":1,"143":1,"145":1,"151":1}}],["meta",{"2":{"91":1,"178":12}}],["metaprogramming",{"2":{"58":1}}],["metadatamessage",{"2":{"178":2}}],["metadata=true",{"2":{"2":1,"8":1}}],["metadata",{"0":{"111":1},"1":{"112":1,"113":1},"2":{"2":4,"8":1,"63":1,"64":1,"91":5,"112":2,"113":1,"124":1,"178":37,"181":14}}],["met",{"2":{"52":12,"86":2,"106":1,"177":16}}],["methoderror",{"2":{"106":1}}],["methods",{"2":{"52":3,"63":1,"64":1,"98":1,"106":1,"177":3,"178":5,"181":3}}],["method",{"2":{"10":1,"49":2,"52":1,"60":2,"64":14,"67":1,"98":1,"99":1,"104":1,"177":39,"178":81,"179":2,"181":141}}],["metrics",{"2":{"6":1}}],["move",{"2":{"178":1,"181":1}}],["moved",{"2":{"1":1,"177":1,"180":1,"181":1}}],["mock",{"2":{"177":1}}],["monitoring",{"2":{"178":2}}],["month",{"2":{"76":1}}],["monte",{"2":{"21":1,"49":1,"52":1,"177":3}}],["money",{"2":{"76":1,"178":1}}],["moonlight",{"2":{"67":2,"178":2}}],["mouse",{"2":{"67":1,"178":1}}],["modified",{"2":{"181":1}}],["modify",{"2":{"24":1}}],["modal",{"2":{"178":2}}],["modality",{"2":{"65":1}}],["modular",{"2":{"57":1,"177":1}}],["modules",{"2":{"66":1}}],["module",{"0":{"180":1},"2":{"1":1,"10":1,"21":1,"24":1,"48":2,"49":1,"52":4,"53":2,"54":1,"56":2,"58":1,"66":1,"104":1,"177":3,"178":4,"180":4,"181":2}}],["modes",{"2":{"181":1}}],["modern",{"2":{"118":2}}],["moderation",{"2":{"17":1}}],["mode",{"2":{"24":2,"64":1,"106":2,"178":2,"181":1}}],["model3",{"2":{"178":1}}],["model2",{"2":{"178":1}}],["model1",{"2":{"178":3}}],["modeling",{"2":{"58":1}}],["model>",{"2":{"27":1}}],["model=pt",{"2":{"64":1,"181":1}}],["model=",{"2":{"20":2,"21":1,"22":3,"23":3,"26":2,"27":1,"30":2,"31":3,"35":1,"37":1,"43":1,"51":1,"52":3,"62":1,"91":3,"104":2,"105":1,"177":3,"178":40,"181":1}}],["modelspec",{"2":{"178":3}}],["models",{"0":{"22":1,"29":1,"37":1,"42":1},"1":{"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1},"2":{"0":1,"10":1,"15":1,"17":1,"22":1,"23":4,"26":3,"28":2,"29":2,"32":1,"36":1,"37":4,"39":1,"42":1,"52":1,"53":1,"64":2,"67":2,"69":2,"70":1,"71":5,"75":1,"83":3,"84":1,"91":1,"96":1,"98":1,"99":1,"101":1,"104":1,"106":1,"142":1,"143":1,"166":1,"167":1,"171":1,"172":1,"173":1,"177":2,"178":33,"181":7}}],["model",{"0":{"0":1,"15":1,"84":1,"89":1,"99":1},"2":{"0":3,"6":2,"7":2,"10":8,"15":8,"16":1,"17":1,"18":1,"21":3,"22":1,"23":2,"26":1,"27":2,"28":4,"29":5,"30":4,"31":6,"32":2,"33":1,"34":2,"35":1,"37":3,"39":2,"40":2,"41":1,"42":6,"45":2,"46":3,"47":1,"49":8,"51":3,"52":16,"56":1,"57":3,"58":2,"60":2,"62":4,"64":43,"77":1,"82":1,"83":1,"84":6,"85":2,"86":1,"89":1,"90":2,"91":3,"95":3,"98":3,"99":1,"100":1,"101":1,"102":3,"104":8,"105":4,"106":17,"115":2,"116":4,"142":1,"148":1,"165":1,"169":5,"173":1,"177":19,"178":258,"181":123}}],["moment",{"2":{"1":1,"23":1,"27":1,"32":1,"43":1,"178":1}}],["mostly",{"2":{"89":1}}],["most",{"2":{"1":1,"8":1,"23":1,"26":1,"52":2,"58":1,"60":1,"63":2,"64":3,"82":1,"110":1,"112":2,"113":2,"123":1,"124":1,"134":1,"136":1,"148":1,"152":1,"156":1,"169":1,"177":4,"178":11,"181":10}}],["moreover",{"2":{"24":1}}],["more",{"2":{"0":2,"2":1,"5":3,"6":4,"7":4,"8":1,"10":1,"12":2,"13":3,"15":2,"16":1,"17":3,"19":2,"20":1,"21":2,"23":1,"24":3,"26":1,"28":1,"29":1,"37":1,"43":1,"52":4,"55":1,"58":4,"63":1,"64":6,"65":1,"66":1,"67":1,"74":1,"75":1,"76":1,"79":1,"80":1,"82":1,"83":1,"84":1,"86":1,"88":1,"90":1,"93":1,"96":2,"103":1,"104":2,"105":1,"106":5,"115":1,"124":1,"125":1,"128":1,"177":11,"178":55,"179":1,"181":32}}],["❌",{"2":{"0":26}}],["✅",{"2":{"0":46}}],["w",{"2":{"181":3}}],["wp",{"2":{"20":1,"178":2}}],["www",{"2":{"20":1,"178":2}}],["wraps",{"2":{"66":1,"178":7,"181":1}}],["wrap",{"2":{"66":2,"67":2,"91":6,"178":12,"181":1}}],["wrapped",{"2":{"91":1,"177":1,"178":1}}],["wrapper",{"2":{"19":1,"49":1,"52":3,"64":1,"67":2,"95":1,"177":3,"178":17,"181":2}}],["wrapping",{"2":{"53":1,"66":1}}],["wrong",{"2":{"51":1,"52":1,"86":1,"177":1}}],["written",{"2":{"20":1,"138":3,"140":1,"178":2}}],["writing",{"2":{"13":1,"31":1,"36":1,"71":1,"160":1,"162":1,"164":1,"165":3,"172":1,"173":3,"178":2}}],["writer",{"2":{"138":2,"160":2,"162":1}}],["write",{"2":{"4":1,"11":1,"24":2,"102":1,"103":1,"106":4,"123":1,"128":2,"129":1,"158":3,"160":2,"162":3,"164":1,"165":2,"172":1,"173":2,"177":2,"178":1}}],["walk",{"2":{"97":1}}],["walkthrough",{"0":{"105":1,"106":1},"2":{"90":1}}],["wave",{"2":{"67":1,"178":1}}],["wake",{"2":{"67":1,"178":1}}],["warning",{"2":{"178":2,"181":1}}],["warnings",{"2":{"52":1,"177":1}}],["wars",{"2":{"12":1,"35":1,"41":1,"178":5}}],["waiting",{"2":{"106":1}}],["wait",{"2":{"21":1,"51":1,"52":2,"177":2,"178":2}}],["way",{"2":{"21":1,"24":1,"29":1,"49":1,"52":1,"60":1,"77":1,"78":1,"85":1,"103":1,"123":1,"165":1,"173":1,"177":1,"178":3,"181":1}}],["ways",{"2":{"12":1,"41":1,"84":1,"90":1,"178":1}}],["was",{"2":{"7":1,"8":1,"10":1,"24":2,"47":1,"52":2,"60":1,"64":1,"67":1,"73":1,"77":1,"86":1,"104":1,"106":1,"118":1,"120":1,"128":1,"169":2,"177":4,"178":11,"181":5}}],["wanted",{"2":{"52":1,"177":1,"178":2}}],["wants",{"2":{"15":1}}],["want",{"2":{"2":1,"3":1,"7":2,"10":3,"11":1,"19":1,"21":1,"24":1,"51":1,"52":2,"58":2,"60":1,"63":2,"64":3,"74":2,"82":1,"86":2,"87":3,"95":1,"98":1,"101":1,"103":1,"104":3,"105":1,"177":2,"178":32,"181":7}}],["won",{"2":{"27":1,"28":1,"84":1}}],["wonders",{"2":{"8":1}}],["worth",{"0":{"77":1},"2":{"77":1}}],["worst",{"2":{"67":1,"178":1}}],["worry",{"2":{"37":1}}],["words",{"2":{"58":1,"64":1,"66":5,"67":13,"88":2,"112":1,"113":1,"122":1,"123":1,"124":1,"156":2,"158":3,"162":1,"175":1,"178":14,"181":2}}],["word",{"2":{"20":1,"21":4,"51":4,"52":3,"64":2,"66":1,"77":1,"108":1,"110":2,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":3,"129":3,"130":1,"132":1,"134":2,"135":1,"136":2,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":2,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":3,"178":2,"181":9}}],["wordcount",{"2":{"13":1,"24":1,"87":1,"178":3}}],["world",{"2":{"12":1,"13":1,"14":1,"24":4,"52":3,"67":3,"102":1,"103":1,"105":2,"106":1,"108":1,"112":2,"115":1,"116":1,"118":1,"122":1,"123":1,"125":1,"134":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1,"177":1,"178":21}}],["workaround",{"2":{"106":1}}],["workload",{"2":{"58":1}}],["workflow",{"0":{"11":1},"2":{"49":1,"52":1,"138":2,"139":2,"140":2,"178":1}}],["workflows",{"0":{"21":1},"2":{"0":1,"16":1,"21":1,"48":1,"84":1,"104":1,"180":1}}],["working",{"0":{"32":1},"1":{"33":1,"34":1,"35":1,"36":1},"2":{"10":1,"22":1,"53":1,"62":1,"65":1,"76":1,"83":1,"84":1,"104":1,"128":1,"129":1,"130":1,"178":2,"181":1}}],["work",{"2":{"7":1,"11":1,"24":1,"32":1,"37":1,"52":1,"60":1,"86":1,"90":1,"91":1,"93":1,"101":1,"138":1,"177":1,"181":2}}],["workspace",{"2":{"178":2}}],["works",{"0":{"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":1,"23":2,"26":1,"67":1,"78":1,"97":1,"105":1,"106":2,"178":6,"181":1}}],["would",{"0":{"8":1,"89":1},"2":{"3":1,"4":1,"7":2,"13":1,"24":3,"39":1,"58":1,"60":1,"62":2,"73":1,"74":2,"85":1,"86":2,"87":1,"91":3,"106":1,"122":1,"123":1,"178":3,"181":3}}],["welcome",{"2":{"181":1}}],["well",{"2":{"2":1,"21":1,"29":1,"31":1,"51":1,"52":1,"67":1,"106":4,"119":1,"138":3,"140":1,"166":1,"167":1,"177":2,"178":4,"181":5}}],["weaker",{"2":{"178":1}}],["weaving",{"2":{"169":1}}],["weather",{"2":{"19":3}}],["web",{"2":{"58":2,"115":1,"116":9,"161":1,"181":10}}],["websearch",{"2":{"54":1,"55":4,"178":1,"179":5}}],["website",{"2":{"11":1,"72":1}}],["were",{"2":{"20":1,"37":1,"62":1,"151":1,"178":1,"181":1}}],["weighs",{"2":{"19":1,"178":6}}],["weight",{"2":{"19":2,"178":14}}],["went",{"2":{"10":1,"104":1}}],["we",{"0":{"8":1,"88":1},"2":{"2":1,"3":3,"4":1,"5":3,"6":4,"7":8,"8":1,"10":6,"11":2,"12":1,"13":1,"15":1,"17":1,"18":2,"19":1,"20":1,"21":13,"22":2,"23":5,"24":3,"26":3,"27":1,"30":1,"31":1,"32":2,"36":2,"37":1,"42":1,"45":1,"51":13,"52":24,"56":1,"58":5,"60":1,"62":2,"63":2,"64":4,"67":1,"71":2,"74":5,"85":2,"86":14,"87":2,"88":1,"94":1,"97":1,"100":2,"101":1,"103":4,"104":4,"105":9,"106":23,"177":22,"178":52,"181":24}}],["wise",{"2":{"181":1}}],["wisp",{"2":{"67":1,"178":1}}],["wiki",{"2":{"177":2}}],["wikipedia",{"2":{"177":2,"181":3}}],["width",{"2":{"66":1,"67":3,"178":12,"181":5}}],["wide",{"2":{"30":1,"31":1,"52":1,"175":1,"177":1}}],["wins",{"2":{"177":9}}],["winning",{"2":{"52":2,"177":2}}],["winks",{"2":{"41":2}}],["win",{"2":{"11":1}}],["windows",{"2":{"58":1,"67":2,"78":1,"178":2}}],["window",{"2":{"2":1,"67":2,"78":1,"93":1,"177":1,"178":3,"181":12}}],["will",{"2":{"1":2,"2":2,"4":1,"10":1,"13":2,"18":2,"19":1,"21":2,"24":1,"28":1,"35":1,"41":2,"49":1,"51":1,"52":24,"58":1,"60":1,"62":1,"64":21,"67":5,"69":1,"74":1,"76":1,"77":2,"78":1,"85":2,"87":4,"90":3,"91":1,"93":2,"94":1,"95":1,"100":4,"104":1,"106":1,"110":1,"113":1,"128":1,"134":1,"136":1,"138":1,"140":1,"164":1,"165":1,"166":2,"167":2,"172":1,"173":1,"175":1,"177":36,"178":59,"181":39}}],["without",{"2":{"41":1,"52":1,"60":1,"67":1,"73":1,"90":1,"103":1,"116":1,"118":1,"147":1,"151":1,"169":1,"178":4,"181":3}}],["within",{"2":{"10":1,"64":1,"67":2,"104":1,"118":1,"177":2,"178":14,"181":7}}],["with",{"0":{"1":1,"21":1,"32":1,"33":1,"37":1,"38":1,"43":1,"44":1,"95":1,"96":1},"1":{"2":1,"33":1,"34":2,"35":2,"36":2,"38":1,"39":2,"40":2,"41":2,"42":2,"43":1,"44":1,"45":2,"46":2,"47":2},"2":{"0":4,"1":3,"2":1,"6":2,"7":4,"8":1,"10":12,"11":2,"12":2,"13":4,"14":1,"15":1,"18":1,"19":5,"20":2,"21":5,"22":2,"23":5,"24":11,"26":2,"27":4,"28":2,"29":1,"30":3,"31":4,"32":1,"34":2,"35":1,"36":1,"37":2,"39":2,"40":1,"41":1,"42":4,"45":1,"46":1,"49":5,"51":6,"52":27,"53":1,"56":3,"57":1,"58":10,"60":3,"61":4,"62":1,"63":2,"64":24,"65":2,"67":8,"69":1,"71":1,"72":2,"73":1,"74":2,"77":4,"78":1,"83":3,"84":2,"85":4,"86":5,"87":2,"89":3,"90":2,"91":7,"93":3,"95":2,"97":1,"98":2,"99":1,"102":3,"103":7,"104":11,"105":2,"106":9,"108":1,"110":2,"112":1,"115":2,"116":2,"119":2,"120":1,"122":1,"123":1,"124":3,"125":2,"126":1,"128":3,"129":2,"130":1,"132":1,"134":3,"136":2,"138":6,"139":4,"140":3,"142":2,"143":1,"145":1,"148":1,"150":2,"151":3,"152":2,"158":5,"159":2,"161":1,"163":1,"165":2,"166":1,"167":1,"168":1,"169":4,"171":1,"173":2,"177":50,"178":118,"181":68}}],["whose",{"2":{"178":2}}],["who",{"2":{"27":1,"55":2,"152":1,"179":2}}],["whole",{"0":{"7":1},"2":{"10":1,"37":1,"85":2,"101":1,"104":1,"165":1,"173":1,"177":1,"178":5}}],["while",{"2":{"128":1,"165":1,"173":1,"177":1,"178":1}}],["whispered",{"2":{"67":4,"178":4}}],["white",{"2":{"21":1,"51":1,"52":1,"67":1,"177":1,"178":6}}],["whichever",{"2":{"46":1}}],["which",{"2":{"0":1,"7":3,"10":3,"17":1,"21":1,"24":1,"28":1,"34":1,"37":2,"42":1,"49":4,"52":4,"57":2,"58":2,"60":1,"63":1,"64":5,"67":2,"74":1,"82":1,"87":1,"88":1,"89":1,"90":1,"98":1,"99":1,"104":3,"105":1,"106":2,"118":2,"138":1,"150":1,"165":1,"173":1,"177":5,"178":37,"181":23}}],["why",{"0":{"69":1},"1":{"70":1},"2":{"13":1,"19":1,"52":2,"106":1,"128":1,"129":1,"177":1,"178":3}}],["whatever",{"2":{"52":1,"82":1,"177":1,"178":1}}],["what",{"0":{"8":1,"70":1,"90":1},"2":{"2":3,"5":1,"6":1,"7":5,"11":1,"12":2,"13":3,"15":1,"19":1,"21":1,"24":1,"35":1,"40":1,"41":1,"51":1,"52":2,"58":4,"64":4,"67":1,"85":3,"86":1,"90":3,"95":4,"96":1,"98":1,"105":3,"118":1,"128":4,"139":1,"148":1,"160":4,"177":2,"178":21,"181":13}}],["whether",{"2":{"7":4,"10":3,"17":1,"52":2,"55":3,"64":4,"104":3,"106":1,"135":2,"177":8,"178":18,"179":3,"181":11}}],["whenever",{"2":{"181":3}}],["when",{"2":{"0":1,"10":4,"11":1,"17":1,"21":2,"22":1,"24":4,"28":1,"49":5,"51":1,"52":2,"58":1,"60":3,"63":1,"64":1,"73":1,"83":1,"84":1,"86":1,"87":1,"98":1,"102":2,"103":2,"104":4,"105":2,"106":3,"148":1,"150":2,"151":1,"155":1,"159":1,"161":1,"163":1,"164":3,"168":1,"171":1,"172":1,"175":1,"177":8,"178":29,"181":5}}],["whereas",{"2":{"7":1,"106":1}}],["where",{"2":{"0":1,"7":1,"10":1,"12":1,"42":1,"49":1,"52":4,"58":1,"64":3,"66":1,"67":1,"73":1,"74":1,"78":1,"86":1,"90":1,"93":1,"103":1,"104":1,"106":1,"122":1,"123":1,"151":2,"158":1,"177":7,"178":23,"181":21}}],["b64",{"2":{"178":4}}],["b",{"2":{"165":2,"173":2,"177":1}}],["b>",{"2":{"67":2,"178":12,"181":2}}],["br",{"2":{"181":1}}],["broader",{"2":{"178":2}}],["browser",{"2":{"83":1}}],["br>",{"2":{"67":1,"178":6,"181":1}}],["brand",{"2":{"106":4}}],["branching",{"2":{"52":1,"177":1}}],["branch",{"2":{"52":1,"177":1}}],["branches",{"2":{"52":4,"67":1,"177":4,"178":1}}],["brackets",{"2":{"58":1,"64":2,"151":1,"181":3}}],["breath",{"2":{"129":1,"172":1}}],["breaks",{"2":{"67":1,"178":1,"181":1}}],["break",{"2":{"58":1,"129":1,"130":1}}],["bread",{"2":{"31":2,"106":2}}],["bright",{"2":{"178":2}}],["bring",{"2":{"94":1}}],["brings",{"2":{"12":1}}],["briefly",{"2":{"151":1}}],["brief",{"2":{"24":3,"66":1,"102":1,"103":1,"105":2,"108":1,"115":1,"116":1,"122":1,"128":1,"150":3,"155":1,"156":1,"157":1,"158":7,"159":1,"161":1,"162":1,"163":1,"164":1,"165":1,"168":1,"169":1,"171":1,"172":1,"173":1}}],["bge",{"2":{"30":1}}],["binx",{"2":{"181":4}}],["bin",{"2":{"181":4}}],["binint",{"2":{"181":4}}],["binary",{"2":{"181":18}}],["binarycosinesimilarity",{"2":{"178":1,"181":5}}],["binarybatchembedder",{"2":{"178":1,"181":5}}],["biology",{"2":{"156":1}}],["billing",{"2":{"75":2,"76":1,"93":1}}],["bigger",{"2":{"106":1}}],["big",{"2":{"58":1,"62":1,"64":1,"67":1,"178":1,"181":1}}],["bitmatrix",{"2":{"181":3}}],["bits",{"2":{"178":1,"181":13}}],["bitpackedcosinesimilarity",{"2":{"178":1,"181":5}}],["bitpackedbatchembedder",{"2":{"178":1,"181":5}}],["bit",{"2":{"28":1,"39":1,"63":1,"106":1,"156":1,"181":4}}],["biases",{"2":{"178":1}}],["bias",{"2":{"10":1,"18":1,"104":1,"178":12}}],["blank",{"2":{"147":1}}],["blanksystemuser",{"0":{"147":1},"2":{"90":2,"91":1,"177":1,"178":3}}],["black",{"2":{"21":1,"51":1,"52":1,"67":1,"106":1,"177":1,"178":6,"181":1}}],["blogtitleimagegenerator",{"0":{"175":1}}],["blog",{"2":{"138":1,"162":4,"175":4}}],["blob",{"2":{"67":1,"178":7,"181":1}}],["block",{"2":{"52":15,"64":3,"128":1,"158":1,"177":3,"178":27,"181":7}}],["blocks",{"2":{"52":6,"64":2,"165":2,"173":2,"177":3,"178":25,"181":2}}],["blocking",{"2":{"11":1,"96":1}}],["blue",{"2":{"21":1,"51":1,"52":3,"58":1,"177":3,"178":2,"181":3}}],["bang",{"2":{"95":1}}],["bandit",{"2":{"52":1,"177":2}}],["barplot",{"2":{"64":1,"181":1}}],["bad",{"2":{"52":1,"67":1,"177":1,"178":1}}],["bakllava",{"2":{"42":1,"43":1,"178":3}}],["balance",{"2":{"35":1,"41":2,"75":2}}],["baai",{"2":{"30":1}}],["backpropagate",{"2":{"177":5,"178":1}}],["backticks",{"2":{"128":1,"129":1,"152":1,"178":1}}],["back",{"2":{"52":4,"85":1,"86":1,"105":1,"177":5,"178":5}}],["backspace",{"2":{"24":1}}],["background",{"2":{"11":1,"22":1,"83":1}}],["batched",{"2":{"181":3}}],["batchembedder",{"2":{"64":1,"178":1,"181":11}}],["batch",{"2":{"14":1,"64":3,"181":21}}],["bash",{"2":{"28":1,"168":1}}],["basename",{"2":{"87":1,"178":1}}],["base",{"2":{"23":2,"26":1,"27":1,"52":1,"56":1,"151":1,"178":11,"181":1}}],["base64decode",{"2":{"178":1}}],["base64",{"2":{"10":1,"102":1,"104":1,"178":2}}],["based",{"2":{"7":2,"52":3,"58":2,"60":1,"63":6,"64":8,"108":2,"110":4,"115":1,"116":1,"118":1,"119":1,"120":1,"124":1,"128":2,"129":2,"130":1,"135":1,"136":1,"139":1,"156":2,"166":1,"167":1,"175":1,"177":10,"178":16,"181":27}}],["basic",{"0":{"107":1},"1":{"108":1},"2":{"10":1,"55":3,"98":1,"102":1,"104":1,"179":3}}],["bold",{"2":{"181":4}}],["body",{"2":{"158":2,"178":1}}],["bodies",{"2":{"67":1,"178":1}}],["border",{"2":{"67":4,"178":24,"181":4}}],["boundary",{"2":{"181":1}}],["boundaries",{"2":{"178":1,"181":3}}],["bound",{"2":{"52":7,"177":9}}],["bounds",{"2":{"52":1,"118":1,"177":1}}],["bool=isnothing",{"2":{"178":1}}],["bool=true",{"2":{"52":4,"64":1,"177":1,"178":5,"181":1}}],["bool=false",{"2":{"52":12,"177":6,"178":31}}],["boolean",{"2":{"52":2,"86":1,"177":4,"178":17,"181":13}}],["bool",{"2":{"10":2,"21":1,"51":1,"52":14,"55":3,"64":15,"86":3,"104":2,"106":2,"177":16,"178":67,"179":3,"181":62}}],["both",{"2":{"7":4,"21":2,"41":1,"51":2,"52":2,"64":1,"129":1,"177":2,"178":2,"181":9}}],["bm25similarity",{"2":{"64":1,"178":1,"181":6}}],["bm25",{"2":{"8":1,"64":2,"181":15}}],["business",{"2":{"158":1}}],["bullets",{"2":{"181":1}}],["bullet",{"2":{"128":5,"150":7,"151":5,"158":3}}],["bundle",{"2":{"89":1}}],["buy",{"2":{"77":1,"93":1}}],["bug",{"2":{"73":2}}],["but",{"2":{"5":1,"6":2,"7":2,"10":3,"11":2,"12":2,"13":1,"18":1,"19":2,"23":1,"24":2,"28":2,"29":1,"30":1,"31":1,"41":2,"55":1,"58":1,"64":2,"67":3,"73":1,"74":1,"78":1,"85":1,"90":1,"96":1,"97":1,"102":1,"104":3,"106":2,"140":1,"151":1,"171":1,"177":1,"178":21,"179":1,"181":11}}],["built",{"2":{"4":1,"57":1,"60":1,"112":1,"177":1,"178":1,"181":1}}],["builds",{"2":{"64":1,"178":6,"181":4}}],["build",{"2":{"1":1,"2":6,"4":1,"8":2,"10":2,"12":1,"49":1,"56":1,"57":4,"58":4,"60":3,"61":3,"63":4,"64":12,"106":1,"178":9,"181":40}}],["building",{"0":{"1":1},"1":{"2":1},"2":{"21":1,"48":1,"52":1,"56":1,"57":1,"58":1,"64":2,"161":1,"177":2,"180":1,"181":6}}],["berlin",{"2":{"181":1}}],["bearer",{"2":{"178":3}}],["belong",{"2":{"151":1,"152":1,"178":1}}],["below",{"2":{"0":1,"22":1,"52":2,"69":1,"73":1,"74":1,"82":1,"106":1,"113":1,"115":1,"123":1,"158":1,"164":1,"172":1,"177":2,"178":5,"181":1}}],["believe",{"2":{"128":1,"129":1,"130":1}}],["beneath",{"2":{"67":2,"178":2}}],["benefits",{"2":{"106":1}}],["benefit",{"2":{"52":1,"177":1}}],["behave",{"2":{"102":1}}],["behavior",{"2":{"49":1,"60":2,"67":2,"91":1,"106":1,"178":2}}],["behavioural",{"2":{"152":1,"156":1}}],["behaviours",{"2":{"52":1,"177":1}}],["behaviour",{"2":{"21":1,"51":1,"52":1,"106":1,"177":1}}],["behind",{"2":{"67":1,"169":1,"178":1}}],["begin",{"2":{"128":1,"138":1,"165":3,"173":3,"178":1}}],["beginning",{"2":{"85":1,"118":1,"178":3}}],["beginners",{"2":{"58":1}}],["begins",{"2":{"63":1,"169":1}}],["before",{"2":{"52":3,"66":1,"67":1,"74":1,"78":1,"85":1,"93":2,"128":1,"142":2,"150":1,"151":1,"178":7,"181":1}}],["besides",{"2":{"178":2}}],["bespoke",{"2":{"52":1,"178":2}}],["best",{"2":{"5":1,"21":1,"23":2,"26":2,"30":1,"31":1,"34":1,"49":1,"51":1,"52":3,"58":7,"64":1,"87":2,"134":2,"136":2,"140":1,"152":1,"153":1,"154":1,"158":1,"177":12,"178":5,"181":7}}],["been",{"2":{"23":1,"26":1,"42":1,"52":3,"90":1,"103":1,"129":1,"139":1,"140":1,"177":4,"178":3}}],["becoming",{"2":{"12":1}}],["become",{"2":{"12":3,"24":1,"35":1,"41":2,"178":7}}],["because",{"2":{"7":1,"11":1,"21":1,"23":1,"26":1,"28":2,"36":1,"51":1,"52":1,"64":1,"104":1,"106":3,"177":3,"178":5,"181":2}}],["beta",{"2":{"177":3,"178":3}}],["betwee",{"2":{"52":1,"177":1}}],["between",{"2":{"6":1,"7":2,"10":1,"16":2,"21":1,"51":1,"52":5,"58":2,"66":4,"67":5,"98":1,"102":1,"119":1,"138":2,"139":2,"156":1,"177":6,"178":12,"181":11}}],["better",{"2":{"8":1,"49":1,"55":1,"64":1,"67":2,"78":1,"106":3,"115":3,"116":3,"138":1,"140":2,"178":4,"179":1,"181":5}}],["be",{"0":{"73":2},"2":{"1":1,"2":1,"7":2,"10":5,"12":1,"15":4,"16":1,"17":1,"18":1,"21":3,"22":1,"23":1,"24":1,"26":1,"28":1,"35":1,"41":1,"49":2,"51":3,"52":22,"55":1,"56":1,"57":1,"58":3,"60":2,"62":3,"63":1,"64":39,"66":1,"67":7,"69":1,"74":1,"75":1,"76":1,"81":1,"83":1,"84":1,"86":2,"87":3,"88":1,"90":2,"91":2,"94":1,"95":2,"97":1,"98":1,"99":1,"100":1,"101":1,"104":4,"106":2,"108":1,"110":3,"113":1,"115":1,"116":1,"118":1,"119":1,"122":1,"123":1,"124":1,"128":6,"129":4,"134":1,"136":2,"138":3,"139":1,"140":1,"148":1,"150":5,"151":4,"152":8,"156":1,"158":2,"162":1,"165":4,"166":2,"167":2,"169":3,"173":4,"175":3,"177":32,"178":165,"179":1,"180":2,"181":89}}],["being",{"2":{"0":1,"5":1,"7":1,"41":1,"52":1,"150":1,"177":1,"178":6}}],["by",{"2":{"0":3,"6":2,"10":2,"13":1,"21":2,"23":1,"24":6,"27":1,"49":3,"52":5,"56":1,"57":2,"58":4,"60":2,"62":1,"64":6,"66":1,"67":5,"71":1,"72":1,"73":1,"88":2,"90":2,"91":1,"104":1,"105":2,"106":2,"110":2,"112":1,"118":1,"119":1,"122":1,"123":1,"126":1,"128":4,"129":3,"130":1,"138":5,"140":2,"142":1,"150":1,"151":1,"153":1,"154":2,"160":1,"162":1,"164":1,"169":1,"172":1,"177":12,"178":56,"181":40}}],["europe",{"2":{"181":4}}],["eyes",{"2":{"178":1}}],["educator",{"2":{"162":1}}],["educational",{"2":{"105":1,"162":1}}],["editor",{"2":{"138":4}}],["editing",{"2":{"11":1}}],["et",{"2":{"181":3}}],["ethos",{"2":{"82":1}}],["ethereal",{"2":{"67":1,"178":1}}],["etc",{"2":{"0":1,"2":1,"15":1,"21":1,"24":1,"51":1,"52":2,"64":1,"69":1,"90":1,"102":1,"104":1,"112":2,"115":1,"157":1,"176":1,"177":2,"178":10,"181":13}}],["echoes",{"2":{"178":5}}],["echoing",{"2":{"67":1,"178":1}}],["ecosystem",{"2":{"122":1}}],["econometrics",{"2":{"58":1}}],["e2e",{"2":{"61":1}}],["equality",{"2":{"86":1}}],["equal",{"2":{"52":1,"55":1,"64":1,"67":2,"177":1,"178":2,"179":1,"181":3}}],["equivalent",{"2":{"2":2,"13":1,"58":1,"104":1,"178":1}}],["essence",{"2":{"151":1}}],["essential",{"2":{"119":1,"177":2}}],["estimated",{"2":{"96":1}}],["estimate",{"2":{"36":1,"178":1}}],["especially",{"2":{"22":1,"52":1,"66":1,"83":1,"84":1,"105":1,"152":1,"177":2}}],["elapsed",{"2":{"178":22,"181":1}}],["elaboration",{"2":{"118":1}}],["elicit",{"2":{"148":1}}],["else`",{"2":{"166":1,"167":1}}],["elseif",{"2":{"166":1,"167":1}}],["else",{"2":{"18":2,"41":1,"52":2,"86":2,"115":2,"116":2,"156":1,"177":2,"178":5}}],["elementwise",{"2":{"181":1}}],["element",{"2":{"13":2,"16":1,"19":1,"22":1,"24":3,"47":1,"85":1,"87":2,"90":3,"105":2,"178":13,"181":1}}],["evolving",{"2":{"177":1}}],["evolved",{"2":{"151":1}}],["ever",{"2":{"178":2}}],["everyone",{"2":{"162":1}}],["every",{"2":{"60":1,"74":1,"77":1,"78":1,"84":1,"101":1,"176":1,"177":1,"181":1}}],["everything",{"2":{"18":2,"86":1,"91":1,"178":3}}],["eventmessage",{"2":{"178":1}}],["even",{"2":{"19":2,"29":1,"30":1,"51":1,"52":2,"55":1,"62":1,"67":1,"150":1,"177":1,"178":5,"179":1,"181":1}}],["eval=false",{"2":{"52":2,"178":2}}],["evalutes",{"2":{"177":1}}],["evaluted",{"2":{"52":1,"177":1}}],["evaluator",{"2":{"132":2,"177":3}}],["evaluating",{"2":{"17":1,"52":2,"118":1,"135":1,"138":1,"178":2,"181":1}}],["evaluation",{"0":{"117":1},"1":{"118":1,"119":1,"120":1},"2":{"4":1,"6":2,"8":1,"10":1,"49":2,"52":10,"57":1,"104":1,"119":1,"120":1,"177":10,"178":10,"181":9}}],["evaluations",{"0":{"3":1},"1":{"4":1,"5":1,"6":1,"7":1},"2":{"52":3,"64":2,"177":5,"181":4}}],["evaluated",{"2":{"52":8,"128":1,"129":1,"177":3,"178":9}}],["evaluates",{"2":{"21":1,"51":1,"52":3,"177":2,"178":3,"181":2}}],["evaluate",{"0":{"6":1,"7":1},"2":{"3":1,"6":2,"7":2,"21":1,"51":1,"52":11,"119":2,"139":1,"140":1,"177":22,"178":4}}],["eval",{"2":{"7":2,"24":1,"52":9,"178":13,"181":1}}],["evals",{"2":{"4":6,"5":1,"6":3,"7":7,"57":1,"64":4,"178":3,"181":18}}],["effectiveness",{"2":{"138":1,"140":1}}],["effective",{"2":{"123":1,"125":1,"148":1}}],["effectively",{"2":{"12":1,"62":2,"66":1,"101":1,"105":2,"177":1,"178":7}}],["efficiently",{"2":{"58":1,"140":1,"177":1}}],["efficient",{"2":{"52":2,"58":1,"65":1,"158":2,"177":2,"181":3}}],["effort",{"2":{"13":1,"56":1}}],["emails",{"2":{"158":3}}],["email",{"2":{"158":10}}],["emphasize",{"2":{"138":1,"166":1,"167":1}}],["empty",{"0":{"73":2},"2":{"52":2,"55":2,"64":2,"67":6,"177":1,"178":38,"179":2,"181":4}}],["emotions",{"2":{"67":2,"178":2}}],["emotional",{"2":{"12":1}}],["emb",{"2":{"58":1,"181":21}}],["embedder",{"2":{"64":17,"181":29}}],["embedded",{"2":{"46":1,"64":1,"181":6}}],["embedding",{"0":{"45":1,"46":1},"2":{"2":1,"8":2,"16":1,"30":1,"31":1,"46":2,"63":1,"64":8,"178":9,"181":53}}],["embeddings",{"0":{"16":1,"44":1},"1":{"45":1,"46":1,"47":1},"2":{"2":1,"10":2,"16":3,"47":1,"61":2,"63":4,"64":8,"102":1,"104":2,"178":20,"181":60}}],["embeds",{"2":{"2":1,"64":1,"181":4}}],["embed",{"2":{"2":3,"16":3,"22":3,"23":1,"26":1,"30":1,"31":2,"45":2,"46":4,"47":1,"178":4}}],["either",{"2":{"10":1,"19":1,"23":1,"26":1,"42":1,"55":1,"60":1,"74":1,"86":1,"104":1,"177":1,"178":7,"179":1}}],["e",{"2":{"10":1,"19":1,"52":4,"104":1,"106":2,"110":1,"134":1,"136":1,"139":1,"177":2,"178":9,"181":1}}],["errorexception",{"2":{"52":1,"177":1}}],["errors",{"2":{"19":1,"21":1,"22":1,"49":1,"51":1,"52":7,"64":1,"75":1,"106":1,"128":2,"130":1,"140":3,"177":10,"178":3,"181":5}}],["error",{"0":{"73":2,"74":1,"75":1},"2":{"7":2,"49":2,"52":13,"73":2,"74":3,"75":4,"86":1,"106":4,"128":2,"129":1,"177":14,"178":22}}],["earlier",{"2":{"73":1}}],["eating",{"2":{"31":1,"106":1}}],["easiest",{"2":{"82":1,"95":1}}],["easier",{"2":{"0":1,"7":1,"29":1,"64":1,"65":1,"67":1,"104":1,"150":1,"178":1,"181":2}}],["easily",{"2":{"15":1,"57":1,"64":1,"86":1,"89":1,"95":1,"178":2,"181":2}}],["easy",{"2":{"6":1,"47":1,"78":1,"81":1,"83":1,"90":1,"93":1,"106":1,"147":1,"151":1,"162":1,"178":5}}],["each",{"2":{"2":2,"4":1,"7":4,"10":2,"12":1,"15":1,"21":2,"51":2,"52":3,"58":1,"60":2,"62":1,"63":2,"64":21,"67":12,"77":1,"104":1,"110":1,"112":1,"113":1,"119":1,"124":1,"128":1,"139":1,"140":1,"150":3,"151":6,"152":4,"158":1,"162":1,"165":2,"169":2,"173":2,"177":6,"178":24,"181":58}}],["exit",{"2":{"24":1}}],["existing",{"2":{"24":1,"60":1,"64":2,"91":1,"115":1,"116":1,"178":3,"181":3}}],["existent",{"2":{"21":1,"51":1,"52":1,"177":1}}],["exists",{"2":{"7":2,"181":1}}],["exist",{"2":{"6":1,"7":6,"90":4}}],["exclamation",{"2":{"181":1}}],["exclude",{"2":{"55":2,"151":1,"178":1,"179":2,"181":3}}],["exciting",{"2":{"23":1,"27":1}}],["exceed",{"2":{"74":1,"178":2}}],["exceeds",{"2":{"67":1,"178":1}}],["exceeding",{"2":{"64":1,"67":1,"178":1,"181":7}}],["exceeded",{"0":{"74":1},"2":{"21":1,"51":1,"74":2,"75":1}}],["excessive",{"2":{"58":1}}],["exception",{"2":{"52":4,"60":1,"106":1,"177":2,"178":3}}],["except",{"2":{"21":1,"177":1,"178":1}}],["external",{"2":{"118":1,"178":1}}],["extension",{"2":{"178":2,"181":1}}],["extensions",{"2":{"49":1,"56":1}}],["extensively",{"2":{"160":1,"162":1}}],["extensive",{"2":{"159":1,"166":1}}],["extensible",{"2":{"52":1,"57":1,"60":1,"177":1}}],["extended",{"2":{"52":1,"177":1,"178":1}}],["extend",{"2":{"15":1,"23":1,"56":1}}],["extremely",{"2":{"75":1,"119":2,"129":1,"138":1,"160":1,"162":1}}],["extras",{"2":{"64":3,"181":8}}],["extra",{"2":{"28":1,"64":1,"67":2,"86":1,"90":1,"95":1,"151":1,"178":1,"181":1}}],["extractdata",{"0":{"145":1}}],["extractdataxml",{"0":{"143":1}}],["extractdatacotxml",{"0":{"142":1},"2":{"178":1}}],["extracted",{"2":{"112":3,"178":19}}],["extractor",{"2":{"106":1,"178":1}}],["extraction",{"0":{"19":1,"144":1},"1":{"145":1},"2":{"31":1,"64":4,"106":1,"112":2,"142":2,"143":2,"145":2,"178":14,"181":6}}],["extracting",{"2":{"2":1,"19":3,"64":1,"178":2,"181":1}}],["extracts",{"2":{"2":1,"49":1,"52":1,"63":2,"64":2,"112":1,"113":1,"177":1,"178":4,"181":7}}],["extract",{"2":{"2":2,"8":1,"10":2,"19":3,"31":2,"52":5,"91":2,"104":2,"105":1,"106":10,"112":4,"142":1,"143":1,"145":1,"177":5,"178":52,"181":9}}],["executing",{"2":{"181":2}}],["execution",{"0":{"14":1},"2":{"10":1,"49":2,"52":11,"104":1,"129":1,"130":1,"177":6,"178":13}}],["executor",{"2":{"52":1,"178":1}}],["execute",{"2":{"52":3,"177":1,"178":2}}],["executed",{"2":{"49":1,"52":4,"129":1,"177":2,"178":5}}],["executes",{"2":{"10":1,"49":2,"52":2,"104":1,"177":4,"178":2}}],["examine",{"2":{"140":1}}],["example>",{"2":{"173":2}}],["examples",{"0":{"9":1,"50":1,"58":1},"1":{"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"51":1},"2":{"2":5,"4":2,"5":1,"6":1,"13":2,"21":1,"24":1,"32":1,"37":1,"52":2,"58":2,"64":9,"67":3,"70":1,"89":1,"90":1,"96":2,"112":1,"152":2,"159":1,"161":1,"164":1,"168":1,"172":1,"177":1,"178":20,"181":19}}],["example",{"0":{"105":1,"106":1},"2":{"0":1,"1":1,"2":1,"5":1,"7":1,"10":1,"13":1,"15":1,"17":1,"18":1,"21":1,"24":3,"31":1,"37":1,"42":1,"49":1,"52":6,"55":1,"58":1,"62":1,"64":5,"67":3,"77":2,"86":3,"88":1,"89":1,"90":2,"91":1,"97":1,"100":1,"103":1,"104":2,"106":4,"112":1,"118":1,"152":4,"156":1,"165":1,"177":10,"178":45,"179":1,"181":20}}],["exact",{"2":{"64":2,"178":5,"181":10}}],["exactly",{"2":{"10":2,"21":1,"24":1,"49":1,"52":1,"64":1,"104":2,"177":5,"178":1,"181":2}}],["expr",{"2":{"178":4}}],["expression",{"2":{"52":6,"138":1,"178":8}}],["export",{"2":{"78":1,"93":1}}],["exported",{"2":{"24":1,"37":1,"52":1,"177":1}}],["expanded",{"2":{"178":2}}],["expanding",{"2":{"124":1}}],["expand",{"2":{"90":1,"105":1,"124":1,"177":8,"178":1}}],["expands",{"2":{"17":1,"90":1,"177":2}}],["expanse",{"2":{"67":1,"178":1}}],["expected",{"2":{"178":2}}],["expectations",{"2":{"140":1}}],["expects",{"2":{"134":1,"136":1,"165":1,"173":1,"178":1}}],["expertise",{"2":{"159":1}}],["expert",{"2":{"123":1,"125":1,"140":4,"142":1,"143":1,"145":1,"158":1,"159":2,"162":1,"165":1,"168":1,"173":1,"178":1}}],["experiencing",{"2":{"73":1}}],["experience",{"2":{"12":1}}],["experiences",{"2":{"12":1}}],["experiment",{"2":{"52":1,"89":1,"177":1,"178":1}}],["experimental",{"0":{"21":1,"180":1},"2":{"1":3,"10":4,"21":2,"48":3,"52":6,"53":2,"55":1,"56":3,"60":1,"63":1,"64":6,"66":1,"86":1,"104":2,"177":70,"178":176,"179":4,"180":5,"181":279}}],["expensive",{"2":{"3":1,"52":3,"177":6}}],["exploits",{"2":{"178":2}}],["exploitation",{"2":{"177":1}}],["exploration",{"2":{"177":1}}],["explorer",{"2":{"73":1}}],["explore",{"0":{"5":1},"2":{"5":1,"8":1,"41":1,"52":2,"58":1,"86":1,"177":2,"178":1}}],["explanatory",{"2":{"178":1}}],["explanations",{"2":{"0":1,"19":1,"139":1,"140":1}}],["explaining",{"2":{"165":1,"173":1}}],["explain",{"2":{"110":1,"128":1,"129":1,"142":1,"169":1,"181":1}}],["explains",{"2":{"97":1,"169":1}}],["explicit",{"2":{"64":2,"142":1,"143":1,"145":1,"178":8,"181":2}}],["explicitly",{"2":{"2":1,"13":1,"21":1,"23":1,"26":1,"42":1,"52":3,"84":1,"87":1,"122":1,"158":2,"166":1,"167":1,"177":3,"178":5,"180":1}}],["enforces",{"2":{"178":2}}],["enforce",{"2":{"178":7}}],["encapsulates",{"2":{"177":1}}],["encapsulated",{"2":{"177":1}}],["encouraging",{"2":{"158":1}}],["encode",{"2":{"106":2,"178":7}}],["encoded",{"2":{"10":1,"102":1,"104":1,"178":3}}],["enclosed",{"2":{"129":1}}],["enclose",{"2":{"128":1}}],["enhance",{"2":{"125":1,"138":2,"148":1,"181":2}}],["enhancing",{"2":{"53":1,"138":1,"151":1,"178":1}}],["enigmatic",{"2":{"67":2,"178":2}}],["enough",{"2":{"67":2,"178":2}}],["ensuring",{"2":{"67":1,"148":1,"176":1,"178":1}}],["ensure",{"2":{"0":1,"52":2,"86":3,"106":1,"125":2,"128":2,"140":2,"142":1,"143":1,"145":1,"150":1,"151":1,"158":1,"177":2,"178":4,"181":4}}],["ensures",{"2":{"0":1,"67":1,"178":1}}],["enabling",{"2":{"63":1,"177":1,"178":1}}],["enable",{"2":{"91":1,"106":1,"178":1,"181":1}}],["enables",{"2":{"10":1,"49":1,"64":2,"104":1,"181":8}}],["enabled",{"2":{"10":1,"64":1,"104":1,"181":2}}],["enjoy",{"2":{"41":1}}],["en",{"2":{"30":1,"177":2}}],["engaging",{"2":{"169":1}}],["engagement",{"2":{"138":3}}],["engage",{"2":{"30":1}}],["english",{"2":{"64":1,"181":5}}],["engineer",{"2":{"148":1}}],["engineering",{"2":{"17":1,"148":1}}],["engine",{"2":{"54":1,"106":1,"112":2,"124":1,"176":1}}],["enumerates",{"2":{"181":4}}],["enumerated",{"2":{"178":2}}],["enumerate",{"2":{"64":1,"181":1}}],["enum",{"2":{"19":1,"86":2}}],["entire",{"2":{"178":13}}],["entity",{"2":{"124":1}}],["entities",{"2":{"12":1,"19":1,"67":1,"112":1,"124":1,"178":3}}],["entry",{"2":{"60":1,"64":1,"147":1,"181":1}}],["entries",{"2":{"6":1,"106":2,"178":2}}],["enter",{"2":{"24":2}}],["end=25",{"2":{"181":1}}],["ended",{"2":{"178":1,"181":1}}],["end|>",{"2":{"178":2}}],["end>",{"2":{"178":1}}],["ending",{"2":{"178":1}}],["end`",{"2":{"128":1,"165":2,"166":1,"167":1,"173":2}}],["end",{"2":{"7":1,"19":3,"21":1,"31":1,"34":1,"46":1,"51":1,"52":11,"58":2,"60":1,"64":4,"67":1,"74":1,"86":6,"89":2,"106":5,"165":1,"173":1,"177":15,"178":18,"181":12}}],["endpoints",{"2":{"0":1,"178":1}}],["endpoint",{"2":{"0":2,"64":2,"136":5,"178":9,"179":1,"181":6}}],["environments",{"2":{"52":1,"177":1}}],["environment",{"0":{"78":1},"2":{"32":1,"54":1,"58":1,"73":1,"78":2,"91":1,"93":2,"178":8}}],["env",{"2":{"0":1,"23":1,"26":1,"29":2,"30":1,"31":1,"73":3,"78":1,"93":2,"178":7,"181":1}}],["eg",{"2":{"0":1,"2":1,"6":1,"7":2,"8":1,"10":9,"12":2,"13":1,"15":2,"21":6,"23":2,"24":1,"25":1,"27":2,"28":1,"37":1,"42":1,"51":5,"52":10,"57":1,"58":3,"60":6,"61":1,"62":1,"63":3,"64":15,"66":4,"67":3,"69":3,"74":3,"75":1,"77":2,"78":2,"83":1,"84":2,"86":2,"87":1,"95":2,"96":1,"98":3,"99":3,"100":1,"101":1,"102":3,"103":2,"104":10,"106":3,"112":1,"158":2,"165":1,"173":1,"177":15,"178":52,"180":2,"181":40}}],["hd",{"2":{"178":3}}],["hh",{"2":{"150":2,"151":3}}],["huggingface",{"2":{"181":6}}],["hundred",{"2":{"178":2}}],["hundredth",{"2":{"77":1}}],["hundreds",{"2":{"75":2}}],["humans",{"2":{"178":1}}],["human",{"2":{"17":1,"150":1,"151":1,"178":4}}],["href=",{"2":{"67":1,"178":6,"181":1}}],["htmlstyler",{"2":{"178":1,"181":13}}],["html",{"2":{"58":2,"178":1,"181":15}}],["https",{"2":{"20":1,"37":1,"67":2,"75":1,"106":2,"110":1,"177":2,"178":14,"179":1,"181":7}}],["http",{"2":{"10":2,"23":1,"28":1,"62":3,"64":2,"74":1,"104":2,"178":53,"179":1,"181":5}}],["hcat",{"2":{"46":1,"178":2}}],["hit",{"2":{"178":1,"181":2}}],["his",{"2":{"87":2,"178":2}}],["history",{"2":{"52":1,"86":1,"101":1,"177":5,"178":89,"181":1}}],["hint",{"2":{"52":2,"177":2}}],["hints",{"2":{"52":1,"177":1}}],["hi",{"2":{"21":2,"22":1,"23":3,"26":2,"27":1,"28":1,"29":3,"30":1,"31":1,"34":3,"37":1,"39":1,"40":1,"42":2,"51":2,"52":2,"85":3,"87":3,"90":6,"91":3,"96":1,"158":1,"177":12,"178":24}}],["highly",{"2":{"119":2,"125":1,"136":1}}],["highlevel",{"2":{"52":2,"177":2}}],["highlighted",{"2":{"178":1}}],["highlights",{"0":{"49":1,"54":1,"57":1,"66":1}}],["highlighting",{"2":{"20":1,"58":1,"139":1,"140":1,"178":2,"181":1}}],["highlight",{"2":{"10":1,"57":1,"64":1,"128":1,"139":1,"150":1,"181":1}}],["higher",{"2":{"17":1,"52":1,"60":1,"64":2,"67":1,"177":3,"178":4,"181":5}}],["highest",{"2":{"7":1,"58":1,"181":1}}],["high",{"2":{"3":1,"24":3,"58":2,"60":2,"64":2,"103":1,"105":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"178":5,"181":6}}],["hmm",{"2":{"12":1,"41":1,"178":1}}],["hyderephraser",{"2":{"178":1,"181":3}}],["hyde",{"2":{"63":1,"122":1,"123":1,"181":3}}],["hypothetical",{"2":{"8":1,"122":3,"123":2,"181":2}}],["hybrid",{"2":{"8":1,"63":1,"64":2,"181":4}}],["her",{"2":{"112":1}}],["here>",{"2":{"165":1,"173":1}}],["here",{"2":{"23":1,"24":1,"26":1,"29":1,"30":1,"31":2,"32":1,"34":1,"41":1,"42":1,"52":1,"60":1,"67":1,"83":1,"105":1,"177":1,"178":23}}],["hence",{"2":{"98":1,"178":3}}],["heals",{"2":{"181":1}}],["healing",{"2":{"86":1,"104":1}}],["heavily",{"2":{"112":1}}],["heavy",{"2":{"106":1}}],["heavens",{"2":{"67":1,"178":1}}],["hear",{"2":{"67":2,"178":2}}],["hearty",{"2":{"87":2,"178":2}}],["heart",{"2":{"35":1}}],["header",{"2":{"178":3}}],["headers",{"2":{"2":1,"74":1,"178":3}}],["headings",{"2":{"162":1}}],["headlines",{"2":{"158":1}}],["head",{"2":{"41":1}}],["he",{"2":{"19":1,"178":6}}],["height",{"2":{"19":2,"178":14}}],["held",{"2":{"64":1,"181":1}}],["hello",{"2":{"12":1,"14":1,"22":1,"23":1,"26":1,"30":1,"31":1,"39":1,"40":1,"42":1,"52":3,"67":3,"85":1,"177":1,"178":30}}],["helping",{"2":{"181":1}}],["helpful",{"2":{"19":1,"23":1,"26":1,"34":1,"52":4,"53":1,"85":1,"90":1,"97":1,"119":3,"120":1,"128":1,"139":2,"155":1,"159":1,"161":1,"168":1,"177":2,"178":6}}],["helpfulness",{"2":{"6":1,"119":1}}],["helps",{"2":{"19":1,"178":1}}],["help",{"2":{"12":1,"19":1,"21":1,"23":3,"26":3,"30":1,"31":1,"34":1,"35":1,"39":1,"40":1,"41":2,"42":1,"51":1,"64":1,"81":1,"106":1,"150":1,"178":7,"181":1}}],["helper",{"2":{"10":1,"24":1,"37":1,"104":1,"178":2}}],["haiku",{"2":{"178":3}}],["hamming",{"2":{"178":1,"181":9}}],["happened",{"2":{"129":1}}],["happens",{"2":{"98":1,"150":1}}],["happening",{"2":{"58":1}}],["half",{"2":{"64":1,"89":1,"181":1}}],["hallucination",{"2":{"17":1}}],["hackable",{"2":{"60":1}}],["had",{"2":{"24":1,"178":1}}],["hash",{"2":{"178":2,"181":1}}],["hashed",{"2":{"64":5,"178":1,"181":9}}],["hasn",{"2":{"52":2,"177":2}}],["has",{"2":{"15":1,"21":1,"28":1,"42":1,"52":4,"62":1,"74":2,"86":1,"115":1,"116":1,"128":1,"129":1,"140":1,"150":1,"177":2,"178":13,"181":3}}],["harder",{"2":{"64":2,"181":2}}],["hard",{"2":{"13":1,"19":1,"41":1,"76":2,"95":1,"177":1}}],["handling",{"2":{"52":2,"86":1,"177":1,"178":2}}],["handles",{"2":{"86":1,"181":1}}],["handlebars",{"2":{"96":1}}],["handlebar",{"2":{"12":1,"178":1}}],["handle",{"2":{"7":1,"58":1,"64":2,"86":2,"100":1,"106":1,"178":6,"181":5}}],["handcraft",{"2":{"3":1}}],["having",{"0":{"73":2},"2":{"0":1,"67":1,"103":1,"178":1}}],["have",{"0":{"85":1,"86":1,"88":1},"2":{"0":1,"5":1,"6":1,"7":6,"10":2,"11":1,"12":5,"13":1,"15":1,"19":1,"21":2,"22":1,"23":5,"24":3,"26":4,"27":1,"28":2,"30":1,"31":2,"34":1,"35":2,"36":1,"37":1,"41":4,"42":1,"49":2,"51":1,"52":1,"57":1,"58":1,"60":3,"64":4,"66":1,"74":2,"75":1,"77":1,"84":1,"86":1,"87":2,"90":2,"93":1,"94":2,"100":2,"101":1,"103":3,"104":3,"106":4,"112":1,"113":1,"115":1,"116":1,"118":1,"123":1,"139":1,"157":1,"160":1,"162":2,"166":1,"167":1,"175":1,"177":3,"178":27,"181":17}}],["holding",{"2":{"181":3}}],["hold",{"2":{"177":1}}],["holds",{"2":{"2":1,"64":1,"106":1,"181":3}}],["hope",{"2":{"56":1,"57":1,"86":1,"105":1,"115":1,"116":1}}],["honor",{"2":{"52":1,"177":1}}],["hosting",{"2":{"29":1,"83":1}}],["host",{"2":{"29":2,"178":6}}],["hosted",{"2":{"25":1,"64":4,"70":1,"98":1,"99":1,"106":2,"178":2,"181":4}}],["hood",{"2":{"2":1,"18":1,"23":1,"26":1,"28":1,"49":1,"58":1,"97":1,"105":2,"106":1,"178":2}}],["however",{"2":{"3":2,"15":1,"24":1,"75":1,"178":1,"181":1}}],["how",{"0":{"77":1,"85":1,"86":1,"87":1,"89":1,"90":1,"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":2,"7":1,"8":1,"10":1,"11":1,"13":4,"21":1,"22":1,"23":2,"24":4,"26":2,"30":1,"32":1,"36":1,"37":1,"51":1,"52":4,"58":7,"60":1,"64":2,"67":2,"71":4,"74":1,"84":1,"85":2,"86":3,"97":2,"101":1,"102":1,"105":1,"106":3,"119":4,"120":1,"138":3,"140":2,"165":1,"173":1,"177":5,"178":30,"181":6}}],["omit",{"2":{"152":1}}],["observability",{"2":{"178":2}}],["observe",{"2":{"60":1}}],["obj",{"2":{"106":3}}],["objective",{"2":{"123":1,"125":1}}],["objects",{"2":{"87":1,"98":1,"147":1,"178":27,"181":2}}],["object>",{"2":{"86":1}}],["object",{"2":{"6":1,"12":4,"21":2,"35":1,"51":2,"52":10,"63":1,"64":6,"86":1,"91":1,"95":1,"98":1,"99":1,"105":1,"106":12,"177":15,"178":55,"181":10}}],["obtained",{"2":{"178":1}}],["obtain",{"2":{"52":1,"64":2,"105":1,"177":1,"181":2}}],["ocean",{"2":{"67":4,"178":4}}],["occur",{"2":{"151":1}}],["occurrences",{"2":{"67":1,"178":1}}],["occurred",{"2":{"52":2,"177":3}}],["occursin",{"2":{"177":2}}],["occurs",{"2":{"52":1,"178":1}}],["ocrtask",{"0":{"176":1},"2":{"20":2,"178":4}}],["ocr",{"0":{"20":1},"2":{"20":1,"176":1,"178":4}}],["overwrite",{"2":{"178":1,"181":1}}],["overwritten",{"2":{"52":1,"177":1}}],["overrules",{"2":{"178":2}}],["overriden",{"2":{"178":1}}],["overrides",{"2":{"178":4}}],["override",{"2":{"52":2,"84":1,"177":2}}],["overall",{"2":{"119":2,"138":1,"140":1,"178":1}}],["overarching",{"2":{"60":1}}],["overload",{"2":{"181":1}}],["overloaded",{"2":{"91":1}}],["overlaps",{"2":{"181":2}}],["overlapping",{"2":{"181":1}}],["overlap",{"2":{"64":1,"181":1}}],["overhead",{"2":{"28":1}}],["over",{"2":{"19":1,"112":1,"118":1,"150":1,"151":1,"154":1,"165":1,"166":1,"167":1,"173":1,"178":7,"180":1}}],["overview",{"0":{"10":1,"60":1,"104":1},"2":{"0":1,"75":1}}],["o",{"2":{"18":2,"86":4,"178":5}}],["olama",{"2":{"178":1}}],["oldest",{"2":{"178":1}}],["old",{"2":{"12":3}}],["ollamamanagedschema",{"2":{"22":1,"42":2,"178":12}}],["ollama",{"0":{"22":1,"37":1,"83":1},"1":{"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1},"2":{"0":2,"22":4,"28":1,"37":4,"42":1,"69":3,"70":1,"77":1,"82":1,"83":8,"84":2,"98":1,"99":1,"178":22}}],["ollamaschema",{"2":{"0":1,"37":1,"42":5,"47":1,"84":3,"178":3}}],["origin",{"2":{"178":1}}],["originated",{"2":{"178":3}}],["originally",{"2":{"178":2}}],["original",{"2":{"63":1,"67":4,"91":1,"115":6,"116":8,"119":1,"125":1,"126":1,"128":1,"176":1,"177":1,"178":9,"181":11}}],["oriented",{"2":{"157":2}}],["orientation",{"2":{"142":1,"143":1,"145":1}}],["organization",{"2":{"138":1,"178":2}}],["organize",{"2":{"128":1,"150":2,"151":1}}],["org",{"2":{"67":1,"177":2,"178":1}}],["ordered",{"2":{"67":1,"178":1}}],["ordering",{"2":{"63":1,"177":4}}],["orders",{"2":{"20":1,"178":2}}],["order",{"2":{"6":1,"64":1,"67":1,"71":1,"110":1,"178":1,"181":3}}],["or",{"0":{"84":1},"2":{"5":3,"6":3,"7":6,"8":1,"10":8,"11":3,"13":1,"17":2,"18":4,"19":1,"20":1,"21":4,"23":3,"24":3,"26":3,"29":1,"30":1,"31":1,"34":1,"37":2,"39":1,"41":1,"42":2,"43":1,"46":1,"49":2,"51":3,"52":23,"55":1,"56":1,"57":1,"60":5,"61":3,"63":2,"64":20,"66":1,"67":8,"69":2,"71":1,"73":2,"83":1,"84":1,"86":3,"87":2,"91":1,"93":1,"95":1,"98":2,"99":2,"101":2,"102":2,"103":2,"104":8,"110":1,"112":1,"115":1,"116":1,"118":2,"124":3,"125":2,"128":4,"129":1,"135":1,"136":1,"138":2,"139":5,"140":6,"150":2,"151":4,"156":3,"158":3,"162":1,"165":2,"166":1,"167":1,"169":1,"173":2,"175":1,"177":24,"178":150,"179":1,"181":49}}],["our",{"2":{"3":1,"6":1,"7":2,"21":1,"37":1,"51":1,"52":3,"71":4,"74":2,"86":6,"89":1,"105":2,"106":3,"124":2,"169":1,"177":3,"178":6,"181":3}}],["outside",{"2":{"169":1}}],["outlined",{"2":{"142":1,"143":1,"145":1}}],["outline",{"2":{"128":1,"160":2,"162":2}}],["outcomes",{"2":{"52":1,"86":1,"177":2}}],["outcome",{"2":{"49":1,"138":6,"139":6,"140":6,"169":5,"177":3,"178":2}}],["outer",{"2":{"6":1,"7":4}}],["outerjoin",{"2":{"6":1}}],["output`",{"2":{"21":1,"51":1,"52":1,"177":1}}],["outputs",{"2":{"7":1,"20":1,"21":2,"24":1,"51":1,"52":3,"106":1,"178":21}}],["output",{"0":{"21":1},"2":{"6":2,"7":8,"10":3,"21":4,"31":1,"49":4,"51":9,"52":43,"58":2,"64":1,"67":4,"86":7,"87":2,"91":1,"102":3,"104":3,"105":1,"106":17,"110":1,"142":1,"143":1,"145":1,"148":1,"152":2,"156":1,"162":1,"177":32,"178":46,"181":10}}],["out",{"2":{"2":1,"10":1,"21":9,"51":5,"52":36,"56":1,"64":4,"71":1,"74":1,"89":1,"104":1,"105":1,"124":1,"126":1,"177":35,"178":3,"181":7}}],["own",{"2":{"2":1,"15":1,"52":1,"56":1,"64":3,"177":1,"178":3,"181":4}}],["otherwise",{"2":{"52":2,"74":1,"177":4,"178":20,"181":1}}],["others",{"2":{"35":1,"106":1,"150":1}}],["other",{"0":{"23":1,"27":1},"2":{"2":1,"23":2,"27":1,"32":1,"35":1,"36":1,"49":1,"52":4,"58":1,"64":3,"67":1,"69":1,"70":1,"73":1,"78":1,"84":1,"87":2,"91":1,"93":1,"99":1,"112":1,"136":1,"138":1,"151":2,"152":1,"164":1,"172":1,"177":4,"178":11,"181":5}}],["ops",{"2":{"181":1}}],["op",{"2":{"181":10}}],["opposite",{"2":{"181":1}}],["opposed",{"2":{"11":1}}],["opportunity",{"2":{"115":1,"116":1}}],["opt",{"2":{"71":1}}],["option",{"2":{"136":2,"178":2,"181":3}}],["options",{"2":{"52":1,"60":1,"64":1,"74":1,"84":1,"93":1,"177":1,"181":2}}],["options=",{"2":{"37":2}}],["optional",{"2":{"2":2,"10":3,"52":2,"58":1,"63":1,"64":1,"104":3,"177":2,"178":37,"181":1}}],["optionally",{"2":{"2":1,"64":1,"67":1,"87":1,"106":1,"178":4,"181":2}}],["optimized",{"2":{"125":2,"177":1}}],["optimizes",{"2":{"122":1}}],["optimize",{"2":{"21":1,"177":1}}],["operate",{"2":{"21":1,"51":1,"52":1,"64":1,"177":1,"181":1}}],["operations",{"2":{"14":1,"52":2,"64":2,"178":3,"181":2}}],["operation",{"2":{"7":7,"177":1,"178":1,"181":4}}],["opens",{"2":{"181":2}}],["opened",{"2":{"74":1}}],["opentagger",{"2":{"64":1,"178":1,"181":4}}],["opening",{"2":{"24":1}}],["openhermes2",{"2":{"22":3,"37":1,"40":1,"47":1,"83":2,"178":10}}],["open",{"0":{"82":1},"2":{"11":1,"23":1,"26":1,"52":1,"57":1,"58":1,"66":1,"73":1,"82":1,"83":1,"106":2,"177":1,"178":1,"181":1}}],["openaiapi",{"0":{"73":1}}],["openaischema",{"2":{"0":2,"91":5,"99":1,"100":3,"105":3,"178":41}}],["openai",{"0":{"23":1,"27":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"76":1},"1":{"70":1},"2":{"0":4,"10":1,"16":1,"21":1,"23":3,"25":1,"26":1,"27":2,"42":1,"51":1,"52":1,"69":1,"71":6,"72":4,"73":3,"74":2,"75":2,"76":3,"77":2,"78":6,"79":2,"80":1,"90":1,"93":9,"98":2,"99":3,"100":3,"104":1,"105":6,"106":1,"112":1,"177":1,"178":61,"181":1}}],["ongoing",{"2":{"178":1}}],["online",{"2":{"72":1,"93":1,"178":4}}],["only",{"2":{"2":1,"7":8,"8":1,"10":3,"12":1,"18":1,"21":6,"23":2,"24":5,"27":2,"32":1,"42":1,"49":2,"51":5,"52":15,"54":1,"58":1,"63":1,"64":2,"67":2,"74":1,"84":1,"87":1,"90":2,"103":1,"104":4,"105":3,"106":2,"108":1,"110":1,"112":1,"115":3,"116":3,"118":1,"125":1,"128":1,"134":1,"136":1,"150":3,"151":1,"152":1,"155":1,"158":1,"159":1,"161":1,"163":1,"168":1,"169":1,"171":1,"177":23,"178":63,"181":10}}],["once",{"2":{"6":1,"7":1,"56":1,"83":1,"89":1,"105":1,"160":1,"162":1,"178":7}}],["ones",{"2":{"23":1,"24":1,"27":1,"64":2,"70":1,"112":1,"178":1,"181":2}}],["one",{"0":{"5":1,"45":1},"2":{"5":1,"6":2,"10":1,"12":1,"13":1,"15":1,"21":1,"24":1,"25":1,"30":1,"31":1,"41":1,"42":1,"43":1,"45":1,"51":1,"52":4,"54":1,"58":1,"60":1,"62":1,"63":1,"64":1,"74":1,"77":2,"78":1,"86":2,"87":1,"103":1,"104":1,"129":1,"134":2,"136":2,"152":2,"158":1,"165":1,"173":1,"177":5,"178":32,"181":9}}],["on",{"2":{"0":1,"7":4,"10":1,"11":1,"13":3,"17":2,"19":1,"21":3,"22":1,"23":2,"24":2,"26":1,"30":1,"37":1,"42":1,"47":1,"51":3,"52":12,"57":1,"58":7,"60":1,"63":5,"64":8,"67":4,"71":1,"72":1,"73":2,"74":1,"75":2,"76":1,"78":2,"87":3,"93":1,"103":1,"104":1,"106":6,"108":2,"110":4,"112":1,"115":2,"116":2,"118":1,"119":3,"120":3,"124":1,"128":3,"129":2,"130":1,"136":1,"138":3,"139":3,"140":3,"151":2,"156":2,"158":2,"162":1,"166":1,"167":1,"169":2,"175":1,"177":23,"178":43,"181":18}}],["office",{"2":{"158":1}}],["offloaded",{"2":{"37":1}}],["offload",{"2":{"28":1}}],["off",{"2":{"15":1,"78":1,"178":1}}],["offering",{"2":{"71":1}}],["offers",{"2":{"21":1}}],["offer",{"2":{"13":1,"15":1,"138":1,"140":1}}],["often",{"2":{"5":1,"6":1,"7":2,"11":1,"29":1,"64":2,"178":19,"181":5}}],["of",{"0":{"0":1,"51":1},"2":{"0":5,"2":5,"3":3,"4":1,"5":4,"6":5,"7":28,"8":1,"10":7,"11":2,"12":3,"13":4,"14":1,"15":2,"16":1,"18":1,"19":4,"20":4,"21":5,"23":4,"24":15,"26":4,"28":1,"29":1,"30":1,"31":3,"32":1,"35":1,"36":2,"37":1,"41":1,"42":1,"45":2,"46":1,"47":1,"48":1,"49":8,"51":5,"52":34,"55":4,"56":3,"57":7,"58":13,"60":7,"63":4,"64":59,"65":2,"66":4,"67":29,"69":2,"71":2,"72":1,"73":2,"74":6,"75":3,"76":2,"77":4,"82":1,"86":5,"87":2,"89":5,"90":5,"91":2,"94":2,"95":7,"96":6,"97":2,"98":3,"99":2,"100":3,"101":1,"102":2,"103":4,"104":6,"105":8,"106":15,"112":1,"118":4,"119":3,"124":1,"125":1,"128":10,"129":2,"134":2,"136":4,"138":3,"139":4,"140":3,"142":1,"150":8,"151":6,"152":2,"155":1,"156":2,"158":2,"159":1,"161":2,"163":2,"164":1,"165":7,"166":2,"167":1,"168":2,"169":4,"171":2,"172":1,"173":7,"175":3,"177":75,"178":348,"179":4,"181":245}}],["ss",{"2":{"150":2,"151":3}}],["sk",{"2":{"178":1}}],["skilled",{"2":{"158":1}}],["skips",{"2":{"87":1,"103":1,"178":10,"181":2}}],["skipped",{"2":{"52":1,"178":1}}],["skip",{"2":{"52":9,"64":5,"169":1,"177":2,"178":7,"181":7}}],["sky",{"2":{"67":1,"178":3}}],["svilupp",{"2":{"67":1,"178":6,"181":1}}],["snippet",{"2":{"81":1,"122":1}}],["snippets",{"2":{"52":1,"166":1,"167":1,"178":1,"181":7}}],["snowball",{"2":{"181":1}}],["snow",{"2":{"67":1,"178":1}}],["slice",{"2":{"181":4}}],["slicing",{"2":{"166":1,"167":1}}],["sliding",{"2":{"178":1,"181":3}}],["slightly",{"2":{"67":1,"178":1}}],["slots",{"2":{"162":1}}],["slot",{"2":{"106":1}}],["slowly",{"2":{"96":1}}],["slow",{"2":{"96":1,"178":1}}],["sleep",{"2":{"74":1,"178":1}}],["slack",{"2":{"57":1,"66":1}}],["swiftly",{"2":{"67":1,"178":1}}],["switching",{"2":{"52":1,"177":1}}],["switch",{"2":{"11":2,"51":1}}],["swap",{"2":{"64":1,"181":2}}],["src",{"2":{"63":1,"67":1,"178":7,"181":1}}],["sqrt",{"2":{"177":1}}],["square",{"2":{"58":1,"64":2,"181":2}}],["sqlcoder",{"2":{"83":1}}],["sqlservercentral",{"2":{"20":1,"178":2}}],["sql",{"2":{"20":3,"178":6}}],["smoke",{"2":{"67":1,"178":1}}],["smith",{"2":{"112":2}}],["smiling",{"2":{"42":1}}],["smiles",{"2":{"40":1,"41":1}}],["smirks",{"2":{"41":1}}],["smallint",{"2":{"86":5}}],["small",{"2":{"7":1,"11":1,"23":1,"26":1,"63":1,"150":1,"164":1,"167":1,"172":1,"177":2,"178":2}}],["smaller",{"2":{"2":1,"67":6,"106":1,"177":1,"178":7}}],["shift",{"2":{"181":1}}],["shiny",{"2":{"178":1}}],["shimmering",{"2":{"67":2,"178":2}}],["shell",{"2":{"168":1}}],["shapley",{"2":{"169":1}}],["shap",{"2":{"169":10}}],["sharegptschema",{"2":{"178":3}}],["sharegpt",{"2":{"89":1}}],["share",{"2":{"71":1,"72":1,"93":1}}],["shared",{"2":{"62":2,"64":2,"67":1,"90":1,"165":1,"173":1,"178":2,"181":2}}],["sharing",{"2":{"24":1}}],["shallow",{"2":{"52":1,"177":1}}],["shall",{"2":{"12":1}}],["shot",{"2":{"177":1}}],["shortcut",{"2":{"181":1}}],["shortcuts",{"2":{"128":1,"129":1,"130":1}}],["short",{"2":{"52":1,"58":1,"67":1,"112":1,"118":1,"120":1,"150":2,"156":1,"158":1,"177":1,"178":5}}],["shorter",{"2":{"29":1}}],["should",{"2":{"2":1,"7":1,"12":1,"22":1,"35":1,"41":1,"52":1,"60":1,"64":2,"67":1,"78":1,"79":1,"83":2,"86":2,"91":1,"93":1,"102":1,"106":2,"110":3,"118":1,"136":2,"150":4,"151":4,"152":7,"158":2,"162":1,"169":2,"175":2,"177":6,"178":35,"181":2}}],["showcase",{"2":{"148":1}}],["shows",{"2":{"20":1,"24":1,"60":1,"89":1,"178":4}}],["show",{"2":{"2":1,"7":1,"52":2,"83":1,"86":1,"90":1,"177":3,"178":1}}],["side",{"2":{"105":1}}],["sister",{"2":{"89":1}}],["since",{"2":{"87":1,"105":1,"150":1}}],["singletons",{"2":{"178":3}}],["single",{"2":{"67":2,"89":1,"178":9,"181":4}}],["situations",{"2":{"69":1}}],["silent",{"2":{"67":2,"178":2}}],["sibblings",{"2":{"52":2,"177":2}}],["size=8",{"2":{"181":1}}],["size`",{"2":{"178":1}}],["size",{"2":{"45":2,"46":2,"47":1,"64":2,"178":5,"181":13}}],["sizes",{"2":{"8":1,"64":2,"181":11}}],["sig",{"2":{"106":3}}],["significant",{"2":{"118":1,"151":2}}],["signing",{"2":{"72":1}}],["sign",{"2":{"54":1}}],["signatures",{"2":{"52":1,"177":1}}],["signature",{"2":{"21":1,"51":1,"60":1,"61":4,"106":7,"178":9}}],["sigh",{"2":{"41":1}}],["simultaneously",{"2":{"21":1,"51":1,"52":1,"177":1}}],["similarly",{"2":{"96":1,"178":1}}],["similarity",{"2":{"2":2,"8":1,"47":2,"63":2,"64":5,"66":1,"67":1,"178":1,"181":33}}],["similar",{"2":{"2":1,"10":2,"52":1,"64":3,"67":1,"101":1,"104":2,"177":2,"178":6,"181":6}}],["simplistic",{"2":{"178":1}}],["simplification",{"2":{"105":1}}],["simply",{"2":{"2":1,"10":1,"20":1,"24":1,"28":1,"29":1,"36":1,"52":1,"64":1,"66":1,"86":2,"87":2,"93":1,"95":2,"104":1,"115":1,"116":1,"147":1,"177":1,"178":1,"181":10}}],["simplebm25retriever",{"2":{"178":1,"181":4}}],["simpleanswerer",{"2":{"64":2,"178":1,"181":8}}],["simplegenerator",{"2":{"64":2,"178":1,"181":5}}],["simplerefiner",{"2":{"64":1,"178":1,"181":6}}],["simpleretriever",{"2":{"64":5,"178":1,"181":11}}],["simplerephraser",{"2":{"62":1,"178":1,"181":4}}],["simplest",{"2":{"60":1,"64":1,"85":1,"181":1}}],["simpleindexer",{"2":{"58":2,"64":3,"178":1,"181":9}}],["simple",{"0":{"1":1,"34":1,"39":1,"45":1},"1":{"2":1},"2":{"7":1,"8":1,"10":1,"16":1,"22":1,"43":1,"47":1,"49":1,"52":1,"58":1,"74":2,"77":2,"83":1,"87":2,"120":1,"132":1,"175":1,"177":1,"178":14,"181":9}}],["scene",{"2":{"178":1}}],["scenarios",{"2":{"52":1,"177":2,"181":1}}],["science",{"2":{"162":1,"169":1}}],["scientific",{"2":{"58":1}}],["scientist",{"2":{"24":2}}],["scans",{"2":{"178":3}}],["scanned",{"2":{"176":1}}],["scan",{"2":{"150":1,"151":1,"178":4}}],["scaled",{"2":{"181":1}}],["scale",{"2":{"58":1,"119":2,"120":2,"178":1,"181":6}}],["scoring=thompsonsampling",{"2":{"52":1,"177":1}}],["scoring",{"2":{"52":1,"119":1,"177":10,"181":1}}],["score==nothing",{"2":{"181":1}}],["scores2",{"2":{"181":3}}],["scores1",{"2":{"181":3}}],["scores=false",{"2":{"181":1}}],["scores",{"2":{"52":1,"58":1,"64":5,"119":1,"177":7,"181":28}}],["scored",{"2":{"21":1,"51":1,"52":1,"177":1}}],["scoreparametersstringstringstringsubstrin",{"2":{"7":1}}],["scoreretrieval",{"2":{"7":1}}],["score",{"2":{"6":3,"7":10,"10":2,"52":20,"58":1,"64":12,"119":2,"177":32,"178":5,"181":35}}],["scope",{"2":{"52":1,"177":1}}],["script",{"2":{"178":2}}],["scripting",{"2":{"168":2}}],["scratch",{"2":{"52":1,"178":2}}],["scratches",{"2":{"41":1}}],["scrollable",{"2":{"24":1}}],["screenshot",{"2":{"20":3,"176":1,"178":4}}],["schema=myschema",{"2":{"177":1}}],["schema=json3",{"2":{"106":2}}],["schema=openaischema",{"2":{"91":1,"178":1}}],["schema=pt",{"2":{"84":1}}],["schema",{"0":{"42":1,"84":1},"2":{"0":5,"10":2,"22":5,"23":2,"26":1,"27":1,"29":1,"30":1,"31":1,"37":1,"39":1,"42":7,"45":2,"46":2,"47":2,"52":4,"84":5,"90":2,"91":7,"99":1,"100":1,"104":2,"105":7,"106":5,"177":5,"178":177}}],["schemas",{"0":{"100":1},"2":{"0":1,"91":1,"98":1,"100":2,"178":2}}],["satisfactory",{"2":{"139":2}}],["satisfy",{"2":{"128":1,"140":1}}],["saving",{"2":{"64":1,"178":2,"181":2}}],["saverschema",{"2":{"91":7,"178":16}}],["saves",{"2":{"52":1,"177":2,"178":4,"181":1}}],["saved",{"2":{"11":1,"24":2,"52":2,"64":1,"87":1,"91":1,"93":1,"103":1,"177":2,"178":7,"181":4}}],["save",{"2":{"2":2,"4":1,"7":1,"13":1,"24":4,"32":1,"52":2,"63":2,"72":1,"77":2,"87":3,"89":3,"91":2,"93":1,"106":1,"177":1,"178":27}}],["safety",{"2":{"67":1,"178":1}}],["safely",{"2":{"52":1,"178":1}}],["safe",{"2":{"52":4,"178":6}}],["sampling",{"2":{"177":5,"178":1}}],["samplenode",{"2":{"52":25,"177":45,"178":1}}],["sample",{"2":{"52":23,"177":58,"178":11,"181":1}}],["samples=1",{"2":{"52":2,"177":2}}],["samples=2`",{"2":{"21":1,"51":1,"52":1,"177":1}}],["samples",{"2":{"21":3,"49":3,"51":3,"52":33,"177":55,"178":4}}],["same",{"2":{"6":1,"10":2,"11":1,"21":2,"34":1,"49":3,"51":1,"52":2,"64":3,"67":2,"74":1,"78":1,"86":2,"87":1,"93":1,"102":1,"104":2,"105":1,"128":1,"129":1,"177":9,"178":18,"181":18}}],["salty",{"2":{"87":2,"178":2}}],["salt",{"2":{"19":2}}],["san",{"2":{"19":1}}],["says",{"2":{"75":1,"138":2,"139":2,"140":2}}],["say",{"2":{"12":1,"21":2,"22":1,"23":3,"26":2,"27":1,"28":1,"29":3,"30":1,"31":1,"34":2,"37":1,"39":1,"40":1,"42":2,"51":2,"52":2,"85":1,"87":3,"90":6,"91":3,"96":1,"105":1,"108":1,"110":1,"115":1,"116":1,"177":11,"178":22}}],["said",{"2":{"10":1,"49":1,"104":1,"178":2}}],["sorted",{"2":{"181":1}}],["sorry",{"2":{"178":3}}],["soft",{"2":{"76":2}}],["solve",{"2":{"164":1,"166":1,"167":1,"172":2}}],["solving",{"2":{"140":1,"164":2,"166":2,"167":2,"172":1}}],["solutions",{"2":{"93":1}}],["solution",{"2":{"73":1,"128":2,"164":1,"166":1,"167":1,"172":1,"178":2}}],["solid",{"2":{"67":1,"178":6,"181":1}}],["source=",{"2":{"181":1}}],["source2",{"2":{"64":1,"181":1}}],["source1",{"2":{"64":1,"181":1}}],["sourced",{"2":{"10":1}}],["source",{"0":{"82":1},"2":{"5":1,"6":1,"10":1,"13":1,"23":1,"24":1,"26":1,"52":14,"55":1,"58":1,"64":17,"67":7,"82":1,"87":1,"106":2,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":2,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":2,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":2,"175":1,"176":1,"177":38,"178":152,"179":2,"180":1,"181":158}}],["sources=false",{"2":{"181":1}}],["sources=map",{"2":{"58":1}}],["sources",{"2":{"4":2,"6":1,"58":3,"64":17,"181":50}}],["so",{"2":{"4":1,"7":1,"15":2,"18":1,"21":4,"23":2,"24":1,"26":2,"30":1,"31":2,"36":1,"42":1,"51":1,"52":1,"60":1,"64":3,"67":1,"73":1,"74":2,"75":1,"79":1,"87":2,"101":1,"103":1,"105":3,"106":5,"112":1,"128":1,"129":1,"150":1,"177":3,"178":21,"180":1,"181":4}}],["sometimes",{"2":{"106":1,"116":1}}],["something",{"2":{"30":1,"31":1,"41":1,"42":1,"105":1,"158":2}}],["somewhere",{"2":{"103":1}}],["some",{"2":{"2":2,"7":1,"8":1,"10":1,"20":2,"21":2,"22":1,"24":2,"27":1,"28":1,"37":1,"42":2,"51":1,"52":1,"58":4,"60":3,"63":1,"64":2,"66":2,"67":1,"83":1,"86":1,"93":1,"101":1,"103":2,"104":1,"106":3,"115":2,"151":1,"160":1,"162":1,"164":1,"172":1,"175":1,"177":1,"178":24,"181":12}}],["synthetic",{"2":{"181":2}}],["syntactically",{"2":{"140":1}}],["syntax",{"2":{"2":1,"13":1,"20":1,"21":1,"24":4,"51":1,"52":1,"74":1,"86":1,"87":1,"89":1,"106":1,"140":3,"158":1,"163":1,"166":3,"167":3,"171":1,"177":2,"178":4}}],["sync",{"2":{"178":1}}],["synced",{"2":{"72":1,"93":1}}],["synonyms",{"2":{"124":2}}],["symphony",{"2":{"67":1,"178":1}}],["symbols",{"2":{"178":1,"181":3}}],["symbolic",{"2":{"90":1}}],["symbol=",{"2":{"64":1,"177":1,"181":1}}],["symbol",{"2":{"6":1,"13":2,"24":3,"58":1,"64":3,"87":2,"103":1,"177":6,"178":34,"181":32}}],["system+user",{"2":{"177":1}}],["systematic",{"2":{"164":1,"166":1,"167":1,"172":1}}],["system=",{"2":{"87":1,"91":1,"103":1,"178":3}}],["systemmessage",{"2":{"12":3,"24":3,"35":1,"41":1,"85":1,"87":2,"90":3,"102":1,"103":2,"105":1,"178":11}}],["systems",{"2":{"10":1,"67":2,"104":1,"118":1,"178":5}}],["system",{"0":{"1":1,"60":1},"1":{"2":1},"2":{"3":1,"12":1,"13":2,"17":2,"24":2,"36":2,"52":1,"58":2,"60":2,"78":1,"87":3,"90":3,"100":1,"102":1,"103":3,"105":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":5,"148":2,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":2,"178":51}}],["stemmer",{"2":{"181":2}}],["stemmer=nothing",{"2":{"181":1}}],["stemming",{"2":{"181":1}}],["steroids",{"2":{"106":1}}],["step=4",{"2":{"181":1}}],["steps`",{"2":{"151":1}}],["steps",{"2":{"24":1,"58":3,"60":1,"63":1,"64":4,"104":1,"105":1,"128":4,"150":1,"151":14,"158":1,"164":1,"166":1,"167":1,"178":2,"181":9}}],["step",{"2":{"2":1,"8":1,"21":2,"51":2,"52":3,"56":1,"58":4,"60":7,"62":3,"63":2,"64":10,"86":1,"87":1,"90":2,"103":1,"105":4,"106":1,"115":1,"116":1,"122":1,"123":1,"125":1,"126":1,"128":6,"129":4,"130":2,"138":2,"139":2,"140":2,"142":2,"160":2,"162":2,"164":2,"172":2,"177":3,"178":2,"181":21}}],["stop",{"2":{"76":1,"178":2,"181":1}}],["stopwords",{"2":{"66":2,"181":4}}],["stood",{"2":{"67":1,"178":1}}],["storage",{"2":{"178":1,"181":2}}],["storyteller",{"2":{"169":1}}],["storytellerexplainshap",{"0":{"169":1}}],["storytelling",{"2":{"169":1}}],["story",{"2":{"67":4,"169":6,"178":4}}],["storing",{"2":{"64":1,"181":8}}],["store",{"2":{"85":1,"87":3,"178":17}}],["stored",{"2":{"52":2,"64":1,"177":2,"181":1}}],["stores",{"2":{"10":1,"49":1,"52":2,"104":1,"177":2,"178":3,"181":3}}],["stipple",{"2":{"58":1}}],["still",{"2":{"1":1,"58":1,"73":1,"178":2}}],["stylistic",{"2":{"138":2}}],["styling",{"2":{"58":1,"181":5}}],["styled",{"2":{"181":1}}],["styles=",{"2":{"181":3}}],["styles",{"2":{"178":2,"181":10}}],["styler=rt",{"2":{"181":4}}],["styler",{"2":{"178":1,"181":21}}],["style=",{"2":{"67":1,"178":6,"181":1}}],["style",{"2":{"2":1,"5":2,"6":1,"7":11,"64":1,"67":1,"90":1,"96":1,"138":2,"142":1,"143":1,"145":1,"148":1,"165":1,"169":1,"173":1,"178":11,"181":12}}],["stdout",{"2":{"52":12,"177":1,"178":17}}],["stub",{"2":{"178":1}}],["stumbled",{"2":{"35":1,"178":1}}],["study",{"2":{"150":1}}],["studying",{"2":{"5":1,"7":1,"151":1}}],["studies",{"2":{"58":1}}],["studied",{"2":{"5":1,"7":1}}],["studio",{"0":{"32":1},"1":{"33":1,"34":1,"35":1,"36":1},"2":{"32":2,"36":1,"178":2}}],["strength",{"2":{"181":2}}],["stream",{"2":{"178":9,"181":3}}],["strong",{"2":{"178":4}}],["strongly",{"2":{"10":1}}],["stranger",{"2":{"67":1,"178":1}}],["strategies",{"2":{"63":1}}],["strategy",{"2":{"2":1,"63":5,"64":2,"181":5}}],["strict",{"2":{"138":1,"142":1,"143":1,"145":1}}],["strictly",{"2":{"63":1,"118":1,"151":1,"165":1,"173":1}}],["strin",{"2":{"106":1}}],["string=",{"2":{"67":2,"178":4}}],["strings",{"2":{"7":1,"64":3,"66":3,"67":5,"178":19,"181":16}}],["string",{"0":{"40":1},"2":{"7":4,"10":1,"13":5,"19":1,"21":1,"24":8,"31":2,"34":1,"42":1,"51":1,"52":17,"58":6,"64":4,"66":6,"67":29,"86":4,"87":5,"90":1,"91":1,"95":2,"104":1,"105":2,"106":15,"157":1,"165":1,"166":1,"167":1,"173":1,"177":16,"178":216,"179":1,"181":34}}],["stripping",{"2":{"126":1}}],["strip",{"2":{"67":1,"124":1,"126":1,"178":1}}],["struggle",{"2":{"52":1,"177":1}}],["structural",{"2":{"138":1}}],["structures",{"2":{"148":1,"166":1,"167":1,"177":1}}],["structured",{"2":{"10":1,"19":1,"31":1,"60":1,"104":1,"106":1,"142":1,"143":1,"145":1,"178":4}}],["structure",{"2":{"10":1,"19":1,"52":4,"67":3,"104":1,"150":2,"151":3,"152":1,"176":1,"177":3,"178":9,"181":2}}],["structtypes",{"2":{"106":1}}],["structs",{"2":{"64":1,"102":1,"106":1,"178":1,"181":1}}],["struct",{"2":{"10":2,"19":4,"31":1,"49":2,"52":4,"58":1,"60":3,"64":1,"86":5,"104":2,"106":7,"112":1,"177":4,"178":32,"181":8}}],["str",{"0":{"95":1},"2":{"15":1,"67":1,"95":2,"96":4,"178":29,"181":1}}],["stands",{"2":{"178":1}}],["standards",{"2":{"138":1}}],["standard",{"0":{"40":1},"2":{"52":2,"64":1,"166":1,"167":1,"178":5,"181":7}}],["stays",{"2":{"74":1,"118":1,"177":1}}],["stage",{"2":{"64":1,"90":1,"181":13}}],["stabilizes",{"2":{"56":1,"177":1}}],["stark",{"2":{"178":1}}],["stars",{"2":{"67":3,"178":3}}],["star",{"2":{"12":1,"35":1,"41":1,"178":5}}],["start=1",{"2":{"181":1}}],["start|>assistant",{"2":{"178":1}}],["start|>user",{"2":{"178":1}}],["start>system",{"2":{"178":1}}],["startup",{"2":{"81":2,"178":1}}],["starter",{"2":{"58":1}}],["started",{"0":{"92":1},"1":{"93":1,"94":1,"95":1,"96":1},"2":{"56":1,"69":1}}],["starting",{"2":{"52":1,"134":1,"136":1,"177":2,"178":3}}],["starts",{"2":{"52":1,"177":2,"178":2}}],["startswith",{"2":{"52":1,"177":1}}],["start",{"0":{"95":1},"2":{"1":1,"19":1,"24":2,"28":2,"76":1,"78":1,"93":2,"95":1,"97":1,"158":1,"177":1,"178":2,"181":8}}],["status",{"2":{"177":2,"178":23}}],["statistical",{"2":{"58":1}}],["statistics",{"2":{"1":1}}],["stats",{"2":{"52":23,"177":33}}],["stated",{"2":{"140":1}}],["stateless",{"2":{"101":1}}],["state",{"2":{"19":1,"52":2,"69":1,"106":1,"177":2,"178":1}}],["statements",{"2":{"86":1,"165":1,"173":1,"178":1}}],["statement",{"2":{"17":2,"77":1,"101":1,"102":1,"135":4,"136":1,"178":6}}],["states",{"2":{"6":1}}],["speaking",{"2":{"91":1,"178":3}}],["speak",{"2":{"87":3,"169":1,"178":4}}],["spend",{"2":{"76":1}}],["spending",{"0":{"76":1},"2":{"72":1,"76":1,"95":1}}],["speeds",{"2":{"181":3}}],["speed",{"2":{"46":1}}],["spec",{"2":{"178":2}}],["specs",{"2":{"178":1}}],["specialist",{"2":{"134":1,"136":1}}],["specializes",{"2":{"152":1}}],["specialized",{"2":{"52":1,"122":1,"138":1,"139":1,"177":2}}],["specializing",{"2":{"123":1,"125":1}}],["special",{"2":{"112":4,"113":2,"118":3,"150":2,"151":2,"154":2,"165":2,"166":2,"167":2,"169":2,"173":5,"181":2}}],["specifying",{"2":{"64":1,"178":1,"181":1}}],["specify",{"2":{"15":1,"34":1,"62":1,"64":2,"67":1,"84":2,"106":1,"128":1,"178":14,"181":4}}],["specified",{"2":{"63":1,"64":1,"67":2,"91":1,"138":1,"152":2,"177":3,"178":10,"181":5}}],["specifies",{"2":{"11":1,"52":1,"177":1}}],["specification",{"2":{"100":1,"106":1,"178":1}}],["specifications",{"2":{"67":1,"106":1,"178":1}}],["specifically",{"2":{"0":1,"112":1,"178":2}}],["specific",{"2":{"0":2,"6":1,"10":1,"13":2,"23":2,"24":1,"26":2,"30":1,"31":1,"42":1,"57":1,"66":1,"67":2,"89":1,"103":1,"104":1,"106":2,"118":1,"122":2,"124":3,"128":2,"129":1,"138":1,"139":2,"140":3,"142":1,"143":1,"145":1,"151":2,"166":1,"167":1,"169":1,"178":10,"181":1}}],["spectacles",{"2":{"41":1}}],["spiders",{"2":{"178":1}}],["spider",{"2":{"18":1,"86":1,"178":1}}],["span",{"2":{"181":1}}],["spanish",{"2":{"14":1}}],["spain",{"2":{"95":2,"96":2}}],["sparrow",{"2":{"87":4,"178":5}}],["sparse",{"2":{"63":1,"181":5}}],["sparsearrays",{"2":{"1":2,"56":1,"181":4}}],["spawn",{"2":{"46":1,"178":1}}],["spaces",{"2":{"181":3}}],["space",{"2":{"23":1,"26":1,"67":1,"178":1}}],["spliter",{"2":{"88":1}}],["splitters",{"2":{"67":1,"178":1}}],["splitter",{"2":{"66":2,"67":10,"88":2,"178":13,"181":1}}],["splitting",{"2":{"64":2,"67":11,"178":12,"181":3}}],["splits",{"2":{"64":1,"67":1,"178":1,"181":7}}],["split",{"2":{"8":1,"21":2,"51":2,"52":1,"64":1,"66":3,"67":14,"88":3,"150":1,"158":1,"177":4,"178":16,"181":4}}],["s",{"2":{"1":1,"2":2,"3":1,"4":1,"5":2,"6":2,"7":2,"10":2,"11":2,"13":1,"15":1,"18":1,"19":4,"20":1,"21":1,"22":3,"24":6,"32":2,"36":1,"37":1,"39":1,"40":1,"42":1,"43":1,"49":1,"51":1,"52":12,"56":1,"58":5,"60":2,"62":1,"64":8,"67":7,"69":1,"71":3,"74":1,"77":1,"78":2,"83":3,"85":5,"86":4,"87":3,"88":1,"90":1,"98":1,"100":2,"103":1,"104":2,"105":3,"106":14,"115":1,"116":1,"119":3,"120":2,"128":2,"129":1,"136":1,"138":8,"139":5,"140":11,"142":2,"143":2,"145":3,"148":1,"150":2,"151":1,"158":2,"160":2,"162":2,"165":3,"169":2,"173":1,"177":19,"178":77,"181":24}}],["seq",{"2":{"178":5}}],["sequentially",{"2":{"46":1,"52":2,"177":2,"178":1}}],["sequences",{"2":{"67":1,"178":1,"181":1}}],["sequence",{"2":{"21":2,"67":2,"101":1,"178":6}}],["sedan",{"2":{"178":1}}],["segments",{"2":{"67":2,"178":2}}],["segment",{"2":{"64":1,"181":1}}],["separator=",{"2":{"67":1,"178":1}}],["separator",{"2":{"67":9,"177":1,"178":9}}],["separators",{"2":{"64":1,"67":19,"88":4,"178":20,"181":7}}],["separators=",{"2":{"60":1,"64":1,"67":4,"178":4,"181":1}}],["separated",{"2":{"177":1,"178":1,"181":1}}],["separate",{"2":{"2":1,"17":1,"56":1,"158":1,"162":1,"177":2,"178":3,"180":1,"181":2}}],["selects",{"2":{"177":1}}],["selecting",{"2":{"178":1}}],["selection",{"2":{"177":2}}],["selectively",{"2":{"52":1,"177":1}}],["select",{"2":{"58":1,"95":1,"112":1,"134":1,"136":3,"156":1,"177":7,"178":1}}],["selected",{"2":{"13":1,"28":1,"64":1,"90":1,"156":5,"178":3,"181":1}}],["self",{"2":{"48":1,"86":1,"104":1,"128":1,"177":1,"178":1}}],["sessions",{"2":{"79":1,"177":1,"178":2}}],["session",{"2":{"42":1,"52":1,"81":1,"177":7,"178":1}}],["sense",{"2":{"106":1,"178":1}}],["sensitive",{"2":{"22":1,"66":1,"83":1,"178":1}}],["sender",{"2":{"178":4}}],["sends",{"2":{"64":1,"179":1,"181":1}}],["send",{"2":{"52":1,"74":1,"85":1,"86":1,"100":1,"101":1,"105":1,"177":1,"178":3}}],["sending",{"2":{"23":1,"27":1,"66":1,"85":1,"87":2,"178":12}}],["senior",{"2":{"24":2}}],["sentences",{"2":{"58":3,"64":3,"66":3,"67":3,"88":1,"158":1,"169":1,"178":4,"181":11}}],["sentence",{"2":{"31":1,"58":1,"64":4,"66":1,"67":6,"77":1,"88":2,"106":3,"178":6,"181":6}}],["sentiment",{"2":{"17":1}}],["sent",{"0":{"90":1},"2":{"0":1,"22":1,"75":1,"83":1,"90":3,"100":1,"106":1,"178":6,"181":3}}],["several",{"2":{"22":1,"37":1,"106":1,"128":1,"152":1,"158":2,"178":3}}],["seven",{"2":{"7":1}}],["secret",{"2":{"72":1,"93":1,"169":1}}],["secrets",{"2":{"67":4,"178":4}}],["sections",{"2":{"151":2,"158":4,"162":1,"178":2}}],["section",{"2":{"17":1,"22":1,"37":1,"56":1,"69":1,"72":1,"93":1,"96":1,"97":1,"150":2,"151":2,"158":1,"162":1}}],["seconds",{"2":{"10":1,"11":1,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"52":3,"74":1,"85":1,"95":2,"96":1,"104":1,"177":2,"178":18}}],["second",{"2":{"7":4,"64":1,"67":3,"85":1,"105":3,"177":1,"178":5,"181":4}}],["seas",{"2":{"87":2,"178":2}}],["seats",{"2":{"86":2}}],["sea",{"2":{"67":1,"178":1}}],["searches",{"2":{"178":3}}],["searching",{"2":{"178":2,"181":1}}],["search",{"2":{"11":1,"13":1,"16":1,"21":2,"24":3,"49":1,"52":2,"54":1,"55":11,"58":4,"63":2,"64":4,"87":1,"110":2,"112":2,"113":2,"115":1,"116":12,"123":2,"124":3,"125":5,"177":4,"178":8,"179":12,"180":1,"181":32}}],["seamless",{"0":{"11":1},"2":{"0":1}}],["semantic",{"2":{"8":1,"16":1,"125":1,"181":3}}],["semi",{"2":{"6":1,"7":4}}],["semijoin",{"2":{"6":1}}],["setter",{"2":{"181":1}}],["settings",{"2":{"78":1,"177":1}}],["setting",{"0":{"76":1,"79":1},"2":{"52":1,"62":1,"88":1,"177":1,"178":1}}],["setpropertynested",{"2":{"64":2,"178":1,"181":7}}],["setup",{"0":{"83":1},"2":{"22":1,"69":1,"78":1,"82":1,"93":1,"165":1,"173":1,"177":1}}],["sets",{"2":{"4":1,"5":4,"6":2,"7":5,"64":1,"106":1,"118":1,"177":1,"178":1,"181":5}}],["set",{"0":{"7":1,"73":2},"2":{"3":2,"4":1,"7":5,"8":1,"10":2,"12":1,"15":1,"18":1,"21":2,"23":1,"24":1,"27":1,"29":2,"30":2,"31":2,"42":2,"48":1,"51":2,"52":20,"54":1,"56":1,"57":2,"58":1,"60":2,"64":5,"65":1,"66":1,"67":1,"72":1,"73":2,"74":1,"76":2,"78":5,"79":2,"84":1,"85":1,"86":1,"93":5,"104":1,"106":2,"112":1,"125":1,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"177":13,"178":51,"181":18}}],["seem",{"2":{"178":1}}],["seems",{"2":{"178":2}}],["seel",{"2":{"52":1,"177":1}}],["seek",{"2":{"12":1,"35":1,"41":1}}],["see",{"0":{"90":1},"2":{"2":3,"7":1,"8":3,"10":4,"13":3,"17":1,"19":1,"21":1,"22":1,"23":3,"24":4,"26":2,"32":1,"37":2,"49":2,"52":11,"55":1,"56":1,"58":4,"63":1,"64":9,"69":1,"70":1,"74":2,"75":1,"78":2,"79":2,"80":1,"82":1,"83":2,"84":1,"85":1,"86":1,"88":1,"90":4,"91":1,"93":2,"96":1,"97":1,"100":1,"103":2,"104":4,"106":8,"110":1,"177":17,"178":74,"179":1,"181":39}}],["serializable",{"2":{"178":2}}],["serialization",{"2":{"1":1,"87":1,"103":1}}],["serialized",{"2":{"91":1}}],["serializes",{"2":{"91":1}}],["series",{"2":{"67":1,"178":2}}],["serves",{"2":{"58":1}}],["serve",{"2":{"35":1,"83":1}}],["serverpreference",{"2":{"178":1}}],["server`",{"2":{"178":1}}],["servers",{"2":{"178":1}}],["server",{"0":{"28":1},"2":{"0":2,"25":1,"28":4,"37":1,"178":16}}],["services",{"2":{"71":1}}],["service",{"2":{"23":1,"26":1,"71":1,"83":1}}],["sun",{"2":{"181":3}}],["sunnweiwei",{"2":{"110":1,"181":1}}],["sum",{"2":{"178":2}}],["summarizing",{"2":{"150":1,"151":1,"152":1}}],["summarize",{"2":{"128":1,"150":2,"151":1}}],["summary",{"2":{"67":1,"150":1,"151":5,"166":1,"167":1,"169":1,"175":1,"178":1}}],["suitability",{"2":{"140":1}}],["suitable",{"2":{"22":1,"67":1,"136":1,"142":1,"143":1,"145":1,"156":1,"158":2,"178":2}}],["suggesting",{"2":{"178":1}}],["suggestion",{"2":{"139":1,"140":1}}],["suggestions",{"2":{"24":1,"138":5,"139":5,"140":5}}],["suggests",{"2":{"148":1}}],["suggested",{"2":{"128":1}}],["suggest",{"2":{"128":1,"129":1}}],["suffix",{"2":{"52":3,"178":5}}],["suffering",{"2":{"35":1,"178":2}}],["super",{"2":{"150":1,"151":1}}],["supertype",{"2":{"99":1}}],["superseded",{"2":{"42":1}}],["supplied",{"2":{"10":1,"49":1,"52":1,"104":1,"177":1}}],["suppose",{"2":{"5":1,"7":1}}],["support",{"2":{"23":2,"27":1,"32":1,"57":1,"58":2,"64":11,"71":1,"178":7,"181":22}}],["supports",{"2":{"0":1,"178":2,"181":2}}],["supported",{"2":{"0":1,"10":1,"43":1,"57":1,"64":2,"106":2,"178":5,"181":4}}],["survey",{"2":{"152":5,"154":1}}],["surrounding",{"2":{"64":1,"181":7}}],["surface",{"2":{"13":1,"60":1,"156":1,"178":2}}],["sure",{"2":{"4":1,"7":1,"8":1,"37":2,"52":1,"64":1,"78":2,"93":2,"106":1,"136":1,"160":1,"162":1,"177":1,"178":4,"181":5}}],["subdocumenttermmatrix",{"2":{"178":1,"181":2}}],["subchunkindex",{"2":{"178":1,"181":5}}],["subcomponents",{"2":{"64":1,"181":1}}],["subject",{"2":{"158":2}}],["subheadings",{"2":{"150":2}}],["subheading",{"2":{"150":1}}],["submitted",{"2":{"71":1,"138":1}}],["sub",{"2":{"58":1,"60":1,"64":6,"77":1,"105":1,"152":1,"178":4,"181":18}}],["subseq",{"2":{"178":5}}],["subsequence",{"2":{"66":6,"67":17,"178":25}}],["subsequent",{"2":{"52":1,"67":1,"86":1,"177":3,"178":3}}],["subset",{"2":{"165":1,"173":1,"181":5}}],["substantial",{"2":{"151":1}}],["substring",{"2":{"58":2,"178":5,"181":2}}],["subarray",{"2":{"45":1}}],["subfolder",{"2":{"11":3}}],["subfolders",{"2":{"11":1}}],["subtype",{"2":{"0":1,"99":1}}],["subtypes",{"2":{"0":1,"52":2,"61":2,"64":3,"100":2,"177":2,"181":4}}],["suceeding",{"2":{"181":1}}],["succinct",{"2":{"122":1}}],["successfully",{"2":{"52":2,"124":1,"177":1,"178":3}}],["successful",{"2":{"52":5,"86":1,"106":1,"113":1,"177":8,"178":2}}],["success",{"2":{"4":1,"52":7,"86":2,"177":13,"178":9}}],["succeeding",{"2":{"2":1}}],["such",{"2":{"0":1,"52":1,"91":1,"112":1,"138":3,"140":1,"156":1,"177":1,"178":9,"181":2}}],["iobuffer",{"2":{"181":1}}],["io",{"2":{"178":22,"181":17}}],["illustrated",{"2":{"153":1,"154":1}}],["illustrate",{"2":{"152":1,"159":1,"161":1,"168":1}}],["i>macro",{"2":{"178":1}}],["i>method",{"2":{"178":5,"181":1}}],["i>",{"2":{"67":1,"178":6,"181":1}}],["i>function",{"2":{"67":1}}],["iphone",{"2":{"12":4,"35":1,"41":2,"178":7}}],["ignored",{"2":{"178":1}}],["ignore",{"2":{"11":4,"169":1}}],["immediate",{"2":{"178":1}}],["immediately",{"2":{"87":1,"175":1,"178":1,"181":2}}],["im",{"2":{"178":2}}],["imagine",{"2":{"11":1,"77":1}}],["image",{"0":{"20":1},"2":{"10":2,"20":7,"43":6,"104":2,"175":7,"176":1,"178":88}}],["images",{"0":{"43":1},"2":{"10":2,"20":1,"42":1,"43":1,"55":2,"102":2,"104":2,"178":17,"179":2}}],["improper",{"2":{"140":1}}],["improving",{"2":{"14":1,"52":1,"139":1,"140":1,"177":1}}],["improved",{"2":{"128":1,"129":1}}],["improvements",{"2":{"128":2,"129":2,"138":1,"140":1}}],["improvement",{"2":{"71":1,"128":4,"138":1,"139":1}}],["improves",{"2":{"19":1}}],["improve",{"2":{"8":1,"21":1,"51":1,"52":1,"63":2,"71":3,"116":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":6,"130":1,"139":1,"177":2,"178":2,"181":2}}],["imprints",{"2":{"67":1,"178":1}}],["impact",{"2":{"58":1,"118":1,"138":2}}],["impartial",{"2":{"17":1,"119":2,"120":1,"135":1}}],["impermanence",{"2":{"12":1}}],["imported",{"2":{"180":1}}],["imports",{"2":{"52":2,"178":7}}],["important",{"2":{"8":1,"64":2,"112":2,"124":1,"150":2,"152":1,"160":1,"162":1,"178":3,"181":2}}],["import",{"2":{"1":1,"21":1,"24":2,"32":1,"37":1,"48":1,"53":1,"56":1,"66":1,"84":1,"178":2,"181":1}}],["implementing",{"2":{"178":1}}],["implement",{"2":{"51":1,"52":1,"58":1,"177":1}}],["implements",{"2":{"49":1,"177":2}}],["implemented",{"2":{"0":1,"104":1,"181":4}}],["implementations",{"2":{"58":1,"61":1}}],["implementation",{"2":{"0":1,"58":1,"110":1,"128":1,"129":2,"178":7,"181":12}}],["ie",{"2":{"10":3,"24":1,"52":4,"56":1,"63":1,"64":2,"66":1,"67":2,"74":1,"77":1,"87":2,"88":1,"102":1,"104":3,"106":1,"177":7,"178":17,"181":16}}],["irrelevant",{"2":{"8":1,"116":1}}],["idx",{"2":{"181":3}}],["idiomatic",{"2":{"128":1}}],["idempotent",{"2":{"178":10}}],["identity",{"2":{"178":5,"181":1}}],["identifies",{"2":{"178":2}}],["identified",{"2":{"124":1,"152":1,"181":2}}],["identifiers",{"2":{"64":1,"110":1,"112":1,"178":2,"181":1}}],["identifier",{"2":{"64":1,"110":1,"112":1,"177":1,"178":11,"181":6}}],["identifying",{"2":{"178":2}}],["identify",{"2":{"112":1,"128":1,"139":1,"140":1,"151":1,"152":1}}],["identical",{"2":{"66":1,"106":1,"181":1}}],["ideal",{"2":{"160":1}}],["ideally",{"2":{"1":1,"2":1,"3":1,"156":2,"178":2}}],["ideas",{"2":{"8":1,"175":1}}],["idea",{"2":{"5":1,"13":1,"178":3}}],["id`",{"2":{"52":1,"177":1}}],["ids",{"2":{"7":2,"134":1,"136":1,"178":11,"181":3}}],["id",{"2":{"7":11,"52":53,"58":1,"64":3,"91":2,"134":1,"177":69,"178":70,"181":19}}],["id=",{"2":{"7":2,"67":1,"178":6,"181":1}}],["i",{"0":{"70":1,"89":1,"90":1},"2":{"2":1,"11":1,"12":5,"13":4,"21":2,"22":1,"23":5,"24":1,"26":5,"30":3,"31":5,"34":2,"35":2,"39":1,"40":1,"41":5,"42":1,"51":2,"52":3,"58":1,"67":2,"85":4,"86":2,"88":1,"90":5,"105":1,"106":7,"113":1,"128":2,"129":2,"130":2,"177":10,"178":47,"181":6}}],["if",{"0":{"70":1},"2":{"1":1,"2":1,"10":5,"13":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":2,"22":1,"23":2,"24":4,"26":2,"27":1,"28":1,"32":1,"37":1,"39":1,"42":2,"49":2,"51":3,"52":40,"57":2,"58":2,"60":1,"62":2,"63":3,"64":21,"66":1,"67":8,"73":5,"74":5,"75":2,"77":2,"83":1,"84":1,"85":1,"86":6,"87":5,"91":3,"95":1,"96":1,"100":1,"104":4,"106":6,"108":1,"112":2,"113":2,"115":5,"116":6,"118":2,"128":3,"129":1,"135":1,"136":2,"138":2,"139":3,"140":3,"150":4,"151":2,"152":1,"154":1,"158":2,"165":3,"166":1,"167":2,"169":2,"172":1,"173":3,"177":47,"178":186,"181":59}}],["inherit",{"2":{"181":1}}],["inactive",{"2":{"178":2}}],["inactived",{"2":{"178":1}}],["inanimate",{"2":{"35":1}}],["inefficiencies",{"2":{"140":1}}],["inline",{"2":{"128":3}}],["initializes",{"2":{"178":1}}],["initialized",{"2":{"178":11}}],["initialize",{"2":{"178":13}}],["initialisms",{"2":{"124":1}}],["initiate",{"2":{"52":1,"177":1,"178":1}}],["injects",{"2":{"124":1}}],["injected",{"2":{"110":1,"181":1}}],["inject",{"2":{"95":1,"178":1}}],["inverse",{"2":{"181":2}}],["investigating",{"2":{"181":3}}],["investigate",{"2":{"58":1}}],["involve",{"2":{"178":2}}],["involved",{"2":{"0":1}}],["invalid",{"2":{"52":2,"64":2,"178":2,"181":2}}],["inferred",{"2":{"178":1}}],["inferfaces",{"2":{"178":1}}],["influential",{"2":{"169":1}}],["influence",{"2":{"52":1,"106":1,"177":1}}],["informal",{"2":{"158":1}}],["informative",{"2":{"150":1,"151":1,"162":1}}],["information",{"2":{"0":2,"6":1,"10":1,"17":1,"19":1,"23":3,"26":3,"29":1,"30":1,"49":1,"52":2,"55":1,"56":1,"60":1,"64":4,"71":1,"74":1,"75":1,"80":1,"82":1,"83":1,"84":1,"88":1,"90":1,"98":1,"101":1,"102":2,"104":1,"106":1,"108":2,"115":2,"116":1,"118":4,"119":1,"120":1,"124":2,"126":1,"142":1,"143":1,"145":1,"150":1,"151":1,"158":1,"166":1,"167":1,"169":1,"177":5,"178":59,"179":1,"181":6}}],["informed",{"2":{"6":1}}],["info",{"2":{"4":1,"7":2,"10":1,"11":2,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"52":10,"58":1,"67":2,"85":2,"86":2,"95":2,"96":1,"104":1,"106":1,"177":10,"178":13}}],["inplace",{"2":{"177":6}}],["inplace=true",{"2":{"52":1,"177":1}}],["input=",{"2":{"106":2}}],["input2",{"2":{"67":3,"178":3}}],["input1",{"2":{"67":3,"178":3}}],["inputclassifier",{"0":{"134":1},"2":{"18":1,"86":1,"178":3}}],["inputs",{"2":{"10":2,"21":1,"49":3,"51":1,"87":1,"98":1,"100":1,"103":1,"104":2,"106":1,"165":1,"173":1,"178":6,"181":3}}],["input",{"2":{"10":2,"18":4,"64":1,"86":2,"104":2,"106":3,"125":1,"134":7,"136":3,"169":1,"178":20,"181":18}}],["inches",{"2":{"178":1}}],["incredible",{"2":{"150":1}}],["increase",{"2":{"49":1,"76":1,"177":1,"178":3}}],["incorporating",{"2":{"181":2}}],["incorrect",{"2":{"140":1}}],["inconsistencies",{"2":{"139":1}}],["inconsistent",{"2":{"119":1}}],["incomplete",{"2":{"119":1,"178":1}}],["including",{"2":{"10":1,"17":1,"25":1,"49":1,"83":1,"106":1,"169":1,"177":2,"178":18,"181":3}}],["includes",{"2":{"7":1,"64":2,"82":1,"177":2,"178":1,"181":6}}],["included",{"2":{"7":1,"129":1,"151":1,"178":2,"180":1,"181":2}}],["include",{"2":{"2":1,"7":1,"10":1,"55":9,"58":2,"64":1,"104":1,"122":1,"123":1,"124":1,"140":1,"150":2,"151":1,"165":1,"173":1,"178":7,"179":9,"181":9}}],["indentation",{"2":{"181":1}}],["independent",{"2":{"177":1}}],["index>",{"2":{"181":1}}],["indexing",{"2":{"64":1,"166":1,"167":1,"181":1}}],["indexes",{"2":{"181":7}}],["indexed",{"2":{"63":2,"64":1,"181":1}}],["indexer",{"2":{"61":1,"64":12,"181":13}}],["index",{"2":{"2":16,"3":1,"4":2,"6":1,"7":1,"8":3,"10":1,"57":5,"58":11,"60":5,"61":5,"62":2,"63":5,"64":54,"178":2,"181":205}}],["industry",{"2":{"124":1}}],["indifferent",{"2":{"67":1,"178":1}}],["individual",{"2":{"52":2,"75":1,"119":1,"177":2,"178":1,"181":2}}],["indication",{"2":{"152":1}}],["indicating",{"2":{"64":1,"136":2,"177":1,"178":15,"181":13}}],["indicate",{"2":{"138":1,"140":1,"177":2}}],["indicated",{"2":{"110":1}}],["indicates",{"2":{"52":3,"169":1,"177":4,"178":1}}],["indices",{"2":{"8":1,"64":1,"178":2,"181":23}}],["inserting",{"2":{"181":1}}],["insert",{"2":{"178":1}}],["insufficient",{"2":{"75":1}}],["inside",{"2":{"52":2,"178":3}}],["insights",{"2":{"6":1,"150":5}}],["inspired",{"2":{"21":1,"52":1,"122":1,"123":1,"169":1,"177":1,"178":3}}],["inspect",{"2":{"13":1,"52":2,"177":1,"178":2}}],["instructor",{"2":{"178":3}}],["instruction",{"2":{"178":1,"181":3}}],["instructions>",{"2":{"173":4}}],["instructions=",{"2":{"64":1,"112":1,"113":1,"118":1,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"181":2}}],["instructions",{"2":{"4":1,"36":1,"64":2,"101":1,"103":1,"108":1,"112":9,"113":5,"115":1,"116":1,"118":9,"119":1,"128":3,"134":1,"136":1,"138":6,"139":1,"140":2,"142":1,"143":1,"145":1,"150":7,"151":6,"152":3,"154":4,"156":2,"158":2,"162":1,"165":7,"166":4,"167":6,"169":9,"173":6,"175":1,"178":1,"181":2}}],["instruct",{"2":{"28":1,"106":1}}],["installation",{"0":{"94":1},"2":{"83":1}}],["installated",{"2":{"37":1}}],["installing",{"2":{"52":1,"178":2}}],["installed",{"2":{"22":1,"83":1,"94":2}}],["instant",{"0":{"81":1}}],["instantiating",{"2":{"181":1}}],["instantiation",{"2":{"52":2,"178":2}}],["instantiated",{"2":{"10":1,"49":1,"104":1,"178":1}}],["instance",{"2":{"10":2,"19":1,"49":2,"52":2,"60":1,"104":2,"169":3,"177":18,"178":4}}],["instead",{"2":{"15":1,"24":1,"67":1,"88":1,"128":1,"129":1,"169":1,"178":8,"181":2}}],["innerjoin",{"2":{"7":2}}],["inner",{"2":{"6":1,"7":5,"91":1}}],["int16",{"2":{"178":1}}],["intricate",{"2":{"178":5}}],["intro",{"2":{"67":2}}],["introduced",{"2":{"42":1}}],["introduction",{"0":{"48":1,"53":1,"56":1},"1":{"49":1,"50":1,"51":1,"52":1,"54":1,"55":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1},"2":{"5":1,"129":1}}],["int=60",{"2":{"181":1}}],["int=3",{"2":{"181":1}}],["int=32000",{"2":{"177":1}}],["int=35000",{"2":{"67":4,"178":4}}],["int=1",{"2":{"177":1}}],["int=512",{"2":{"52":1,"177":1}}],["int64",{"2":{"7":3,"13":1,"24":1,"45":1,"58":4,"87":1,"178":3}}],["int",{"2":{"7":1,"19":2,"52":18,"64":2,"67":2,"86":5,"177":31,"178":40,"181":36}}],["into",{"0":{"11":1},"2":{"2":3,"10":1,"17":1,"18":1,"35":1,"45":1,"52":1,"56":1,"58":1,"63":1,"64":7,"66":6,"67":6,"81":1,"87":1,"90":2,"94":1,"104":1,"106":4,"124":1,"126":1,"150":2,"151":2,"152":2,"177":2,"178":27,"181":25}}],["intelligent",{"2":{"110":1}}],["intelligence",{"2":{"16":1}}],["intent",{"2":{"125":1}}],["intention",{"2":{"60":1,"180":1}}],["intended",{"2":{"52":1,"63":2,"123":1,"125":1,"138":4,"177":2,"178":2,"181":1}}],["intends",{"2":{"36":1}}],["integrity",{"2":{"138":1}}],["integrates",{"2":{"58":1,"177":1}}],["integration",{"0":{"11":1},"2":{"0":2,"165":1,"173":1}}],["integer",{"2":{"55":1,"64":10,"86":1,"178":9,"179":1,"181":33}}],["integer=1",{"2":{"52":1,"177":2}}],["integers",{"2":{"7":1,"178":3,"181":1}}],["intersection",{"2":{"181":1}}],["interpolate",{"2":{"178":1}}],["interpolated",{"2":{"178":1}}],["interpolation",{"0":{"40":1},"2":{"95":1,"166":1,"167":1,"178":6}}],["interprets",{"2":{"148":1}}],["interested",{"2":{"106":1,"178":1}}],["interesting",{"2":{"41":1}}],["internally",{"2":{"64":1,"181":1}}],["internal",{"2":{"60":1,"64":1,"158":3,"178":1,"181":1}}],["interface",{"0":{"59":1},"1":{"60":1,"61":1,"62":1,"63":1},"2":{"56":1,"63":1,"178":2}}],["intermediate",{"2":{"6":1,"58":2}}],["interaction",{"2":{"177":2}}],["interactions",{"2":{"169":1,"177":5,"178":2}}],["interactive",{"2":{"52":1,"58":1,"177":2}}],["interact",{"2":{"1":1,"10":1,"20":1,"49":1,"52":2,"99":1,"104":1,"177":2}}],["in",{"0":{"2":1,"80":1},"2":{"0":1,"1":2,"2":9,"3":1,"4":2,"6":3,"7":24,"8":4,"10":8,"11":6,"12":1,"13":3,"14":1,"15":3,"17":1,"18":1,"19":4,"20":4,"21":5,"22":2,"23":3,"24":15,"26":2,"28":3,"30":2,"31":2,"32":3,"35":1,"36":1,"37":1,"39":1,"41":1,"42":2,"49":1,"51":3,"52":54,"54":1,"55":4,"57":4,"58":15,"60":6,"62":1,"63":3,"64":23,"65":1,"66":4,"67":7,"69":1,"71":2,"73":6,"74":3,"75":1,"76":1,"77":1,"78":4,"79":2,"81":1,"83":2,"85":4,"86":4,"87":7,"89":2,"90":1,"91":1,"93":4,"95":4,"96":1,"103":2,"104":8,"105":7,"106":16,"110":2,"112":3,"118":4,"119":3,"122":1,"123":2,"124":4,"125":1,"126":1,"128":7,"129":4,"130":1,"134":1,"136":1,"138":4,"139":2,"140":4,"142":4,"143":3,"145":2,"150":2,"151":2,"152":3,"155":1,"156":1,"158":7,"159":3,"161":2,"162":2,"163":1,"164":2,"165":1,"168":3,"171":1,"172":5,"173":3,"176":1,"177":65,"178":191,"179":4,"180":2,"181":132}}],["itr2",{"2":{"67":2,"178":2}}],["itr1",{"2":{"67":2,"178":2}}],["iters",{"2":{"178":1}}],["iterative",{"2":{"177":1,"178":1}}],["iteratively",{"2":{"67":2,"130":1,"177":2,"178":2}}],["iterating",{"2":{"177":1}}],["iterations",{"2":{"129":1}}],["iteration",{"2":{"67":1,"177":2,"178":1}}],["iterates",{"2":{"178":1}}],["iterate",{"2":{"52":1,"177":1}}],["itemsextract",{"2":{"178":10}}],["items",{"2":{"7":2,"8":1,"60":1,"64":2,"106":1,"112":2,"124":1,"178":11,"181":10}}],["item",{"2":{"4":1,"5":1,"6":1,"7":3,"52":1,"64":1,"177":1,"178":1,"181":11}}],["itself",{"2":{"19":1,"51":1,"64":1,"67":1,"178":4,"181":3}}],["its",{"2":{"10":2,"12":1,"21":2,"24":1,"32":1,"49":3,"51":2,"52":2,"58":2,"62":1,"64":4,"67":4,"84":1,"87":1,"88":1,"91":1,"99":1,"102":1,"104":2,"115":1,"116":1,"118":1,"125":1,"138":2,"139":1,"151":3,"162":1,"166":1,"167":1,"169":3,"175":1,"177":6,"178":13,"181":11}}],["it",{"0":{"77":2,"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":3,"2":4,"4":2,"5":1,"7":1,"8":2,"10":14,"11":4,"12":4,"13":4,"15":1,"17":1,"18":3,"19":2,"21":8,"22":3,"23":2,"24":11,"26":1,"28":5,"29":3,"30":3,"31":4,"32":3,"36":1,"37":1,"39":1,"40":1,"41":3,"42":4,"43":1,"49":5,"51":6,"52":33,"54":1,"56":2,"57":1,"58":2,"60":1,"64":17,"66":1,"67":14,"69":1,"72":2,"73":4,"74":3,"75":2,"76":1,"77":2,"78":6,"79":1,"83":4,"84":2,"85":4,"86":8,"87":13,"88":1,"89":2,"90":2,"91":2,"93":6,"95":1,"97":3,"98":1,"99":1,"100":3,"101":2,"102":1,"103":4,"104":13,"105":8,"106":17,"115":2,"116":2,"118":1,"119":1,"122":1,"123":2,"124":1,"125":2,"126":2,"128":5,"129":5,"130":1,"134":1,"135":3,"136":2,"138":3,"140":2,"142":1,"148":1,"150":3,"152":2,"154":1,"158":3,"160":2,"162":2,"164":1,"165":4,"166":1,"167":1,"169":2,"172":1,"173":4,"175":1,"177":63,"178":195,"180":2,"181":82}}],["isolate",{"2":{"178":1}}],["istracermessage",{"2":{"178":2}}],["isn",{"2":{"106":1,"115":2,"178":3}}],["isnothing",{"2":{"7":1,"52":1,"86":1,"177":1,"178":1,"181":1}}],["issues",{"2":{"128":2,"140":1}}],["issue",{"2":{"57":1,"64":1,"66":1,"73":1,"128":2,"181":4}}],["islowercase",{"2":{"52":1,"177":1}}],["isvalid",{"2":{"21":1,"51":1,"52":4,"177":1,"178":4}}],["isa",{"2":{"10":4,"52":2,"86":1,"91":3,"104":4,"106":1,"177":2,"178":4}}],["is",{"0":{"77":1,"90":2},"2":{"0":7,"1":2,"2":4,"3":1,"5":2,"6":5,"7":18,"8":1,"10":11,"11":3,"12":1,"13":4,"15":1,"17":4,"19":4,"21":9,"22":2,"24":5,"28":5,"29":1,"30":3,"31":5,"32":1,"35":1,"36":1,"37":2,"39":1,"40":2,"41":4,"42":2,"43":1,"47":1,"48":1,"49":6,"51":8,"52":44,"53":1,"54":1,"55":9,"56":2,"57":2,"58":2,"60":4,"62":2,"63":7,"64":53,"67":21,"71":2,"73":5,"74":3,"75":1,"77":3,"78":1,"82":2,"83":2,"85":4,"86":5,"87":1,"89":1,"90":2,"91":1,"95":8,"96":5,"97":2,"99":3,"101":1,"102":2,"103":3,"104":12,"105":14,"106":16,"113":1,"115":3,"116":2,"118":3,"119":5,"122":1,"123":1,"124":3,"125":4,"126":2,"128":2,"129":2,"134":1,"135":3,"136":1,"138":1,"139":3,"140":2,"142":1,"143":1,"148":1,"150":1,"151":3,"155":1,"156":1,"157":1,"158":3,"159":1,"160":2,"161":1,"162":3,"163":1,"164":3,"165":2,"166":1,"167":1,"168":1,"169":1,"171":2,"172":4,"173":3,"175":1,"177":66,"178":231,"179":9,"180":5,"181":172}}],["dtm",{"2":{"181":2}}],["dynamically",{"2":{"178":1}}],["dynamic",{"2":{"177":1}}],["duplicates",{"2":{"181":1}}],["duplication",{"2":{"64":1,"181":1}}],["due",{"2":{"52":1,"178":2}}],["during",{"2":{"7":1,"52":3,"177":2,"178":3,"181":1}}],["drawn",{"2":{"181":5}}],["draft",{"2":{"158":1}}],["drafts",{"2":{"158":1}}],["drafteremailbrief",{"0":{"158":1}}],["driven",{"2":{"178":1}}],["drives",{"2":{"177":1}}],["drive",{"2":{"106":1}}],["dry",{"2":{"90":4,"178":22}}],["drops",{"2":{"52":1,"177":1}}],["dr",{"2":{"39":1,"112":2}}],["d",{"2":{"30":1,"31":1,"77":1,"88":1}}],["dllama",{"2":{"29":3}}],["dspy",{"2":{"21":1,"52":1,"177":1}}],["datetime",{"2":{"178":4}}],["date",{"2":{"112":1}}],["dates",{"2":{"112":1}}],["datadeps",{"2":{"181":2}}],["datastructtype",{"2":{"178":1}}],["dataset",{"2":{"6":1,"89":2,"169":1}}],["data=",{"2":{"178":1}}],["data>",{"2":{"142":4,"143":4,"172":4}}],["datamessage",{"2":{"10":2,"45":2,"46":1,"47":1,"102":1,"104":2,"178":13}}],["dataframerowsourcecontextquestionanswerretrieval",{"2":{"7":1}}],["dataframe",{"2":{"7":11,"13":1,"24":1,"178":2}}],["dataframeswhat",{"2":{"7":1}}],["dataframesmeta",{"2":{"1":1,"2":1}}],["dataframes",{"2":{"1":1,"2":3,"5":1,"13":1,"24":1,"112":2,"178":2,"181":1}}],["database",{"2":{"2":1,"5":2,"6":1,"7":11,"124":2}}],["databricks",{"0":{"29":1},"2":{"0":1,"29":9,"64":1,"178":16,"181":1}}],["databricksopenaischema",{"2":{"0":1,"29":2,"178":3}}],["data",{"0":{"19":1,"71":1},"2":{"0":2,"2":4,"5":5,"6":4,"7":34,"8":2,"10":1,"19":3,"22":1,"24":6,"45":1,"52":9,"58":4,"60":3,"63":1,"71":7,"83":1,"102":1,"104":1,"106":2,"112":1,"142":6,"143":6,"145":6,"147":1,"157":5,"162":1,"164":6,"166":1,"169":1,"172":4,"177":18,"178":17,"181":3}}],["damaging",{"2":{"88":1}}],["day",{"2":{"77":1}}],["dashboard",{"2":{"76":1,"181":1}}],["dashboards",{"2":{"58":1}}],["dance",{"2":{"67":1,"178":1}}],["danced",{"2":{"67":1,"178":1}}],["dangerous",{"2":{"35":1,"178":1}}],["darkness",{"2":{"35":1}}],["daphodil",{"2":{"18":1,"178":1}}],["dall",{"2":{"10":1,"104":1,"178":5}}],["diagnostics",{"2":{"181":1}}],["diagram",{"0":{"61":1},"1":{"62":1},"2":{"60":1}}],["dimensionality",{"2":{"181":3}}],["dimension",{"2":{"181":6}}],["diligent",{"2":{"157":1}}],["dilemma",{"2":{"12":1}}],["dir",{"2":{"91":2,"178":19}}],["direct",{"2":{"152":1}}],["directly",{"2":{"52":1,"62":2,"64":4,"67":1,"76":1,"87":2,"103":1,"118":2,"123":1,"125":1,"178":8,"181":8}}],["directory",{"2":{"24":3,"91":1,"178":11}}],["diverse",{"2":{"125":1}}],["divisible",{"2":{"181":1}}],["division",{"2":{"67":1,"178":1}}],["divides",{"2":{"63":1}}],["div",{"2":{"67":1,"178":6,"181":1}}],["div>",{"2":{"67":1,"178":6,"181":1}}],["digits",{"2":{"52":2,"86":1,"177":2}}],["digits=1",{"2":{"7":1}}],["didn",{"2":{"177":1}}],["did",{"2":{"24":1,"106":1}}],["disables",{"2":{"178":1}}],["disable",{"2":{"178":1}}],["disabled",{"2":{"64":1,"181":1}}],["disney",{"2":{"67":2,"178":2}}],["disk",{"2":{"63":1,"87":2,"103":1,"178":4,"181":1}}],["displayed",{"2":{"178":1}}],["displaysize",{"2":{"178":1,"181":2}}],["display",{"2":{"13":1,"24":1,"58":1,"64":1,"85":1,"178":2,"181":1}}],["dispatching",{"2":{"60":1,"67":1,"178":1,"181":32}}],["dispatches",{"2":{"52":1,"58":1,"64":1,"177":1,"181":1}}],["dispatched",{"2":{"52":1,"177":1}}],["dispatch",{"2":{"13":1,"24":1,"42":1,"60":2,"61":4,"62":2,"64":1,"67":2,"100":1,"103":1,"166":2,"167":2,"177":1,"178":6,"181":3}}],["distinct",{"2":{"151":1,"152":1}}],["distinguished",{"2":{"166":1,"167":1}}],["distinguish",{"2":{"67":1,"178":1}}],["dist",{"2":{"67":6,"178":6}}],["distributed",{"2":{"177":1}}],["distributing",{"2":{"169":1}}],["distributions",{"2":{"168":1}}],["distribution",{"2":{"58":1,"177":2}}],["distract",{"2":{"41":1}}],["distraction",{"2":{"11":1}}],["distances",{"2":{"67":1,"178":1}}],["distance",{"2":{"8":1,"16":2,"66":3,"67":12,"178":15,"181":10}}],["discounted",{"2":{"181":2}}],["discovery",{"2":{"118":1}}],["discovered",{"2":{"118":2}}],["discover",{"2":{"10":1,"41":1,"58":3,"61":1,"64":2,"103":1,"104":1,"177":1,"181":2}}],["discrimination",{"2":{"178":2}}],["discrepancies",{"2":{"138":1}}],["discrete",{"2":{"10":1,"104":1}}],["discussed",{"2":{"151":2}}],["discuss",{"2":{"30":1,"31":1}}],["discussions",{"2":{"151":1}}],["discussion",{"2":{"11":1,"178":1}}],["differs",{"2":{"106":1}}],["differ",{"2":{"10":1,"104":1}}],["differences",{"2":{"178":1}}],["difference",{"2":{"6":1,"7":2,"67":1,"104":1,"178":1,"181":1}}],["differently",{"2":{"10":1,"49":1,"86":1,"104":1,"178":1}}],["different",{"2":{"6":1,"7":2,"22":1,"52":4,"64":1,"66":1,"87":1,"128":2,"158":2,"165":1,"166":1,"167":1,"173":1,"177":5,"178":9,"181":8}}],["dict=parameters",{"2":{"181":1}}],["dict=dict",{"2":{"181":1}}],["dicts",{"2":{"178":1}}],["dictates",{"2":{"64":1,"181":3}}],["dictionaries",{"2":{"42":1,"100":1}}],["dictionary",{"2":{"15":1,"52":1,"58":1,"166":1,"167":1,"178":9,"181":1}}],["dict",{"2":{"6":4,"7":2,"58":1,"86":1,"90":3,"91":1,"105":3,"106":9,"178":25,"181":13}}],["doing",{"2":{"178":1}}],["dollar",{"2":{"89":1}}],["dolphin",{"2":{"37":1}}],["domluna",{"2":{"181":1}}],["domain",{"2":{"124":1,"139":1}}],["domains",{"2":{"55":4,"179":4,"181":6}}],["dominating",{"2":{"23":1,"26":1}}],["dot",{"2":{"16":1,"178":2}}],["double",{"2":{"11":1,"71":1,"79":1,"166":1,"167":1,"178":1}}],["doewhat",{"2":{"7":1}}],["doe",{"2":{"7":6}}],["does",{"0":{"77":1},"2":{"2":1,"7":1,"10":1,"36":1,"41":1,"49":1,"52":2,"64":1,"71":2,"86":1,"88":1,"90":1,"104":1,"119":2,"128":1,"129":1,"177":1,"178":13,"181":7}}],["don",{"2":{"6":1,"8":1,"24":1,"37":1,"39":1,"101":1,"106":1,"108":3,"112":1,"113":1,"115":3,"116":3,"118":1,"150":2,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"178":6,"181":2}}],["done",{"2":{"2":1,"7":1,"52":1,"58":1,"64":1,"84":1,"105":1,"106":1,"138":3,"139":3,"140":3,"177":2,"178":4,"181":1}}],["downstream",{"2":{"86":1,"95":1}}],["downloads",{"2":{"43":1,"178":6}}],["downloaded",{"2":{"22":1}}],["download",{"2":{"10":1,"24":1,"37":1,"43":2,"83":2,"104":1,"178":10,"181":1}}],["down",{"2":{"2":1,"60":1,"67":1,"129":1,"178":1}}],["do",{"0":{"8":1,"88":1},"2":{"2":1,"6":1,"7":4,"10":1,"11":2,"12":3,"13":3,"19":2,"20":1,"21":2,"23":1,"24":1,"26":1,"34":1,"35":1,"36":1,"41":1,"46":1,"51":2,"52":6,"60":2,"67":1,"72":2,"73":2,"74":1,"81":1,"85":1,"86":2,"87":1,"88":1,"93":2,"104":1,"106":6,"110":1,"116":1,"128":2,"129":2,"130":1,"150":3,"151":1,"165":1,"169":1,"173":1,"177":6,"178":27,"181":2}}],["doc9",{"2":{"58":1}}],["doc2",{"2":{"58":1}}],["doc5",{"2":{"58":1}}],["doc15",{"2":{"58":1}}],["doc8",{"2":{"58":1}}],["doc$i",{"2":{"58":1}}],["doc",{"2":{"46":2,"64":4,"178":5,"181":4}}],["doctor1",{"2":{"7":1}}],["doctorwhat",{"2":{"7":2}}],["doctor",{"2":{"7":2}}],["documenttermmatrix",{"2":{"178":1,"181":6}}],["documented",{"2":{"60":1}}],["document",{"0":{"45":1},"2":{"2":1,"7":1,"10":1,"45":1,"61":1,"64":9,"112":1,"178":5,"181":21}}],["documents",{"0":{"46":1},"2":{"2":1,"7":1,"46":1,"57":2,"58":2,"64":3,"67":2,"138":1,"178":6,"181":16}}],["documentation",{"2":{"1":1,"19":1,"32":1,"55":1,"58":1,"64":1,"72":1,"93":1,"100":1,"106":1,"112":1,"122":1,"178":8,"179":1,"181":1}}],["docstring",{"2":{"79":1,"88":1,"106":1,"178":7}}],["docstrings",{"2":{"19":1,"60":1,"145":1,"178":1}}],["docs",{"2":{"2":2,"21":1,"24":1,"46":1,"61":1,"64":6,"70":1,"75":2,"106":6,"178":8,"181":33}}],["dplyr",{"2":{"2":3}}],["denote",{"2":{"150":1}}],["declaration",{"2":{"178":4}}],["declarations",{"2":{"140":1}}],["decoded",{"2":{"178":1}}],["decodes",{"2":{"178":1}}],["decode",{"2":{"106":1,"178":4}}],["decision",{"2":{"151":9}}],["decisions",{"2":{"6":1,"151":5}}],["decides",{"2":{"181":1}}],["decide",{"2":{"17":1,"18":1,"135":1}}],["deduplicate",{"2":{"64":1,"181":1}}],["dedicated",{"2":{"1":1,"23":1,"26":1,"104":1,"151":1}}],["deviations",{"2":{"140":1}}],["device",{"2":{"41":1}}],["dev",{"2":{"67":1,"178":1}}],["developers",{"2":{"178":1}}],["developing",{"2":{"58":1}}],["development",{"2":{"58":1,"118":1}}],["depot",{"2":{"73":1}}],["depth",{"2":{"55":3,"179":3}}],["depend",{"2":{"178":1}}],["dependencies",{"2":{"24":1,"56":1}}],["depends",{"2":{"13":1}}],["depending",{"2":{"10":1,"64":2,"75":1,"104":1,"162":1,"178":1,"181":2}}],["deem",{"2":{"124":1}}],["deemed",{"2":{"52":1,"178":1}}],["deepseek",{"2":{"178":6}}],["deepseekopenaischema",{"2":{"178":2}}],["deepdive",{"0":{"63":1}}],["deeper",{"2":{"62":2}}],["deep",{"2":{"41":1,"129":1,"130":1,"159":1,"161":1,"168":1,"172":1}}],["democards",{"2":{"67":1,"178":1}}],["demonstrate",{"2":{"52":1,"177":1}}],["demanding",{"2":{"28":1}}],["delim",{"2":{"178":2}}],["delicious",{"2":{"31":2,"106":8}}],["dels",{"2":{"63":1}}],["delay=2",{"2":{"52":1,"177":1}}],["delay",{"2":{"21":1,"51":1,"52":5,"177":7,"178":1}}],["delete",{"2":{"2":1,"4":1,"73":1}}],["def2",{"2":{"181":1}}],["def",{"2":{"181":7}}],["defauls",{"2":{"178":1}}],["defaults",{"2":{"52":10,"56":1,"60":1,"63":1,"64":19,"67":4,"177":17,"178":75,"181":30}}],["default",{"0":{"84":1},"2":{"16":1,"37":1,"42":1,"52":2,"55":7,"58":3,"60":1,"64":41,"67":1,"84":2,"95":1,"104":1,"105":1,"106":1,"177":1,"178":58,"179":7,"181":103}}],["defining",{"2":{"60":3}}],["definition",{"2":{"52":1,"128":1,"169":7,"178":2}}],["defines",{"2":{"178":5,"181":2}}],["defined",{"0":{"18":1},"2":{"18":1,"52":1,"62":1,"63":1,"102":1,"103":2,"151":1,"160":1,"177":1,"178":17,"181":3}}],["define",{"2":{"2":1,"10":1,"19":2,"24":1,"37":1,"42":1,"52":1,"64":3,"86":2,"104":1,"105":1,"106":2,"138":1,"177":1,"178":12,"181":3}}],["deferring",{"2":{"52":1,"177":1}}],["deferred",{"2":{"10":1,"49":2,"52":2,"104":1,"177":3}}],["defer",{"2":{"17":1}}],["destination",{"2":{"178":1}}],["descending",{"2":{"110":1}}],["descriptive",{"2":{"150":2,"151":1}}],["description=sig",{"2":{"106":2}}],["descriptions",{"2":{"18":1,"178":5}}],["description",{"0":{"153":1,"154":1},"1":{"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1},"2":{"13":1,"18":1,"24":4,"42":1,"87":2,"106":10,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":2,"143":2,"145":1,"147":1,"148":1,"150":3,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":5,"171":1,"172":1,"173":1,"175":1,"176":1,"178":25}}],["describes",{"2":{"134":1,"136":1,"156":1}}],["described",{"2":{"124":1,"138":1}}],["describe",{"2":{"20":2,"43":1,"150":1,"151":2,"164":1,"166":1,"172":1,"178":6}}],["despite",{"0":{"73":2},"2":{"178":1}}],["desired",{"2":{"66":2,"138":1,"140":1,"177":1}}],["designed",{"2":{"0":1,"10":4,"49":1,"52":2,"56":1,"60":2,"87":1,"104":4,"106":1,"177":2,"178":5}}],["deserialize",{"2":{"2":1,"178":1}}],["debugging",{"2":{"97":1,"178":15,"181":1}}],["debug",{"2":{"2":1,"64":1,"181":1}}],["determining",{"2":{"178":1}}],["determines",{"2":{"98":1,"178":1}}],["determine",{"2":{"0":1,"4":1,"7":1,"156":1}}],["detects",{"2":{"178":3}}],["detect",{"2":{"178":2}}],["detachment",{"2":{"12":2}}],["detail=",{"2":{"178":1}}],["detailorientedtask",{"0":{"157":1}}],["detail",{"2":{"64":1,"79":1,"128":1,"129":1,"142":1,"143":1,"145":1,"157":2,"178":14,"181":1}}],["details",{"2":{"2":1,"10":2,"24":1,"37":1,"49":1,"52":2,"63":1,"64":9,"75":1,"103":2,"104":2,"106":2,"122":1,"123":1,"126":1,"142":1,"143":1,"145":1,"169":1,"177":8,"178":5,"181":29}}],["detailed",{"2":{"0":1,"52":2,"118":1,"138":1,"177":4}}],["aaazzam",{"2":{"178":1}}],["aai",{"2":{"11":2,"96":3,"178":11}}],["axolotl",{"2":{"89":1}}],["a>",{"2":{"67":1,"178":6,"181":1}}],["away",{"2":{"52":1,"67":1,"73":1,"177":1,"178":1}}],["awareness",{"2":{"64":1,"181":2}}],["aware",{"2":{"49":1,"57":1,"66":1}}],["acronyms",{"2":{"124":1}}],["across",{"2":{"52":1,"62":2,"64":2,"79":1,"106":1,"177":2,"178":2,"181":5}}],["achievable",{"2":{"67":1,"178":1}}],["achieve",{"2":{"34":1,"67":3,"81":1,"86":1,"177":1,"178":3}}],["acts",{"2":{"178":1}}],["action",{"2":{"151":1,"177":2}}],["actionable",{"2":{"138":1,"139":1,"140":1,"148":1,"151":1}}],["active",{"2":{"52":13,"177":17}}],["act",{"2":{"85":1,"90":1,"152":1,"178":1}}],["actually",{"2":{"28":1,"36":2,"128":1,"129":1,"169":1,"178":1}}],["actual",{"2":{"24":2,"52":1,"128":1,"129":1,"130":1,"169":1,"177":2}}],["accumulate",{"2":{"181":1}}],["accuracy",{"2":{"58":1,"138":1,"142":1,"143":1,"145":1,"181":5}}],["accurately",{"2":{"140":1,"148":1,"156":1,"176":1}}],["accurate",{"2":{"23":1,"26":1,"178":1}}],["account",{"2":{"72":2,"74":1,"75":2,"76":1,"93":3}}],["according",{"2":{"67":1,"178":2}}],["accesor",{"2":{"181":1}}],["accesses",{"2":{"178":1}}],["accessed",{"2":{"87":1,"178":1}}],["accessible",{"2":{"162":1,"178":1}}],["accessing",{"2":{"72":1,"178":9}}],["accessors",{"2":{"181":1}}],["accessor",{"2":{"52":4,"177":2,"178":2}}],["access",{"0":{"70":1,"81":1},"2":{"21":1,"28":1,"31":1,"45":1,"48":1,"49":1,"51":1,"52":3,"56":1,"73":1,"81":2,"83":1,"86":1,"93":1,"98":1,"99":1,"108":1,"115":1,"116":1,"177":5,"178":25,"181":7}}],["accepts",{"2":{"52":3,"106":1,"177":4}}],["accept",{"2":{"52":3,"177":4,"181":1}}],["affection",{"2":{"178":1}}],["affects",{"2":{"8":1}}],["after",{"2":{"24":1,"52":5,"64":2,"67":3,"74":1,"86":1,"87":1,"95":1,"150":1,"151":1,"165":1,"173":1,"177":3,"178":11,"181":4}}],["amount",{"2":{"178":1}}],["among",{"2":{"169":1}}],["ambiguities",{"2":{"139":1}}],["amazing",{"2":{"100":1}}],["amazingly",{"2":{"22":1}}],["am",{"2":{"31":1,"41":1,"106":1,"178":6}}],["amp",{"0":{"4":1,"5":1,"6":1},"2":{"2":1,"3":1,"6":1,"7":1,"64":4,"181":4}}],["ah",{"2":{"12":1,"178":1}}],["administrator",{"2":{"168":1}}],["adhere",{"2":{"178":2}}],["adheres",{"2":{"140":1}}],["adherence",{"2":{"138":2,"142":1,"143":1,"145":1}}],["adapted",{"2":{"115":1,"116":1,"123":1,"125":1,"126":1}}],["adapt",{"2":{"89":1}}],["advisable",{"2":{"181":1}}],["advice",{"2":{"37":1,"67":2,"178":2}}],["advantages",{"2":{"58":1}}],["advancements",{"2":{"58":1}}],["advance",{"2":{"52":1,"177":1}}],["advancedgenerator",{"2":{"64":1,"178":1,"181":3}}],["advancedretriever",{"2":{"62":3,"64":4,"178":1,"181":7}}],["advanced",{"0":{"12":1,"35":1,"41":1},"2":{"48":1,"55":2,"64":3,"97":1,"112":1,"178":1,"179":2,"181":4}}],["adjectives",{"2":{"31":2,"106":8}}],["adjustments",{"2":{"138":2,"140":1}}],["adjusts",{"2":{"39":1,"41":1}}],["adjust",{"2":{"24":1,"49":1,"169":1}}],["addresses",{"2":{"140":1}}],["addressed",{"2":{"128":1,"139":1}}],["address",{"2":{"128":1,"138":1,"169":1,"178":4}}],["addded",{"2":{"64":1,"181":1}}],["adding",{"2":{"64":1,"66":1,"106":1,"140":1,"151":1,"178":1,"181":1}}],["additional",{"2":{"52":1,"54":1,"60":1,"64":13,"95":1,"115":1,"116":1,"124":2,"150":1,"177":4,"178":37,"181":22}}],["addition",{"2":{"10":2,"18":1,"31":1,"60":1,"64":1,"104":1,"165":4,"173":4,"178":2,"181":2}}],["added",{"2":{"24":1,"37":1,"52":1,"64":1,"67":2,"177":1,"178":5,"181":5}}],["adds",{"2":{"11":1,"177":1,"178":1,"181":3}}],["add",{"2":{"8":3,"11":1,"13":2,"20":1,"24":7,"32":1,"39":1,"42":1,"47":1,"51":1,"52":3,"64":9,"78":1,"81":2,"87":2,"90":1,"94":1,"106":2,"124":1,"150":1,"177":9,"178":15,"181":34}}],["agreements",{"2":{"158":1}}],["agreed",{"2":{"151":2}}],["agnostic",{"2":{"90":1}}],["agents",{"2":{"48":1,"181":3}}],["agentic",{"2":{"48":1,"52":1,"177":2,"180":1}}],["agent",{"0":{"21":1,"48":1},"1":{"49":1,"50":1,"51":1,"52":1},"2":{"21":1,"52":1,"177":2,"178":1}}],["agenttools",{"0":{"177":1},"2":{"10":3,"21":1,"48":3,"52":6,"66":1,"86":1,"104":2,"177":69,"178":35,"180":2}}],["age",{"2":{"19":2,"178":14}}],["against",{"2":{"58":1,"64":1,"178":1,"181":1}}],["again",{"2":{"11":1,"87":1,"178":2}}],["auditing",{"2":{"178":2}}],["audience",{"2":{"138":5,"160":5,"162":2,"169":2}}],["authorization",{"2":{"178":2}}],["authentication",{"2":{"178":3}}],["auth",{"2":{"178":2}}],["auto",{"2":{"52":5,"138":1,"139":1,"140":1,"177":1,"178":11}}],["automatically",{"2":{"17":1,"24":1,"49":2,"52":2,"57":1,"58":1,"63":1,"73":1,"78":1,"91":6,"106":3,"178":15,"181":1}}],["automatic",{"0":{"51":1,"91":1},"2":{"10":1,"49":1,"52":1,"104":1,"106":1,"178":1}}],["augment",{"2":{"124":1}}],["augmented",{"0":{"1":1},"1":{"2":1},"2":{"1":1,"56":1,"64":2,"180":1,"181":3}}],["avg",{"2":{"7":2}}],["average",{"2":{"7":1,"64":1,"119":1,"181":3}}],["available",{"2":{"6":1,"10":1,"13":2,"23":2,"24":4,"26":2,"32":2,"61":1,"63":2,"64":4,"73":1,"83":2,"103":1,"104":1,"106":1,"134":1,"136":1,"150":1,"178":23,"181":7}}],["avoiding",{"2":{"58":1,"118":1}}],["avoided",{"2":{"11":1}}],["avoid",{"2":{"2":1,"42":1,"52":2,"64":1,"67":1,"74":1,"96":1,"128":1,"129":1,"166":1,"167":1,"178":3,"181":5}}],["april",{"2":{"15":1}}],["apostrophes",{"2":{"181":1}}],["apos",{"2":{"7":12}}],["appends",{"2":{"178":3}}],["append",{"2":{"177":1}}],["appended",{"2":{"52":1,"178":2,"181":1}}],["approximates",{"2":{"177":2}}],["appropriate",{"2":{"134":1,"136":3,"148":1,"178":1}}],["approach>",{"2":{"172":4}}],["approach",{"2":{"52":1,"104":1,"122":1,"164":4,"166":2,"167":1,"172":4,"177":1,"181":3}}],["appreciate",{"2":{"12":1}}],["applying",{"2":{"177":1,"181":1}}],["apply",{"2":{"64":1,"67":1,"142":1,"178":4,"181":2}}],["apples",{"2":{"178":2}}],["apple",{"2":{"31":2,"37":1,"106":8,"178":1}}],["applicable",{"2":{"64":1,"152":1,"181":2}}],["applications",{"2":{"10":1,"56":3,"57":1,"58":1,"64":1,"108":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"125":1,"126":1,"161":1,"165":1,"173":1,"181":1}}],["application",{"2":{"2":1,"58":1,"98":1,"99":1}}],["applied",{"2":{"10":1,"49":1,"52":1,"57":1,"67":1,"104":1,"177":1,"178":13,"181":1}}],["applies",{"2":{"2":1,"63":1,"67":1,"177":2,"178":1}}],["app",{"2":{"4":1,"83":1,"165":1,"173":1}}],["apikey",{"0":{"73":1}}],["apitools",{"0":{"53":1,"179":1},"1":{"54":1,"55":1},"2":{"53":2,"55":1,"178":2,"179":4,"180":1}}],["apis",{"0":{"23":1,"25":1,"27":1},"1":{"26":1,"27":1,"28":1,"29":1,"30":1,"31":1},"2":{"23":1,"36":1,"53":1,"69":1,"70":1,"77":1,"98":1,"101":1,"180":1}}],["api",{"0":{"23":1,"72":1,"73":2,"78":1,"79":1,"80":2,"90":1,"99":1},"2":{"0":6,"2":1,"7":1,"8":1,"10":2,"20":1,"21":3,"23":10,"25":1,"26":4,"27":8,"28":1,"29":5,"30":2,"31":2,"32":4,"37":1,"42":1,"51":3,"52":8,"54":2,"55":5,"56":1,"62":5,"64":34,"71":3,"72":3,"73":5,"75":2,"76":1,"78":10,"79":4,"80":1,"83":1,"90":2,"91":3,"93":9,"98":2,"99":3,"100":2,"104":4,"105":7,"106":7,"177":10,"178":284,"179":11,"180":1,"181":69}}],["abbreviations",{"2":{"124":1}}],["ab",{"2":{"67":1,"178":2}}],["abcabc",{"2":{"67":1,"178":1}}],["abc",{"2":{"52":3,"67":7,"104":2,"177":3,"178":9,"181":7}}],["ability",{"2":{"31":1,"115":1,"116":1}}],["abilities",{"2":{"23":1,"26":1}}],["about",{"2":{"13":2,"24":1,"37":1,"49":1,"64":1,"86":1,"90":2,"91":2,"102":1,"105":1,"138":1,"159":1,"160":1,"161":1,"162":2,"163":1,"165":1,"166":1,"167":1,"168":1,"171":1,"173":1,"178":19,"181":4}}],["above",{"2":{"10":1,"13":2,"15":1,"17":1,"28":1,"57":1,"64":1,"66":1,"77":1,"104":2,"105":1,"110":1,"119":1,"128":1,"129":1,"130":1,"150":1,"158":1,"166":1,"167":1,"169":1,"177":1,"178":3,"181":2}}],["abs",{"2":{"52":1,"177":1}}],["absence",{"2":{"12":1}}],["abstractfloat",{"2":{"181":4}}],["abstractdocumenttermmatrix",{"2":{"181":1}}],["abstractdocumentindex",{"2":{"64":4,"181":17}}],["abstractdatamessage",{"2":{"178":1}}],["abstractprocessor=keywordsprocessor",{"2":{"181":1}}],["abstractprocessor",{"2":{"64":2,"181":7}}],["abstractpromptschema",{"2":{"0":1,"52":1,"98":1,"99":1,"100":2,"177":1,"178":5}}],["abstractpostprocessor",{"2":{"61":1,"64":2,"181":4}}],["abstractsharegptschema",{"2":{"178":1}}],["abstractscoringmethod",{"2":{"177":4}}],["abstractsimilarityfinder",{"2":{"61":1,"64":1,"181":11}}],["abstractstring=",{"2":{"52":4,"67":2,"178":8,"181":1}}],["abstractstring",{"2":{"10":2,"52":6,"55":8,"61":3,"64":13,"67":13,"104":2,"177":4,"178":95,"179":10,"181":89}}],["abstractgenerationmethod",{"2":{"181":1}}],["abstractgenerator",{"2":{"61":3,"64":4,"178":1,"181":8}}],["abstractgoogleschema",{"2":{"0":1,"178":2}}],["abstracttracer",{"2":{"178":1}}],["abstracttracermessage",{"2":{"178":2}}],["abstracttracerschema",{"2":{"178":13}}],["abstracttrees",{"2":{"52":1,"177":1,"181":1}}],["abstracttagfilter",{"2":{"61":1,"64":1,"181":8}}],["abstracttagger",{"2":{"61":2,"64":4,"181":12}}],["abstractembedder",{"2":{"61":2,"64":2,"181":10}}],["abstractragconfig",{"2":{"61":3,"64":2,"181":3}}],["abstractragresult",{"2":{"60":2,"61":4,"63":1,"64":4,"181":14}}],["abstractretrievalmethod",{"2":{"181":1}}],["abstractretriever",{"2":{"60":2,"61":2,"64":4,"178":1,"181":9}}],["abstractrefiner",{"2":{"61":1,"64":4,"181":8}}],["abstractrephraser",{"2":{"61":1,"64":2,"181":9}}],["abstractreranker",{"2":{"60":1,"61":2,"64":2,"181":10}}],["abstractindexbuilder",{"2":{"61":2,"64":2,"178":1,"181":7}}],["abstractindex",{"2":{"60":1}}],["abstractcodeblock",{"2":{"178":1}}],["abstractcodeoutcome",{"2":{"52":2,"177":2}}],["abstractcontextbuilder",{"2":{"61":1,"64":2,"181":4}}],["abstractchar",{"2":{"67":1,"178":1}}],["abstractchatmessage",{"2":{"24":2,"87":1,"105":1,"178":3}}],["abstractchunker",{"2":{"61":1,"64":2,"181":7}}],["abstractchunkindex",{"2":{"61":4,"64":1,"178":1,"181":17}}],["abstractcandidatechunks",{"2":{"60":1,"178":1,"181":6}}],["abstractvector",{"2":{"52":1,"55":2,"64":6,"67":1,"177":4,"178":45,"179":2,"181":52}}],["abstractmatrix",{"2":{"181":11}}],["abstractmanagedschema",{"2":{"0":1,"178":2}}],["abstractmultiindex",{"2":{"178":1,"181":2}}],["abstractmessage",{"2":{"52":2,"58":1,"85":1,"86":1,"90":2,"101":1,"102":1,"177":6,"178":98,"181":1}}],["abstractannotationstyler",{"2":{"181":4}}],["abstractannotatednode",{"2":{"181":5}}],["abstractanswerer",{"2":{"61":1,"64":2,"181":4}}],["abstractanthropicschema",{"2":{"0":1,"178":6}}],["abstractarray",{"2":{"10":1,"104":1}}],["abstractoutcomes",{"2":{"177":1}}],["abstractollamamanagedschema",{"2":{"0":1,"178":6}}],["abstractollamaschema",{"2":{"0":1,"178":3}}],["abstractopenaischema",{"2":{"0":9,"99":1,"100":1,"178":11}}],["abstract",{"2":{"0":1,"63":1,"64":2,"86":1,"106":2,"166":1,"167":1,"181":8}}],["able",{"2":{"2":1,"177":1}}],["arxiv",{"2":{"181":1}}],["arr",{"2":{"87":2,"178":2,"181":3}}],["arrays",{"2":{"166":1,"167":1,"178":1}}],["array",{"2":{"13":1,"22":1,"24":1,"45":1,"58":3,"67":3,"87":1,"178":8,"181":5}}],["arbitrary",{"2":{"86":1,"178":3}}],["art",{"2":{"69":1}}],["artificial",{"2":{"16":1}}],["articles",{"2":{"58":1,"178":2}}],["article",{"2":{"1":1}}],["arches",{"2":{"63":1}}],["arg2",{"2":{"178":1}}],["arg1",{"2":{"178":1}}],["argmin",{"2":{"67":2,"178":2}}],["argmax",{"2":{"67":1,"178":1}}],["args",{"2":{"52":5,"177":11,"178":1,"181":1}}],["argumenterror",{"0":{"73":2}}],["arguments",{"0":{"62":1,"80":1},"2":{"10":4,"12":1,"19":1,"21":1,"49":2,"52":10,"55":1,"60":2,"62":2,"64":17,"67":5,"96":1,"104":4,"106":2,"142":1,"143":1,"145":1,"147":1,"177":27,"178":84,"179":1,"181":38}}],["argument",{"2":{"6":1,"7":8,"10":2,"15":1,"21":2,"23":1,"24":1,"26":1,"39":1,"45":1,"51":2,"52":4,"58":2,"60":2,"67":1,"74":1,"85":2,"87":1,"104":2,"142":1,"143":1,"145":1,"177":5,"178":12}}],["around",{"2":{"10":1,"60":1,"64":1,"67":1,"96":1,"100":1,"104":1,"169":1,"177":1,"178":5,"181":5}}],["areas",{"2":{"128":1}}],["are",{"2":{"0":1,"5":1,"6":1,"7":8,"10":1,"11":1,"12":1,"13":3,"17":1,"19":1,"21":1,"23":5,"24":12,"26":2,"27":3,"36":2,"37":1,"41":1,"49":3,"51":1,"52":12,"57":3,"58":4,"60":4,"61":1,"63":2,"64":11,"66":4,"67":6,"69":1,"70":1,"75":1,"83":1,"84":1,"86":2,"87":1,"90":1,"91":1,"98":2,"100":2,"101":2,"102":2,"103":2,"104":2,"105":4,"106":2,"110":2,"116":3,"118":1,"123":1,"124":1,"125":1,"126":1,"128":4,"134":1,"135":1,"136":3,"138":1,"140":2,"142":1,"143":1,"145":1,"148":1,"150":1,"151":2,"154":1,"155":1,"157":2,"158":1,"159":2,"160":1,"161":2,"162":2,"163":1,"164":1,"165":3,"166":1,"167":1,"168":2,"169":4,"171":1,"172":1,"173":3,"176":1,"177":14,"178":69,"181":41}}],["atop",{"2":{"178":1}}],["atomic",{"2":{"64":10,"181":29}}],["ate",{"2":{"31":1,"106":3,"178":1}}],["attribute",{"2":{"181":2}}],["attract",{"2":{"125":1}}],["attempted",{"2":{"52":1,"177":3}}],["attempts",{"2":{"49":1,"52":2,"86":1,"177":3}}],["attempt",{"2":{"21":1,"51":1,"52":2,"177":2}}],["attach",{"2":{"178":5}}],["attached",{"2":{"12":1,"35":1,"41":1,"178":2}}],["attachments",{"2":{"12":1}}],["attachment",{"2":{"12":1,"35":1,"178":3}}],["at",{"2":{"1":1,"6":1,"7":1,"21":2,"23":1,"27":1,"31":1,"32":1,"34":1,"36":1,"43":1,"48":1,"51":2,"52":5,"54":1,"60":1,"63":1,"64":4,"69":1,"71":1,"74":1,"84":1,"98":1,"103":1,"105":1,"113":2,"119":2,"152":1,"177":12,"178":21,"181":11}}],["aspect",{"2":{"175":1}}],["aspects",{"2":{"138":1,"139":1,"140":1,"165":1,"173":1}}],["as=",{"2":{"87":2,"103":1,"178":1}}],["assesses",{"2":{"181":2}}],["assess",{"2":{"138":1}}],["assertion",{"2":{"178":1}}],["assertions",{"2":{"21":1,"52":1,"177":1}}],["assert",{"2":{"52":1,"106":2,"177":1,"181":2}}],["assigning",{"2":{"169":1}}],["assign",{"2":{"112":1,"119":1}}],["assistance",{"2":{"23":1,"26":1,"42":1}}],["assistant",{"2":{"12":1,"34":1,"85":1,"90":1,"91":1,"103":1,"105":2,"108":1,"110":1,"115":1,"116":1,"119":2,"120":1,"122":1,"124":1,"126":1,"138":3,"139":7,"140":2,"148":1,"155":2,"156":1,"157":1,"178":8}}],["assistantask",{"0":{"155":1},"2":{"10":1,"103":4,"104":1,"105":3}}],["assist",{"2":{"22":1,"23":1,"26":1,"30":2,"31":1,"34":1,"85":1,"178":10}}],["associated",{"2":{"84":1,"105":1,"151":1,"178":5,"181":1}}],["assuming",{"2":{"64":1,"75":1,"77":1,"178":1,"181":3}}],["assumed",{"2":{"177":1,"178":1,"181":4}}],["assumes",{"2":{"37":1,"64":1,"178":5,"181":5}}],["assume",{"2":{"22":1,"74":1,"94":1,"177":1,"181":2}}],["asterisk",{"2":{"11":1}}],["asynchronous",{"0":{"14":1},"2":{"96":1,"178":5}}],["asyncmap",{"2":{"7":1,"14":3,"46":2,"64":1,"74":3,"96":1,"181":4}}],["async",{"2":{"7":1,"46":1,"178":1}}],["asks",{"2":{"130":1,"158":2}}],["ask=",{"2":{"52":1,"104":2,"105":2,"177":1}}],["asked",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"37":1,"181":1}}],["asking",{"2":{"13":1,"24":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"178":2}}],["ask",{"2":{"2":1,"13":4,"21":2,"23":1,"24":8,"26":1,"31":1,"34":1,"42":1,"51":2,"52":2,"57":1,"66":1,"103":3,"105":7,"129":1,"155":3,"159":3,"161":3,"163":3,"168":3,"171":3,"177":2,"178":6,"181":2}}],["as",{"2":{"0":1,"2":1,"6":1,"7":4,"10":9,"11":1,"15":1,"16":1,"17":1,"18":1,"20":1,"21":2,"23":5,"24":5,"26":2,"27":2,"29":3,"30":2,"31":4,"32":1,"34":1,"39":1,"42":2,"43":2,"47":1,"48":1,"49":2,"51":3,"52":13,"53":1,"54":1,"56":1,"58":2,"60":3,"63":1,"64":1,"67":15,"74":1,"78":3,"85":4,"86":4,"87":5,"88":1,"90":3,"91":1,"93":1,"96":2,"99":1,"102":1,"103":2,"104":7,"105":2,"106":12,"108":1,"112":1,"115":2,"116":1,"119":1,"122":2,"123":2,"128":3,"138":6,"139":1,"140":2,"142":3,"143":3,"145":3,"150":6,"151":4,"152":3,"156":2,"158":4,"160":2,"162":1,"165":3,"169":1,"173":3,"176":2,"177":28,"178":115,"181":32}}],["a",{"0":{"1":1,"4":1,"5":1,"6":1,"87":1,"88":1,"89":1},"1":{"2":1},"2":{"0":3,"1":2,"2":6,"3":3,"4":1,"5":2,"6":9,"7":16,"8":2,"10":14,"11":6,"12":7,"13":7,"15":3,"16":1,"17":4,"18":3,"19":6,"20":5,"21":6,"22":1,"23":3,"24":23,"25":1,"26":3,"28":2,"29":1,"30":3,"31":4,"32":1,"34":2,"35":2,"36":2,"37":1,"39":1,"40":1,"41":5,"42":3,"43":1,"45":1,"47":1,"48":1,"49":12,"51":3,"52":47,"55":2,"56":2,"57":6,"58":8,"60":6,"63":6,"64":42,"65":2,"66":12,"67":35,"73":2,"74":5,"75":1,"76":4,"77":8,"78":5,"83":3,"85":5,"86":14,"87":11,"89":7,"90":3,"91":4,"93":1,"95":2,"98":1,"99":2,"100":1,"101":4,"102":1,"103":8,"104":13,"105":6,"106":24,"108":1,"112":2,"115":1,"116":1,"118":4,"119":4,"120":4,"122":3,"123":3,"124":4,"125":1,"126":4,"128":4,"129":1,"130":1,"134":2,"136":2,"138":7,"139":7,"140":5,"142":2,"143":2,"145":2,"148":5,"150":9,"151":6,"152":3,"155":1,"156":7,"157":2,"158":5,"159":1,"160":3,"161":1,"162":5,"163":1,"164":1,"165":8,"166":2,"167":3,"168":1,"169":6,"171":1,"172":2,"173":8,"175":4,"176":1,"177":85,"178":485,"179":2,"181":196}}],["al",{"2":{"181":3}}],["algorithm",{"2":{"181":5}}],["algorithms",{"2":{"52":1,"58":1,"177":2}}],["alignment",{"2":{"142":1,"143":1,"145":1}}],["aligns",{"2":{"138":1,"178":2,"181":2}}],["aligned",{"2":{"123":1,"125":1,"181":1}}],["align",{"2":{"119":1,"138":1,"140":1,"178":7,"181":4}}],["aliased",{"2":{"31":1}}],["aliases",{"0":{"15":1},"2":{"15":5,"29":1,"37":1,"42":1,"178":34}}],["alias",{"2":{"7":1,"29":1,"30":1,"31":1,"33":1,"42":1,"106":2,"178":32,"181":1}}],["alexander",{"2":{"118":3}}],["almost",{"2":{"60":1}}],["alternative",{"2":{"124":1,"178":7}}],["alternatives",{"0":{"82":1},"2":{"70":1}}],["alternatively",{"2":{"24":1,"52":1,"83":1,"93":1,"177":2,"178":1}}],["alter",{"2":{"52":1,"178":1}}],["already",{"2":{"30":1,"31":1,"37":1,"64":1,"74":1,"83":1,"94":1,"177":1,"181":4}}],["always",{"2":{"23":1,"24":1,"26":1,"28":1,"52":2,"60":1,"66":1,"67":2,"71":1,"72":1,"76":1,"86":1,"87":2,"128":2,"136":1,"138":1,"139":1,"140":1,"167":1,"177":5,"178":6,"181":4}}],["also",{"2":{"2":1,"6":1,"7":2,"10":1,"12":1,"15":1,"18":2,"21":1,"22":1,"23":1,"24":4,"28":1,"29":2,"30":1,"31":1,"51":1,"52":8,"55":1,"64":7,"67":2,"79":1,"86":1,"87":1,"91":1,"104":1,"106":2,"128":1,"129":1,"130":1,"177":7,"178":35,"179":1,"181":19}}],["all=false",{"2":{"178":7}}],["all=true`",{"2":{"104":1}}],["all=true",{"2":{"2":1,"58":1,"64":2,"85":4,"86":1,"91":1,"104":1,"106":1,"178":20,"181":2}}],["alltagfilter",{"2":{"178":1,"181":4}}],["allocations",{"2":{"181":1}}],["allocation",{"2":{"58":1}}],["allowing",{"2":{"56":1,"177":1,"178":2}}],["allow",{"2":{"49":1,"82":1,"106":1,"178":4,"181":1}}],["allowed",{"2":{"21":1,"52":1,"106":1,"177":2,"178":29}}],["allows",{"2":{"10":1,"21":1,"22":1,"25":1,"42":1,"49":3,"51":1,"52":2,"64":2,"76":1,"104":1,"177":4,"178":3,"181":2}}],["all",{"2":{"0":1,"2":1,"6":3,"7":9,"10":3,"11":2,"12":1,"13":1,"15":1,"19":1,"23":1,"24":1,"26":1,"35":1,"49":2,"52":16,"58":1,"60":1,"62":2,"63":1,"64":12,"67":1,"85":1,"86":1,"87":2,"90":4,"94":1,"97":1,"99":1,"100":1,"103":1,"104":3,"106":1,"112":1,"119":3,"128":2,"129":1,"151":2,"165":1,"166":1,"167":1,"169":2,"173":1,"176":1,"177":30,"178":59,"181":26}}],["along",{"2":{"0":1,"64":1,"138":1,"177":1,"181":2}}],["anonymous",{"2":{"166":1,"167":1}}],["another",{"2":{"11":1,"52":1,"64":3,"177":2,"178":1,"181":5}}],["ancient",{"2":{"67":1,"178":1}}],["ancestors",{"2":{"52":1,"177":5}}],["ancestor",{"2":{"52":1,"177":1}}],["annotation",{"2":{"181":3}}],["annotations",{"2":{"64":1,"166":1,"167":1,"181":3}}],["annotating",{"2":{"181":1}}],["annotatednode",{"2":{"178":1,"181":11}}],["annotated",{"2":{"64":6,"181":6}}],["annotates",{"2":{"64":1,"181":1}}],["annotater",{"2":{"64":6,"181":10}}],["annotate",{"2":{"10":1,"57":1,"58":1,"64":8,"178":3,"181":16}}],["animal",{"2":{"18":2,"86":2,"178":8}}],["ans",{"2":{"10":5,"95":1,"104":5}}],["answer=",{"2":{"181":4}}],["answer=answer",{"2":{"181":1}}],["answering",{"2":{"119":1,"142":1}}],["answered",{"2":{"64":1,"118":1,"151":1,"181":1}}],["answerer",{"2":{"62":1,"64":11,"181":17}}],["answers",{"2":{"3":1,"8":1,"56":1,"57":1,"108":1,"115":1,"116":1,"118":1,"122":2,"123":1,"138":1,"139":3,"140":1,"150":1,"159":2,"161":2,"168":2,"181":5}}],["answer",{"2":{"2":3,"5":1,"6":4,"7":4,"10":4,"11":2,"17":1,"21":3,"23":1,"24":6,"26":1,"31":1,"51":3,"52":16,"54":1,"55":4,"57":3,"58":7,"60":1,"61":2,"63":1,"64":33,"86":1,"103":2,"104":1,"105":4,"108":4,"115":20,"116":22,"118":6,"119":14,"120":7,"122":1,"123":1,"124":1,"135":1,"139":2,"140":3,"155":2,"159":2,"161":2,"163":2,"168":2,"171":2,"177":13,"178":5,"179":4,"181":103}}],["antropic",{"2":{"178":1}}],["antibiotics",{"2":{"118":2}}],["anti",{"2":{"7":1}}],["anthropic",{"2":{"0":1,"69":1,"70":1,"142":1,"143":1,"171":1,"172":1,"173":1,"178":18}}],["anthropicschema",{"2":{"0":1,"178":4}}],["analystthemesinresponses",{"0":{"152":1}}],["analystdecisionsintranscript",{"0":{"151":1}}],["analyst",{"2":{"150":1,"151":1}}],["analystchaptersintranscript",{"0":{"150":1}}],["analysis",{"2":{"6":1,"7":1,"17":1,"24":4,"52":1,"58":2,"152":1,"177":1}}],["analyzed",{"2":{"152":1}}],["analyze",{"2":{"7":1,"118":1,"125":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"151":1}}],["anytagfilter",{"2":{"178":1,"181":4}}],["anything",{"2":{"31":1,"34":1,"39":1,"40":1,"42":1,"150":1,"178":3,"181":1}}],["anymore",{"2":{"84":1}}],["anyone",{"2":{"72":1,"93":1}}],["anywhere",{"0":{"81":1},"2":{"22":1,"81":1,"83":1}}],["anyscale",{"2":{"8":1}}],["any",{"2":{"0":2,"2":1,"4":1,"6":2,"7":2,"10":2,"11":3,"13":1,"17":1,"18":4,"21":1,"23":2,"24":2,"25":1,"26":1,"28":1,"31":2,"32":1,"34":1,"35":1,"42":1,"49":3,"51":1,"52":13,"56":1,"60":2,"63":1,"64":1,"67":1,"72":1,"73":1,"77":1,"78":1,"81":1,"86":3,"87":3,"89":1,"90":2,"91":2,"93":1,"95":1,"100":1,"104":2,"105":1,"106":9,"110":1,"112":2,"113":1,"116":1,"118":1,"124":2,"128":1,"138":1,"139":1,"140":3,"150":2,"151":2,"152":1,"154":1,"164":1,"165":2,"166":1,"167":2,"169":1,"172":1,"173":2,"175":2,"177":10,"178":83,"181":23}}],["an",{"0":{"73":2,"74":1},"2":{"0":2,"2":3,"6":1,"7":3,"10":4,"12":1,"17":1,"19":1,"20":1,"21":1,"22":1,"32":1,"41":1,"42":2,"48":1,"49":3,"51":1,"52":13,"53":1,"54":2,"55":3,"56":1,"57":2,"58":4,"60":2,"61":1,"63":2,"64":11,"66":1,"67":5,"72":2,"73":1,"77":1,"78":1,"86":3,"89":2,"90":1,"93":3,"97":2,"98":1,"99":2,"100":1,"103":1,"104":4,"106":8,"108":1,"110":1,"115":2,"116":2,"119":5,"120":1,"122":1,"124":1,"126":1,"128":1,"129":2,"135":1,"136":1,"138":1,"140":1,"148":1,"152":1,"162":1,"166":1,"169":2,"175":1,"177":22,"178":125,"179":3,"181":34}}],["and",{"0":{"20":1,"23":1,"71":1},"2":{"0":6,"1":5,"2":12,"3":2,"4":2,"6":3,"7":17,"8":5,"10":13,"11":3,"12":3,"13":2,"16":2,"17":3,"18":1,"19":4,"21":9,"22":2,"23":6,"24":15,"26":2,"27":3,"28":2,"29":2,"30":3,"31":3,"32":2,"34":1,"35":2,"36":2,"37":4,"41":2,"42":5,"45":1,"47":1,"48":1,"49":11,"51":9,"52":58,"53":1,"54":2,"56":1,"57":1,"58":11,"60":7,"62":3,"63":5,"64":47,"65":2,"66":6,"67":10,"69":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":2,"76":2,"77":2,"78":1,"79":2,"81":1,"82":1,"83":3,"84":2,"85":1,"86":13,"87":6,"88":3,"89":1,"90":5,"91":4,"93":4,"94":1,"95":2,"96":2,"97":2,"98":2,"99":1,"100":2,"102":2,"103":5,"104":12,"105":10,"106":27,"108":1,"112":6,"113":1,"115":3,"116":4,"118":5,"119":3,"120":3,"122":2,"123":1,"124":3,"125":1,"126":1,"128":10,"129":4,"130":1,"134":2,"136":2,"138":16,"139":5,"140":10,"142":5,"143":4,"145":4,"147":1,"148":4,"150":17,"151":16,"152":3,"154":1,"155":2,"156":5,"157":2,"158":9,"159":3,"160":2,"161":2,"162":7,"163":2,"164":4,"165":5,"166":2,"167":3,"168":4,"169":10,"171":2,"172":3,"173":5,"175":1,"176":2,"177":98,"178":215,"179":1,"180":2,"181":189}}],["aims",{"2":{"181":4}}],["aimessage>",{"2":{"11":1,"178":1}}],["aimessage",{"2":{"2":1,"10":3,"12":2,"20":2,"22":1,"23":1,"24":1,"26":1,"30":1,"31":1,"34":1,"35":1,"36":1,"39":1,"40":1,"41":1,"42":1,"49":1,"52":6,"58":2,"60":1,"61":2,"85":2,"87":2,"95":2,"96":1,"98":2,"102":1,"104":3,"105":2,"177":11,"178":71}}],["aiagent",{"2":{"177":1}}],["aihelpme",{"2":{"87":1}}],["aitemplatemetadata",{"2":{"13":3,"24":2,"87":2,"178":14}}],["aitemplate",{"2":{"13":3,"24":4,"64":1,"90":2,"103":2,"105":2,"177":4,"178":17,"181":1}}],["aitemplates",{"0":{"24":1},"2":{"10":4,"13":4,"24":3,"87":1,"103":2,"104":3,"178":23,"181":2}}],["air",{"2":{"67":1,"178":1}}],["airetry",{"0":{"21":1},"2":{"10":1,"21":8,"49":3,"51":8,"52":13,"86":6,"104":1,"106":6,"177":14,"178":1}}],["airag",{"2":{"2":2,"6":1,"7":2,"10":1,"57":1,"58":3,"61":1,"62":1,"63":1,"64":7,"178":1,"181":24}}],["aiclassifier",{"2":{"86":1}}],["aiclassify",{"2":{"0":1,"10":2,"13":1,"17":1,"18":2,"52":1,"86":4,"104":1,"134":1,"177":7,"178":21}}],["aicodefixer",{"2":{"49":2,"52":9,"128":1,"129":1,"130":1,"177":31,"178":2,"180":1}}],["aicode",{"2":{"49":3,"52":16,"177":6,"178":13}}],["aicallblock",{"2":{"52":4,"177":13}}],["aicall",{"2":{"10":2,"21":9,"49":3,"51":9,"52":51,"104":2,"106":4,"177":100,"178":2}}],["aiimage",{"2":{"0":2,"10":2,"104":1,"178":8}}],["aiscan",{"0":{"43":1},"2":{"0":2,"10":2,"20":3,"43":1,"104":1,"177":6,"178":19}}],["aiextract",{"0":{"106":1},"2":{"0":1,"6":1,"10":2,"19":2,"31":2,"52":1,"64":3,"102":1,"104":2,"106":5,"142":1,"143":1,"145":1,"177":7,"178":30,"181":6}}],["aiembed",{"0":{"44":1},"1":{"45":1,"46":1,"47":1},"2":{"0":1,"10":2,"16":3,"22":3,"23":1,"27":1,"29":1,"30":1,"31":1,"45":2,"46":2,"47":1,"52":1,"64":2,"102":1,"104":2,"177":7,"178":26,"181":3}}],["aigenerate",{"0":{"33":1,"38":1,"80":1,"96":1,"105":1},"1":{"34":1,"35":1,"36":1,"39":1,"40":1,"41":1,"42":1},"2":{"0":1,"10":9,"12":4,"13":3,"14":2,"21":5,"22":2,"23":4,"24":1,"26":2,"27":2,"28":1,"29":2,"30":1,"31":1,"32":1,"34":1,"35":1,"37":1,"39":1,"40":2,"41":1,"42":2,"49":10,"51":5,"52":18,"64":6,"73":1,"74":1,"85":3,"86":6,"90":2,"91":3,"96":1,"97":1,"98":1,"104":11,"105":2,"106":11,"177":38,"178":54,"180":1,"181":16}}],["ai",{"0":{"10":1,"30":1,"31":1,"32":1,"37":1,"51":1,"95":1,"104":1},"1":{"33":1,"34":1,"35":1,"36":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1},"2":{"0":5,"1":1,"10":12,"11":1,"12":1,"14":1,"15":3,"16":1,"17":1,"21":4,"22":1,"23":2,"24":1,"27":2,"29":1,"30":2,"31":3,"32":2,"34":1,"36":1,"37":2,"49":16,"51":1,"52":20,"56":1,"57":1,"58":1,"64":6,"65":1,"66":2,"67":1,"69":2,"73":1,"81":1,"82":1,"83":1,"85":6,"87":2,"89":1,"90":3,"95":5,"96":3,"98":2,"100":1,"101":1,"102":3,"103":3,"104":13,"105":3,"106":8,"108":1,"115":2,"116":4,"118":1,"119":1,"122":1,"135":1,"138":4,"139":5,"140":2,"148":1,"150":1,"151":1,"155":1,"156":1,"157":1,"169":3,"177":51,"178":102,"181":14}}],["cc",{"2":{"181":1}}],["c54c8d466f2a8b06af05f0879aa72a18956d99a3",{"2":{"67":1,"178":6,"181":1}}],["cn",{"2":{"67":1,"178":1}}],["cfg",{"2":{"61":1,"62":1,"64":9,"181":19}}],["cb",{"2":{"52":15,"177":3,"178":23}}],["cpp",{"0":{"28":1},"2":{"25":1,"28":3,"70":1,"98":1,"99":1,"178":1}}],["c",{"2":{"19":1,"28":2,"67":1,"74":2,"76":2,"177":1,"178":1}}],["city",{"2":{"19":3}}],["ceo",{"2":{"152":1}}],["cents",{"2":{"77":2}}],["cent",{"2":{"75":1,"77":1}}],["celestial",{"2":{"67":2,"178":2}}],["celsius",{"2":{"19":2}}],["certainly",{"2":{"67":1,"178":1}}],["certain",{"2":{"0":1,"15":1,"86":1}}],["cumulative",{"2":{"181":2}}],["curr",{"2":{"181":3}}],["currently",{"2":{"23":1,"26":1,"52":1,"54":1,"61":1,"83":1,"177":2,"178":7}}],["currentweather",{"2":{"19":2}}],["current",{"2":{"19":2,"37":1,"52":1,"75":1,"86":1,"91":1,"94":1,"177":3,"178":6,"181":1}}],["curiosity",{"2":{"178":1}}],["customizing",{"2":{"177":1}}],["customized",{"2":{"150":1}}],["customize",{"2":{"52":1,"58":1,"60":4,"64":6,"84":1,"177":1,"181":8}}],["custom",{"0":{"25":1,"42":1},"1":{"26":1,"27":1,"28":1,"29":1,"30":1,"31":1},"2":{"52":1,"56":1,"60":5,"62":5,"64":13,"67":2,"86":2,"177":1,"178":6,"181":14}}],["customopenaischema",{"2":{"0":3,"23":2,"27":2,"28":1,"178":7}}],["cut",{"2":{"15":1}}],["crucial",{"2":{"178":1}}],["crunchy",{"2":{"31":2,"106":2}}],["craft",{"2":{"158":1,"169":1}}],["critiquing",{"2":{"138":1}}],["critique>",{"2":{"128":1}}],["critiques",{"2":{"128":1,"138":1,"139":1,"140":2}}],["critique",{"2":{"64":1,"128":12,"138":2,"139":2,"181":1}}],["critic",{"0":{"137":1},"1":{"138":1,"139":1,"140":1},"2":{"138":1,"139":4,"140":1}}],["criticism",{"2":{"128":1}}],["criterion",{"2":{"119":1}}],["criteria",{"2":{"119":2,"181":1}}],["credit",{"2":{"106":1,"178":3}}],["credits",{"2":{"70":1,"75":1,"93":2}}],["creativity",{"2":{"178":1}}],["creative",{"2":{"10":1,"104":1}}],["creation",{"2":{"118":1}}],["creating",{"0":{"72":1},"2":{"58":1,"64":1,"158":1,"181":4}}],["creature",{"2":{"18":2,"86":1,"178":5}}],["createqafromcontext",{"2":{"64":1,"181":1}}],["creates",{"2":{"52":1,"63":1,"87":1,"90":1,"177":5,"178":3,"181":1}}],["create",{"0":{"87":1},"2":{"2":2,"10":1,"16":1,"24":2,"49":1,"52":1,"54":1,"55":3,"60":1,"64":5,"72":2,"87":6,"89":1,"93":2,"98":1,"103":3,"104":1,"105":1,"106":1,"156":1,"164":1,"172":1,"177":3,"178":23,"179":4,"181":14}}],["cross",{"2":{"7":1}}],["ctx",{"2":{"6":6,"7":2,"181":4}}],["click",{"2":{"72":1,"93":1}}],["clipboard",{"2":{"52":2,"178":2}}],["clearly",{"2":{"60":1,"151":1,"152":1}}],["clear",{"2":{"52":1,"118":1,"119":3,"120":1,"128":1,"148":1,"150":1,"151":2,"152":1,"158":2,"159":1,"161":1,"162":1,"168":1,"177":1}}],["cleaning",{"2":{"157":1}}],["cleanup",{"2":{"24":1}}],["cleaner",{"2":{"24":1,"86":1}}],["cleaned",{"2":{"1":1}}],["clustering",{"2":{"16":1}}],["closely",{"2":{"67":2,"138":1,"176":1,"178":2}}],["close",{"2":{"67":2,"139":1,"158":1,"178":2}}],["closest",{"2":{"2":5,"61":1,"63":1,"64":4,"67":4,"178":9,"181":40}}],["cloud",{"2":{"12":1}}],["claudes",{"2":{"178":1}}],["claudeo",{"2":{"178":2}}],["claudeh",{"2":{"178":12}}],["claude",{"2":{"178":7}}],["clarification",{"2":{"139":1}}],["clarity",{"2":{"6":1,"119":1,"138":4,"139":1,"151":3,"166":1,"167":1}}],["classes=",{"2":{"181":3}}],["classes",{"2":{"181":5}}],["classifies",{"2":{"178":2}}],["classified",{"2":{"169":3,"178":1}}],["classification",{"0":{"17":1,"133":1},"1":{"18":1,"134":1,"135":1,"136":1},"2":{"18":1,"134":2,"135":1,"136":1,"178":3}}],["classify",{"2":{"10":1,"17":1,"104":1,"178":3}}],["class",{"2":{"13":1,"24":4,"102":1,"103":1,"105":2,"106":1,"108":1,"112":1,"115":1,"116":1,"118":1,"122":1,"123":1,"125":1,"134":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1,"178":2,"181":1}}],["child2",{"2":{"177":2}}],["child11",{"2":{"177":2}}],["child1",{"2":{"177":3}}],["children",{"2":{"64":2,"177":2,"181":9}}],["chief",{"2":{"138":4}}],["chiefeditortranscriptcritic",{"0":{"138":1}}],["chuckles",{"2":{"41":2}}],["chunkdata",{"2":{"178":3,"181":13}}],["chunkkeywordsindex",{"2":{"64":4,"178":2,"181":13}}],["chunked",{"2":{"64":1,"181":8}}],["chunkembeddingsindex",{"2":{"64":3,"178":1,"181":7}}],["chunkers",{"2":{"181":1}}],["chunker=filechunker",{"2":{"64":1,"181":1}}],["chunker",{"2":{"58":3,"60":2,"64":14,"181":29}}],["chunking",{"2":{"60":1,"63":1,"64":1,"181":2}}],["chunkindex",{"2":{"57":1,"181":3}}],["chunk",{"2":{"2":3,"8":1,"10":1,"58":2,"63":3,"64":6,"67":8,"88":1,"112":1,"118":4,"178":8,"181":25}}],["chunks",{"2":{"2":13,"3":1,"4":2,"8":1,"57":2,"58":2,"60":3,"61":3,"63":5,"64":35,"67":13,"88":1,"110":1,"178":14,"181":145}}],["cheaper",{"2":{"21":1,"51":1,"52":1,"177":1,"178":2}}],["cheap",{"2":{"18":1,"75":1,"178":1}}],["checkout",{"2":{"67":1,"178":1}}],["check",{"2":{"21":1,"22":1,"51":1,"52":7,"64":1,"71":1,"73":1,"75":1,"78":1,"79":1,"83":1,"86":3,"89":1,"93":1,"106":2,"140":1,"164":1,"166":1,"167":1,"172":1,"177":5,"178":9,"181":4}}],["checks",{"2":{"17":1,"51":1,"52":4,"77":1,"177":6,"178":2}}],["checking",{"2":{"17":1}}],["choice=",{"2":{"178":1}}],["choice",{"2":{"106":1,"136":3,"177":1,"178":12}}],["choices",{"2":{"10":3,"18":2,"86":2,"104":3,"105":1,"134":6,"136":6,"178":42}}],["chosen",{"2":{"21":1,"51":1,"52":1,"177":1}}],["choose",{"2":{"0":1,"152":1,"178":1,"181":2}}],["chapter",{"2":{"150":2}}],["chapters",{"2":{"150":4,"151":1}}],["chain",{"2":{"142":1,"164":1,"166":1,"172":1}}],["chars",{"2":{"67":1,"178":1}}],["character",{"2":{"67":3,"176":1,"178":3,"181":1}}],["characters",{"2":{"36":1,"67":4,"128":1,"177":4,"178":5,"181":13}}],["charles",{"2":{"55":2,"179":2}}],["charge",{"2":{"36":2,"75":2,"178":1}}],["chance",{"2":{"181":1}}],["chances",{"2":{"21":1,"51":1,"52":1,"177":1}}],["channel",{"2":{"57":1,"66":1}}],["changing",{"0":{"84":1},"2":{"52":1,"58":1,"60":1,"64":1,"178":1,"181":3}}],["changed",{"2":{"128":1}}],["changes",{"0":{"42":1},"2":{"37":1,"87":1,"116":1,"140":1,"177":1,"178":2,"181":4}}],["change",{"2":{"1":1,"21":1,"24":1,"42":1,"51":1,"52":1,"64":3,"106":1,"128":1,"177":3,"178":9,"180":1,"181":8}}],["challenging",{"2":{"0":1}}],["chat1",{"2":{"178":1}}],["chatmlschema",{"2":{"178":5}}],["chatgpt",{"2":{"11":1,"75":1,"181":3}}],["chatbots",{"2":{"178":1}}],["chatbot",{"2":{"1":1,"2":1}}],["chat",{"2":{"0":1,"29":3,"39":1,"42":1,"64":8,"84":2,"98":1,"105":2,"178":26,"181":25}}],["cababcab",{"2":{"178":1}}],["cache",{"2":{"73":1}}],["caused",{"2":{"128":1}}],["causes",{"2":{"41":1}}],["caught",{"2":{"52":1,"177":1,"178":1}}],["capable",{"2":{"136":1,"178":1}}],["capabilities",{"2":{"52":1,"69":1,"178":1}}],["captioning",{"2":{"178":2}}],["captain",{"2":{"87":2,"178":2}}],["capturing",{"2":{"52":3,"176":1,"178":3}}],["captures",{"2":{"91":1,"175":1,"178":1}}],["captured",{"2":{"52":3,"178":3}}],["capture",{"2":{"52":5,"91":2,"106":1,"177":1,"178":11}}],["capital",{"2":{"15":1,"64":2,"95":5,"96":2,"105":4,"181":5}}],["casual",{"2":{"158":1}}],["cased",{"2":{"156":1}}],["cases",{"2":{"52":1,"165":1,"173":1,"177":1,"178":3}}],["case",{"2":{"24":1,"58":1,"69":1,"86":2,"89":1,"105":1,"112":1,"158":1,"178":2,"181":2}}],["castle",{"2":{"18":1,"178":1}}],["cartoonish",{"2":{"175":2}}],["cartesian",{"2":{"7":1}}],["carries",{"2":{"166":1,"167":1}}],["carrying",{"2":{"67":1,"178":1}}],["carefully",{"2":{"112":1,"120":1,"140":1,"152":1}}],["care",{"2":{"100":1}}],["car",{"2":{"86":2,"106":1,"178":7}}],["carve",{"2":{"56":1}}],["carlo",{"2":{"21":1,"49":1,"52":1,"177":3}}],["ca",{"2":{"19":1}}],["cat",{"2":{"178":7}}],["categorize",{"2":{"152":1}}],["categories",{"0":{"18":1},"2":{"18":1,"86":2,"112":1,"113":1,"136":2,"178":2}}],["category",{"2":{"86":2,"112":1,"113":1,"136":4,"178":1,"181":1}}],["catch",{"2":{"0":1,"19":1,"21":2,"49":1,"51":2,"52":4,"106":1,"177":9}}],["camelcase",{"2":{"21":1,"178":1}}],["came",{"2":{"10":1,"181":1}}],["calculating",{"2":{"178":1}}],["calculation",{"2":{"178":1,"181":1}}],["calculates",{"2":{"181":3}}],["calculated",{"2":{"74":1,"169":1,"178":2}}],["calculate",{"2":{"7":1,"16":2,"178":10}}],["calltracer",{"2":{"178":2}}],["callback",{"2":{"178":13}}],["callbacks",{"2":{"178":1}}],["calling",{"2":{"24":1,"31":1,"37":1,"49":1,"106":2,"142":1,"143":1,"145":1,"177":1,"178":3,"181":1}}],["call",{"2":{"10":2,"11":1,"15":1,"21":2,"24":1,"29":1,"49":3,"51":2,"52":15,"63":1,"64":10,"73":1,"77":1,"85":1,"87":2,"98":1,"103":1,"104":2,"106":2,"142":1,"143":1,"145":1,"177":44,"178":54,"181":19}}],["called",{"2":{"7":3,"10":1,"11":1,"21":1,"24":1,"49":1,"52":1,"63":4,"87":1,"95":1,"98":1,"104":1,"177":4,"178":3,"181":3}}],["calls",{"0":{"51":1},"2":{"0":2,"10":1,"21":4,"46":1,"49":2,"51":1,"52":6,"55":1,"62":1,"64":10,"71":1,"86":1,"104":1,"106":2,"142":1,"143":1,"145":1,"177":13,"178":27,"179":1,"180":1,"181":22}}],["cannot",{"0":{"70":1,"73":2},"2":{"17":1,"64":1,"67":1,"69":1,"106":2,"135":1,"178":6,"181":4}}],["candidatechunks",{"2":{"58":4,"63":1,"64":1,"178":1,"181":13}}],["candidate",{"2":{"2":1,"181":17}}],["candidates",{"2":{"2":1,"58":4,"60":1,"63":3,"64":2,"181":40}}],["can",{"0":{"90":1},"2":{"2":1,"6":2,"7":7,"8":1,"10":4,"11":1,"12":4,"13":2,"14":2,"15":5,"16":2,"17":2,"18":2,"19":2,"20":4,"21":8,"22":3,"23":9,"24":11,"26":7,"27":1,"28":2,"29":3,"30":5,"31":4,"32":1,"33":1,"35":2,"39":1,"40":1,"42":2,"43":1,"46":2,"49":2,"51":7,"52":22,"55":2,"58":4,"60":1,"62":2,"63":2,"64":10,"66":1,"67":4,"69":1,"71":2,"72":1,"73":3,"74":2,"76":1,"77":2,"78":1,"79":1,"81":2,"83":2,"84":3,"85":3,"86":6,"87":8,"89":2,"90":2,"91":8,"93":1,"94":1,"95":1,"96":2,"97":1,"98":2,"99":2,"101":2,"103":3,"104":3,"105":1,"106":10,"110":1,"112":1,"118":1,"128":1,"129":1,"130":1,"150":1,"165":1,"173":1,"177":23,"178":122,"179":2,"181":27}}],["copies",{"2":{"181":1}}],["copy",{"2":{"2":1,"22":1,"45":2,"52":1,"178":3}}],["coding",{"2":{"177":1}}],["codeunits",{"2":{"178":3}}],["code>",{"2":{"128":1,"173":6}}],["codefixer",{"2":{"177":4}}],["codefixertiny",{"0":{"130":1}}],["codefixershort",{"0":{"129":1}}],["codefixerrci",{"0":{"128":1},"2":{"177":1}}],["codefailedtimeout",{"2":{"52":1,"177":1}}],["codefailedeval",{"2":{"52":1,"177":1}}],["codefailedparse",{"2":{"52":1,"177":1}}],["codellama",{"2":{"83":1}}],["codes",{"2":{"75":1}}],["codesuccess",{"2":{"52":1,"177":1}}],["codeempty",{"2":{"52":1,"177":1}}],["code",{"0":{"127":1},"1":{"128":1,"129":1,"130":1},"2":{"20":3,"23":1,"24":2,"26":1,"48":1,"49":1,"52":49,"56":1,"64":4,"66":2,"86":1,"102":1,"112":1,"128":13,"129":9,"130":3,"140":11,"162":1,"164":3,"165":12,"172":3,"173":10,"177":36,"178":94,"180":1,"181":14}}],["coalitional",{"2":{"169":1}}],["cot",{"2":{"164":1,"166":1,"172":1}}],["core",{"2":{"125":1,"177":1}}],["corpus",{"2":{"57":1}}],["corresponds",{"2":{"178":2}}],["correspondence",{"2":{"158":1}}],["correspond",{"2":{"58":1,"64":1,"177":1,"181":4}}],["corresponding",{"2":{"0":4,"12":1,"30":1,"31":1,"49":2,"60":2,"62":1,"63":2,"64":4,"70":1,"106":2,"140":1,"150":1,"151":1,"152":1,"169":1,"178":18,"181":9}}],["correctiverag",{"2":{"181":1}}],["correcting",{"2":{"140":1}}],["corrections",{"2":{"138":1}}],["correct",{"2":{"52":4,"86":1,"106":3,"128":1,"140":1,"164":1,"165":4,"166":1,"167":1,"172":1,"173":4,"177":4,"181":1}}],["correctly",{"2":{"0":1,"169":3,"178":5}}],["covering",{"2":{"165":1,"173":1}}],["cover",{"2":{"119":1}}],["coversation",{"2":{"52":1,"177":1}}],["coverage",{"0":{"0":1}}],["collects",{"2":{"177":1}}],["collect",{"2":{"177":2,"178":2}}],["collection",{"2":{"24":1,"64":1,"181":1}}],["collaboration",{"2":{"158":1}}],["colorful",{"2":{"175":1,"178":1}}],["colors",{"2":{"64":1,"181":1}}],["color",{"2":{"21":2,"51":2,"52":2,"58":3,"67":1,"177":2,"178":7,"181":8}}],["column",{"2":{"7":2,"178":2,"181":4}}],["columns",{"2":{"6":1,"7":4}}],["cosmic",{"2":{"67":1,"178":1}}],["cosinesimilarity",{"2":{"64":2,"178":1,"181":12}}],["cosine",{"2":{"16":2,"47":2,"178":4,"181":5}}],["cost2",{"2":{"178":2}}],["cost1",{"2":{"178":3}}],["costing",{"2":{"178":2}}],["costs",{"2":{"10":1,"64":1,"76":1,"104":1,"178":9,"181":1}}],["cost",{"0":{"77":1},"2":{"4":1,"11":1,"13":1,"20":2,"23":1,"24":1,"26":1,"30":1,"31":1,"58":1,"64":16,"69":1,"77":1,"85":1,"95":2,"96":1,"178":72,"181":50}}],["counds",{"2":{"177":1}}],["counts",{"2":{"181":1}}],["counted",{"2":{"177":1}}],["counter",{"2":{"64":3,"177":2,"181":7}}],["counterpart",{"2":{"49":1,"67":1,"178":1}}],["counterparts",{"2":{"10":1,"21":1,"49":1,"104":1}}],["counting",{"2":{"156":1}}],["country=",{"2":{"96":1}}],["country",{"2":{"95":1,"96":1,"181":4}}],["count",{"2":{"28":1,"37":1,"64":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"178":5,"181":1}}],["couldn",{"2":{"178":1}}],["could",{"2":{"7":1,"8":1,"21":2,"34":1,"51":2,"52":2,"64":2,"67":2,"74":1,"90":1,"106":1,"124":1,"148":1,"177":2,"178":6,"181":2}}],["coherence",{"2":{"178":1}}],["coherereranker",{"2":{"64":1,"178":1,"181":5}}],["cohere",{"2":{"2":1,"8":1,"64":2,"178":6,"181":19}}],["conv",{"2":{"90":1,"91":2,"106":2,"178":28}}],["conventions",{"2":{"178":1}}],["convention",{"2":{"178":1}}],["convenient",{"2":{"178":2}}],["convenience",{"2":{"2":1,"67":2,"178":5,"181":1}}],["conversion",{"2":{"106":1}}],["conversational",{"2":{"178":2}}],["conversation=myconversation",{"2":{"177":1}}],["conversationlabeler",{"0":{"156":1}}],["conversation2",{"2":{"89":1}}],["conversation1",{"2":{"89":1}}],["conversations",{"0":{"12":1,"85":1},"2":{"12":1,"35":1,"42":2,"52":1,"58":2,"64":2,"89":3,"91":2,"96":1,"177":1,"178":26,"181":9}}],["conversation",{"2":{"10":2,"12":6,"21":1,"30":1,"35":1,"41":1,"51":1,"52":25,"64":1,"85":11,"86":4,"87":1,"89":3,"91":2,"95":1,"101":2,"104":2,"106":3,"138":2,"139":5,"140":1,"156":6,"177":71,"178":196,"181":5}}],["converts",{"2":{"178":1}}],["converting",{"2":{"124":1,"126":1}}],["convert",{"2":{"105":2,"106":1,"178":5,"181":4}}],["convey",{"2":{"98":1,"101":1}}],["confusion",{"2":{"41":1}}],["confident",{"2":{"24":3,"103":1,"105":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1}}],["confidence",{"2":{"10":1,"67":1,"177":2,"178":1}}],["config=retryconfig",{"2":{"86":1,"106":1}}],["configuring",{"0":{"78":1}}],["configuration",{"2":{"64":1,"78":2,"177":1,"181":3}}],["configurable",{"2":{"58":1}}],["config",{"2":{"21":2,"49":1,"51":2,"52":9,"64":1,"81":1,"106":2,"177":14,"178":1,"181":3}}],["connection",{"2":{"35":1}}],["conducted",{"2":{"177":1}}],["cond",{"2":{"21":1,"51":1,"52":6,"177":15}}],["conditions",{"2":{"178":1}}],["condition",{"2":{"21":4,"51":5,"52":16,"86":3,"106":3,"177":31,"178":1}}],["concentrate",{"2":{"169":1}}],["concepts",{"0":{"98":1},"1":{"99":1,"100":1,"101":1,"102":1,"103":1,"104":1},"2":{"97":1,"98":1,"124":1}}],["concept",{"2":{"16":1,"124":1}}],["conclusion",{"2":{"162":1}}],["conclusions",{"2":{"150":1}}],["conclude",{"2":{"138":1,"140":1,"169":1}}],["concrete",{"2":{"106":1}}],["concatenates",{"2":{"178":1}}],["concatenate",{"2":{"36":1,"52":1,"178":1}}],["concise",{"2":{"24":3,"102":1,"103":1,"105":2,"108":1,"115":1,"116":1,"118":1,"125":1,"128":1,"150":3,"151":2,"154":1,"155":1,"156":1,"157":1,"158":2,"159":1,"161":1,"162":1,"163":1,"164":1,"168":1,"171":1,"172":1,"178":6}}],["concurrent",{"2":{"14":1,"74":2}}],["concurrently",{"2":{"14":1,"96":1}}],["contrast",{"2":{"178":1}}],["control",{"2":{"86":1,"95":1,"166":1,"167":1,"181":2}}],["controlling",{"2":{"52":1,"177":1}}],["controlled",{"2":{"21":1}}],["contribute",{"2":{"58":1}}],["contribution",{"2":{"49":1,"169":1}}],["continuous",{"2":{"71":1}}],["continued",{"2":{"178":1}}],["continues>",{"2":{"178":5}}],["continue",{"2":{"52":1,"95":1,"177":1,"178":6}}],["continue>",{"2":{"20":1,"178":2}}],["continuing",{"2":{"11":1,"77":1}}],["contained",{"2":{"181":2}}],["container",{"2":{"178":1}}],["containing",{"2":{"10":3,"64":4,"104":3,"177":1,"178":7,"181":13}}],["contain",{"2":{"7":1,"10":1,"104":1,"178":4,"181":2}}],["contains",{"2":{"6":1,"7":8,"24":1,"32":1,"37":1,"58":1,"60":1,"66":1,"102":1,"177":1,"178":3,"180":1,"181":2}}],["contemporary",{"2":{"15":1,"178":1}}],["contents",{"2":{"181":2}}],["content=",{"2":{"178":8}}],["content",{"2":{"6":1,"10":11,"16":3,"19":2,"20":2,"21":1,"22":2,"23":1,"27":1,"31":1,"45":1,"46":1,"47":2,"51":1,"52":5,"55":2,"64":1,"86":3,"90":2,"95":2,"104":11,"105":5,"106":3,"138":3,"150":1,"151":2,"177":10,"178":89,"179":2,"181":6}}],["context=true",{"2":{"181":1}}],["context=",{"2":{"181":4}}],["contexts",{"2":{"177":1}}],["contextual",{"2":{"64":1,"118":1,"181":2}}],["contextenumerator",{"2":{"64":3,"178":1,"181":11}}],["contexter",{"2":{"64":8,"181":14}}],["context",{"2":{"2":2,"5":1,"6":3,"8":3,"10":2,"11":2,"28":1,"52":1,"54":1,"58":6,"60":1,"61":1,"63":5,"64":32,"66":1,"67":9,"101":2,"108":7,"115":11,"116":1,"118":11,"119":8,"120":6,"124":1,"138":1,"148":1,"151":1,"152":1,"169":1,"177":4,"178":17,"181":103}}],["consecutive",{"2":{"181":2}}],["conservative",{"2":{"36":1,"178":1}}],["consumer",{"2":{"71":1}}],["consuming",{"2":{"3":1}}],["considered",{"2":{"64":1,"67":1,"178":1,"181":2}}],["considering",{"2":{"58":1,"119":1,"178":2,"181":1}}],["consider",{"2":{"24":1,"64":2,"124":1,"138":1,"169":1,"178":1,"181":2}}],["consistent",{"2":{"119":2,"120":1,"156":1,"181":2}}],["consistency",{"2":{"6":1,"36":1,"119":1,"138":1,"178":2,"181":1}}],["consisting",{"2":{"20":1,"178":2}}],["consists",{"2":{"7":1}}],["constant",{"2":{"178":9}}],["constituent",{"2":{"139":1}}],["construct",{"2":{"178":1}}],["constructive",{"2":{"138":1}}],["constructs",{"2":{"63":1}}],["constraints",{"2":{"67":1,"139":1,"178":1}}],["const",{"2":{"1":2,"24":1,"25":1,"32":1,"37":1,"48":1,"56":1,"81":1,"105":1,"106":1,"178":2}}],["combination",{"2":{"178":1,"181":2}}],["combining",{"2":{"56":1}}],["combines",{"2":{"64":2,"181":2}}],["combined",{"2":{"7":1,"181":1}}],["combine",{"2":{"5":1,"6":2,"7":5}}],["com",{"2":{"20":1,"54":2,"67":1,"75":1,"110":1,"178":12,"179":1,"181":5}}],["comes",{"2":{"89":1,"181":1}}],["come",{"2":{"13":1,"178":2}}],["commas",{"2":{"181":1}}],["commands",{"2":{"67":4,"94":1,"178":4}}],["command",{"2":{"24":1,"28":1,"67":1,"101":1,"178":1}}],["commit",{"2":{"78":1,"93":1}}],["comments",{"2":{"77":1,"128":1,"129":1,"178":1}}],["comment",{"2":{"77":1,"115":1,"116":1,"165":1,"173":1}}],["commercial",{"2":{"77":1}}],["communicates",{"2":{"138":1}}],["communications",{"2":{"158":2}}],["communication",{"2":{"24":3,"98":1,"100":1,"102":1,"103":1,"105":2,"155":1,"157":1,"158":3,"159":1,"161":1,"163":1,"164":1,"168":1,"171":1,"172":1,"177":1,"178":1}}],["community",{"2":{"24":1,"58":1}}],["commun",{"2":{"13":1,"24":1,"178":2}}],["commonly",{"2":{"178":1}}],["common",{"2":{"1":1,"7":2,"66":7,"67":17,"86":1,"89":1,"177":1,"178":20}}],["compelling",{"2":{"162":1,"169":1}}],["complicated",{"2":{"86":2,"106":1}}],["complicity",{"2":{"67":1,"178":1}}],["complement",{"2":{"180":1}}],["completions",{"2":{"178":5}}],["completions`",{"2":{"178":1}}],["completion",{"2":{"178":5}}],["completeling",{"2":{"178":1}}],["completely",{"2":{"64":1,"66":1,"181":2}}],["completeness",{"2":{"6":1,"119":1,"139":1}}],["complete",{"2":{"5":2,"6":1,"7":2,"119":1}}],["complex",{"2":{"12":1,"16":1,"17":1,"19":1,"21":1,"58":1,"96":1,"177":2,"178":3}}],["compact",{"2":{"165":1,"173":1,"181":1}}],["compass",{"2":{"87":2,"178":2}}],["company",{"2":{"67":2,"178":2}}],["companion",{"2":{"66":1}}],["comparing",{"2":{"67":1,"178":1}}],["comparison",{"2":{"58":2}}],["compared",{"2":{"181":1}}],["compare",{"2":{"66":1,"67":2,"177":1,"178":2}}],["compatibility",{"2":{"42":1,"178":6}}],["compatible",{"0":{"23":1,"27":1},"2":{"0":2,"23":2,"25":1,"27":1,"178":2}}],["computes",{"2":{"181":1}}],["compute",{"2":{"67":1,"178":1,"181":1}}],["computer",{"2":{"22":1,"23":1}}],["computational",{"2":{"58":1}}],["computing",{"2":{"58":8,"64":1,"181":6}}],["comprehensively",{"2":{"118":1,"165":1,"173":1}}],["comprehensive",{"2":{"58":2,"148":1,"150":1}}],["comprehension",{"0":{"20":1}}],["composite",{"2":{"181":2}}],["compose",{"2":{"91":1,"118":1}}],["composed",{"2":{"7":1,"178":2}}],["components",{"2":{"62":2,"64":1,"181":3}}],["component",{"2":{"52":1,"62":1,"64":1,"177":2,"181":2}}],["compiled",{"2":{"64":1,"73":3,"181":1}}],["compile",{"2":{"24":1,"28":1,"73":1}}]],"serializationVersion":2}'; -export { - _localSearchIndexroot as default -}; diff --git a/dev/assets/chunks/@localSearchIndexroot.DTIZRJv3.js b/dev/assets/chunks/@localSearchIndexroot.DTIZRJv3.js new file mode 100644 index 000000000..5f6907340 --- /dev/null +++ b/dev/assets/chunks/@localSearchIndexroot.DTIZRJv3.js @@ -0,0 +1,4 @@ +const _localSearchIndexroot = '{"documentCount":182,"nextId":182,"documentIds":{"0":"/PromptingTools.jl/dev/coverage_of_model_providers#Coverage-of-Model-Providers","1":"/PromptingTools.jl/dev/examples/building_RAG#Building-a-Simple-Retrieval-Augmented-Generation-(RAG)-System-with-RAGTools","2":"/PromptingTools.jl/dev/examples/building_RAG#RAG-in-Two-Lines","3":"/PromptingTools.jl/dev/examples/building_RAG#Evaluations","4":"/PromptingTools.jl/dev/examples/building_RAG#Generate-Q-and-A-pairs","5":"/PromptingTools.jl/dev/examples/building_RAG#Explore-one-Q-and-A-pair","6":"/PromptingTools.jl/dev/examples/building_RAG#Evaluate-this-Q-and-A-pair","7":"/PromptingTools.jl/dev/examples/building_RAG#Evaluate-the-Whole-Set","8":"/PromptingTools.jl/dev/examples/building_RAG#What-would-we-do-next?","9":"/PromptingTools.jl/dev/examples/readme_examples#Various-Examples","10":"/PromptingTools.jl/dev/examples/readme_examples#ai*-Functions-Overview","11":"/PromptingTools.jl/dev/examples/readme_examples#Seamless-Integration-Into-Your-Workflow","12":"/PromptingTools.jl/dev/examples/readme_examples#Advanced-Prompts-/-Conversations","13":"/PromptingTools.jl/dev/examples/readme_examples#Templated-Prompts","14":"/PromptingTools.jl/dev/examples/readme_examples#Asynchronous-Execution","15":"/PromptingTools.jl/dev/examples/readme_examples#Model-Aliases","16":"/PromptingTools.jl/dev/examples/readme_examples#Embeddings","17":"/PromptingTools.jl/dev/examples/readme_examples#Classification","18":"/PromptingTools.jl/dev/examples/readme_examples#Routing-to-Defined-Categories","19":"/PromptingTools.jl/dev/examples/readme_examples#Data-Extraction","20":"/PromptingTools.jl/dev/examples/readme_examples#OCR-and-Image-Comprehension","21":"/PromptingTools.jl/dev/examples/readme_examples#Experimental-Agent-Workflows-/-Output-Validation-with-airetry!","22":"/PromptingTools.jl/dev/examples/readme_examples#Using-Ollama-models","23":"/PromptingTools.jl/dev/examples/readme_examples#Using-MistralAI-API-and-other-OpenAI-compatible-APIs","24":"/PromptingTools.jl/dev/examples/working_with_aitemplates#Using-AITemplates","25":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Custom-APIs","26":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-MistralAI","27":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-other-OpenAI-compatible-APIs","28":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-llama.cpp-server","29":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Databricks-Foundation-Models","30":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Together.ai","31":"/PromptingTools.jl/dev/examples/working_with_custom_apis#Using-Fireworks.ai","32":"/PromptingTools.jl/dev/examples/working_with_ollama#Local-models-with-Ollama.ai","33":"/PromptingTools.jl/dev/examples/working_with_ollama#Text-Generation-with-aigenerate","34":"/PromptingTools.jl/dev/examples/working_with_ollama#Simple-message","35":"/PromptingTools.jl/dev/examples/working_with_ollama#Standard-string-interpolation","36":"/PromptingTools.jl/dev/examples/working_with_ollama#Advanced-Prompts","37":"/PromptingTools.jl/dev/examples/working_with_ollama#Schema-Changes-/-Custom-models","38":"/PromptingTools.jl/dev/examples/working_with_ollama#Providing-Images-with-aiscan","39":"/PromptingTools.jl/dev/examples/working_with_ollama#Embeddings-with-aiembed","40":"/PromptingTools.jl/dev/examples/working_with_ollama#Simple-embedding-for-one-document","41":"/PromptingTools.jl/dev/examples/working_with_ollama#Multiple-documents-embedding","42":"/PromptingTools.jl/dev/examples/working_with_ollama#Using-postprocessing-function","43":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Working-with-Google-AI-Studio","44":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Text-Generation-with-aigenerate","45":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Simple-message","46":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Advanced-Prompts","47":"/PromptingTools.jl/dev/examples/working_with_google_ai_studio#Gotchas","48":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Agent-Tools-Introduction","49":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Highlights","50":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Examples","51":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#Automatic-Fixing-of-AI-Calls","52":"/PromptingTools.jl/dev/extra_tools/agent_tools_intro#References","53":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#APITools-Introduction","54":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#Highlights","55":"/PromptingTools.jl/dev/extra_tools/api_tools_intro#References","56":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Tools-Introduction","57":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Highlights","58":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Examples","59":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Interface","60":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#System-Overview","61":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#RAG-Diagram","62":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Passing-Keyword-Arguments","63":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#Deepdive","64":"/PromptingTools.jl/dev/extra_tools/rag_tools_intro#References","65":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#Text-Utilities","66":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#Highlights","67":"/PromptingTools.jl/dev/extra_tools/text_utilities_intro#References","68":"/PromptingTools.jl/dev/frequently_asked_questions#Frequently-Asked-Questions","69":"/PromptingTools.jl/dev/frequently_asked_questions#Why-OpenAI","70":"/PromptingTools.jl/dev/frequently_asked_questions#What-if-I-cannot-access-OpenAI?","71":"/PromptingTools.jl/dev/frequently_asked_questions#Data-Privacy-and-OpenAI","72":"/PromptingTools.jl/dev/frequently_asked_questions#Creating-OpenAI-API-Key","73":"/PromptingTools.jl/dev/frequently_asked_questions#getting-an-error-argumenterror-api-key-cannot-be-empty-despite-having-set-openai-api-key-getting-an-error-argumenterror-apikey-cannot-be-empty-despite-having-set-openaiapi-key","74":"/PromptingTools.jl/dev/frequently_asked_questions#Getting-an-error-"Rate-limit-exceeded"-from-OpenAI?","75":"/PromptingTools.jl/dev/frequently_asked_questions#Getting-the-error-"429-Too-Many-Requests"?","76":"/PromptingTools.jl/dev/frequently_asked_questions#Setting-OpenAI-Spending-Limits","77":"/PromptingTools.jl/dev/frequently_asked_questions#How-much-does-it-cost?-Is-it-worth-paying-for?","78":"/PromptingTools.jl/dev/frequently_asked_questions#Configuring-the-Environment-Variable-for-API-Key","79":"/PromptingTools.jl/dev/frequently_asked_questions#Setting-the-API-Key-via-Preferences.jl","80":"/PromptingTools.jl/dev/frequently_asked_questions#Understanding-the-API-Keyword-Arguments-in-aigenerate-(api_kwargs)","81":"/PromptingTools.jl/dev/frequently_asked_questions#Instant-Access-from-Anywhere","82":"/PromptingTools.jl/dev/frequently_asked_questions#Open-Source-Alternatives","83":"/PromptingTools.jl/dev/frequently_asked_questions#Setup-Guide-for-Ollama","84":"/PromptingTools.jl/dev/frequently_asked_questions#Changing-the-Default-Model-or-Schema","85":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-have-Multi-turn-Conversations?","86":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-have-typed-responses?","87":"/PromptingTools.jl/dev/frequently_asked_questions#How-to-quickly-create-a-prompt-template?","88":"/PromptingTools.jl/dev/frequently_asked_questions#Do-we-have-a-RecursiveCharacterTextSplitter-like-Langchain?","89":"/PromptingTools.jl/dev/frequently_asked_questions#How-would-I-fine-tune-a-model?","90":"/PromptingTools.jl/dev/frequently_asked_questions#Can-I-see-how-my-prompt-is-rendered-/-what-is-sent-to-the-API?","91":"/PromptingTools.jl/dev/frequently_asked_questions#Automatic-Logging-/-Tracing","92":"/PromptingTools.jl/dev/getting_started#Getting-Started","93":"/PromptingTools.jl/dev/getting_started#Prerequisites","94":"/PromptingTools.jl/dev/getting_started#Installation","95":"/PromptingTools.jl/dev/getting_started#Quick-Start-with-@ai_str","96":"/PromptingTools.jl/dev/getting_started#Using-aigenerate-with-placeholders","97":"/PromptingTools.jl/dev/how_it_works#How-It-Works","98":"/PromptingTools.jl/dev/how_it_works#Key-Concepts","99":"/PromptingTools.jl/dev/how_it_works#API/Model-Providers","100":"/PromptingTools.jl/dev/how_it_works#Schemas","101":"/PromptingTools.jl/dev/how_it_works#Prompts","102":"/PromptingTools.jl/dev/how_it_works#Messages","103":"/PromptingTools.jl/dev/how_it_works#Prompt-Templates","104":"/PromptingTools.jl/dev/how_it_works#ai*-Functions-Overview","105":"/PromptingTools.jl/dev/how_it_works#Walkthrough-Example-for-aigenerate","106":"/PromptingTools.jl/dev/how_it_works#Walkthrough-Example-for-aiextract","107":"/PromptingTools.jl/dev/prompts/RAG#Basic-Rag-Templates","108":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGAnswerFromContext","109":"/PromptingTools.jl/dev/prompts/RAG#Ranking-Templates","110":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGRankGPT","111":"/PromptingTools.jl/dev/prompts/RAG#Metadata-Templates","112":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGExtractMetadataLong","113":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGExtractMetadataShort","114":"/PromptingTools.jl/dev/prompts/RAG#Refinement-Templates","115":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGAnswerRefiner","116":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGWebSearchRefiner","117":"/PromptingTools.jl/dev/prompts/RAG#Evaluation-Templates","118":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGCreateQAFromContext","119":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJudgeAnswerFromContext","120":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJudgeAnswerFromContextShort","121":"/PromptingTools.jl/dev/prompts/RAG#Query-Transformations-Templates","122":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGJuliaQueryHyDE","123":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryHyDE","124":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryKeywordExpander","125":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQueryOptimizer","126":"/PromptingTools.jl/dev/prompts/RAG#Template:-RAGQuerySimplifier","127":"/PromptingTools.jl/dev/prompts/agents#Code-Fixing-Templates","128":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerRCI","129":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerShort","130":"/PromptingTools.jl/dev/prompts/agents#Template:-CodeFixerTiny","131":"/PromptingTools.jl/dev/prompts/agents#Feedback-Templates","132":"/PromptingTools.jl/dev/prompts/agents#Template:-FeedbackFromEvaluator","133":"/PromptingTools.jl/dev/prompts/classification#Classification-Templates","134":"/PromptingTools.jl/dev/prompts/classification#Template:-InputClassifier","135":"/PromptingTools.jl/dev/prompts/classification#Template:-JudgeIsItTrue","136":"/PromptingTools.jl/dev/prompts/classification#Template:-QuestionRouter","137":"/PromptingTools.jl/dev/prompts/critic#Critic-Templates","138":"/PromptingTools.jl/dev/prompts/critic#Template:-ChiefEditorTranscriptCritic","139":"/PromptingTools.jl/dev/prompts/critic#Template:-GenericTranscriptCritic","140":"/PromptingTools.jl/dev/prompts/critic#Template:-JuliaExpertTranscriptCritic","141":"/PromptingTools.jl/dev/prompts/extraction#Xml-Formatted-Templates","142":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractDataCoTXML","143":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractDataXML","144":"/PromptingTools.jl/dev/prompts/extraction#Extraction-Templates","145":"/PromptingTools.jl/dev/prompts/extraction#Template:-ExtractData","146":"/PromptingTools.jl/dev/prompts/general#General-Templates","147":"/PromptingTools.jl/dev/prompts/general#Template:-BlankSystemUser","148":"/PromptingTools.jl/dev/prompts/general#Template:-PromptEngineerForTask","149":"/PromptingTools.jl/dev/prompts/persona-task#Persona-Task-Templates","150":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystChaptersInTranscript","151":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystDecisionsInTranscript","152":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AnalystThemesInResponses","153":"/PromptingTools.jl/dev/prompts/persona-task#theme-1-theme-description","154":"/PromptingTools.jl/dev/prompts/persona-task#theme-2-theme-description","155":"/PromptingTools.jl/dev/prompts/persona-task#Template:-AssistantAsk","156":"/PromptingTools.jl/dev/prompts/persona-task#Template:-ConversationLabeler","157":"/PromptingTools.jl/dev/prompts/persona-task#Template:-DetailOrientedTask","158":"/PromptingTools.jl/dev/prompts/persona-task#Template:-DrafterEmailBrief","159":"/PromptingTools.jl/dev/prompts/persona-task#Template:-GenericTopicExpertAsk","160":"/PromptingTools.jl/dev/prompts/persona-task#Template:-GenericWriter","161":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JavaScriptExpertAsk","162":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaBlogWriter","163":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertAsk","164":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertCoTTask","165":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertTestCode","166":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaRecapCoTTask","167":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaRecapTask","168":"/PromptingTools.jl/dev/prompts/persona-task#Template:-LinuxBashExpertAsk","169":"/PromptingTools.jl/dev/prompts/persona-task#Template:-StorytellerExplainSHAP","170":"/PromptingTools.jl/dev/prompts/persona-task#Xml-Formatted-Templates","171":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertAskXML","172":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertCoTTaskXML","173":"/PromptingTools.jl/dev/prompts/persona-task#Template:-JuliaExpertTestCodeXML","174":"/PromptingTools.jl/dev/prompts/visual#Visual-Templates","175":"/PromptingTools.jl/dev/prompts/visual#Template:-BlogTitleImageGenerator","176":"/PromptingTools.jl/dev/prompts/visual#Template:-OCRTask","177":"/PromptingTools.jl/dev/reference#Reference","178":"/PromptingTools.jl/dev/reference_agenttools#Reference-for-AgentTools","179":"/PromptingTools.jl/dev/reference_apitools#Reference-for-APITools","180":"/PromptingTools.jl/dev/reference_experimental#Reference-for-Experimental-Module","181":"/PromptingTools.jl/dev/reference_ragtools#Reference-for-RAGTools"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[4,1,158],"1":[10,1,78],"2":[4,10,197],"3":[1,1,40],"4":[5,1,74],"5":[6,1,68],"6":[6,1,180],"7":[4,1,367],"8":[6,1,111],"9":[2,1,1],"10":[3,2,306],"11":[5,2,128],"12":[3,2,152],"13":[2,2,161],"14":[2,2,40],"15":[2,2,97],"16":[1,2,65],"17":[1,2,97],"18":[4,3,81],"19":[2,2,158],"20":[4,2,103],"21":[8,2,274],"22":[3,2,108],"23":[8,2,195],"24":[2,1,322],"25":[2,1,27],"26":[2,2,145],"27":[5,2,87],"28":[4,2,118],"29":[4,2,85],"30":[3,2,109],"31":[3,2,162],"32":[5,1,147],"33":[4,5,1],"34":[2,8,51],"35":[3,8,35],"36":[2,8,122],"37":[4,8,134],"38":[4,5,40],"39":[3,5,1],"40":[5,7,42],"41":[3,7,53],"42":[3,7,61],"43":[5,1,83],"44":[4,5,14],"45":[2,8,55],"46":[2,8,90],"47":[1,8,59],"48":[3,1,37],"49":[1,3,185],"50":[1,3,1],"51":[5,4,227],"52":[1,3,919],"53":[2,1,23],"54":[1,2,41],"55":[1,2,87],"56":[3,1,99],"57":[1,3,91],"58":[1,3,375],"59":[2,3,1],"60":[2,4,195],"61":[2,4,79],"62":[3,5,105],"63":[1,4,165],"64":[1,3,779],"65":[2,1,28],"66":[1,2,126],"67":[1,2,513],"68":[3,1,1],"69":[2,3,54],"70":[7,5,36],"71":[4,3,65],"72":[4,3,54],"73":[19,3,120],"74":[10,3,151],"75":[9,3,87],"76":[4,3,57],"77":[10,3,99],"78":[7,3,97],"79":[7,3,41],"80":[10,3,8],"81":[4,3,47],"82":[3,3,31],"83":[4,3,108],"84":[6,3,83],"85":[7,3,120],"86":[6,3,256],"87":[8,3,193],"88":[8,3,70],"89":[8,3,87],"90":[14,3,155],"91":[3,3,141],"92":[2,1,1],"93":[1,2,112],"94":[1,2,37],"95":[5,2,112],"96":[4,2,101],"97":[3,1,49],"98":[2,3,91],"99":[3,5,56],"100":[1,5,77],"101":[1,5,61],"102":[1,5,77],"103":[2,5,139],"104":[3,5,308],"105":[4,3,203],"106":[4,3,451],"107":[3,1,1],"108":[2,4,61],"109":[2,1,1],"110":[2,3,90],"111":[2,1,1],"112":[2,3,160],"113":[2,3,66],"114":[2,1,1],"115":[2,3,111],"116":[2,3,119],"117":[2,1,1],"118":[2,3,140],"119":[2,3,116],"120":[2,3,63],"121":[3,1,1],"122":[2,4,85],"123":[2,4,83],"124":[2,4,122],"125":[2,4,85],"126":[2,4,65],"127":[3,1,1],"128":[2,4,236],"129":[2,4,126],"130":[2,4,60],"131":[2,1,1],"132":[2,3,23],"133":[2,1,1],"134":[2,3,73],"135":[2,3,41],"136":[2,3,101],"137":[2,1,1],"138":[2,3,188],"139":[2,3,136],"140":[2,3,178],"141":[3,1,1],"142":[2,4,101],"143":[2,4,83],"144":[2,1,1],"145":[2,3,74],"146":[2,1,1],"147":[2,3,35],"148":[2,3,71],"149":[3,1,1],"150":[2,4,198],"151":[2,4,207],"152":[2,4,124],"153":[4,1,5],"154":[4,1,36],"155":[2,4,47],"156":[2,4,108],"157":[2,4,46],"158":[2,4,160],"159":[2,4,65],"160":[2,4,65],"161":[2,4,63],"162":[2,4,118],"163":[2,4,51],"164":[2,4,85],"165":[2,4,171],"166":[2,4,168],"167":[2,4,174],"168":[2,4,66],"169":[2,4,175],"170":[3,4,1],"171":[2,6,60],"172":[2,6,96],"173":[2,6,181],"174":[2,1,1],"175":[2,3,76],"176":[2,3,51],"177":[1,1,2576],"178":[3,1,1182],"179":[3,1,101],"180":[4,1,68],"181":[3,1,1814]},"averageFieldLength":[3.1648351648351647,3.0549450549450547,135.3791208791209],"storedFields":{"0":{"title":"Coverage of Model Providers","titles":[]},"1":{"title":"Building a Simple Retrieval-Augmented Generation (RAG) System with RAGTools","titles":[]},"2":{"title":"RAG in Two Lines","titles":["Building a Simple Retrieval-Augmented Generation (RAG) System with RAGTools"]},"3":{"title":"Evaluations","titles":[]},"4":{"title":"Generate Q&A pairs","titles":["Evaluations"]},"5":{"title":"Explore one Q&A pair","titles":["Evaluations"]},"6":{"title":"Evaluate this Q&A pair","titles":["Evaluations"]},"7":{"title":"Evaluate the Whole Set","titles":["Evaluations"]},"8":{"title":"What would we do next?","titles":[]},"9":{"title":"Various Examples","titles":[]},"10":{"title":"ai* Functions Overview","titles":["Various Examples"]},"11":{"title":"Seamless Integration Into Your Workflow","titles":["Various Examples"]},"12":{"title":"Advanced Prompts / Conversations","titles":["Various Examples"]},"13":{"title":"Templated Prompts","titles":["Various Examples"]},"14":{"title":"Asynchronous Execution","titles":["Various Examples"]},"15":{"title":"Model Aliases","titles":["Various Examples"]},"16":{"title":"Embeddings","titles":["Various Examples"]},"17":{"title":"Classification","titles":["Various Examples"]},"18":{"title":"Routing to Defined Categories","titles":["Various Examples","Classification"]},"19":{"title":"Data Extraction","titles":["Various Examples"]},"20":{"title":"OCR and Image Comprehension","titles":["Various Examples"]},"21":{"title":"Experimental Agent Workflows / Output Validation with airetry!","titles":["Various Examples"]},"22":{"title":"Using Ollama models","titles":["Various Examples"]},"23":{"title":"Using MistralAI API and other OpenAI-compatible APIs","titles":["Various Examples"]},"24":{"title":"Using AITemplates","titles":[]},"25":{"title":"Custom APIs","titles":[]},"26":{"title":"Using MistralAI","titles":["Custom APIs"]},"27":{"title":"Using other OpenAI-compatible APIs","titles":["Custom APIs"]},"28":{"title":"Using llama.cpp server","titles":["Custom APIs"]},"29":{"title":"Using Databricks Foundation Models","titles":["Custom APIs"]},"30":{"title":"Using Together.ai","titles":["Custom APIs"]},"31":{"title":"Using Fireworks.ai","titles":["Custom APIs"]},"32":{"title":"Local models with Ollama.ai","titles":[]},"33":{"title":"Text Generation with aigenerate","titles":["Local models with Ollama.ai"]},"34":{"title":"Simple message","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"35":{"title":"Standard string interpolation","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"36":{"title":"Advanced Prompts","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"37":{"title":"Schema Changes / Custom models","titles":["Local models with Ollama.ai","Text Generation with aigenerate"]},"38":{"title":"Providing Images with aiscan","titles":["Local models with Ollama.ai"]},"39":{"title":"Embeddings with aiembed","titles":["Local models with Ollama.ai"]},"40":{"title":"Simple embedding for one document","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"41":{"title":"Multiple documents embedding","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"42":{"title":"Using postprocessing function","titles":["Local models with Ollama.ai","Embeddings with aiembed"]},"43":{"title":"Working with Google AI Studio","titles":[]},"44":{"title":"Text Generation with aigenerate","titles":["Working with Google AI Studio"]},"45":{"title":"Simple message","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"46":{"title":"Advanced Prompts","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"47":{"title":"Gotchas","titles":["Working with Google AI Studio","Text Generation with aigenerate"]},"48":{"title":"Agent Tools Introduction","titles":[]},"49":{"title":"Highlights","titles":["Agent Tools Introduction"]},"50":{"title":"Examples","titles":["Agent Tools Introduction"]},"51":{"title":"Automatic Fixing of AI Calls","titles":["Agent Tools Introduction","Examples"]},"52":{"title":"References","titles":["Agent Tools Introduction"]},"53":{"title":"APITools Introduction","titles":[]},"54":{"title":"Highlights","titles":["APITools Introduction"]},"55":{"title":"References","titles":["APITools Introduction"]},"56":{"title":"RAG Tools Introduction","titles":[]},"57":{"title":"Highlights","titles":["RAG Tools Introduction"]},"58":{"title":"Examples","titles":["RAG Tools Introduction"]},"59":{"title":"RAG Interface","titles":["RAG Tools Introduction"]},"60":{"title":"System Overview","titles":["RAG Tools Introduction","RAG Interface"]},"61":{"title":"RAG Diagram","titles":["RAG Tools Introduction","RAG Interface"]},"62":{"title":"Passing Keyword Arguments","titles":["RAG Tools Introduction","RAG Interface","RAG Diagram"]},"63":{"title":"Deepdive","titles":["RAG Tools Introduction","RAG Interface"]},"64":{"title":"References","titles":["RAG Tools Introduction"]},"65":{"title":"Text Utilities","titles":[]},"66":{"title":"Highlights","titles":["Text Utilities"]},"67":{"title":"References","titles":["Text Utilities"]},"68":{"title":"Frequently Asked Questions","titles":[]},"69":{"title":"Why OpenAI","titles":["Frequently Asked Questions"]},"70":{"title":"What if I cannot access OpenAI?","titles":["Frequently Asked Questions","Why OpenAI"]},"71":{"title":"Data Privacy and OpenAI","titles":["Frequently Asked Questions"]},"72":{"title":"Creating OpenAI API Key","titles":["Frequently Asked Questions"]},"73":{"title":"Getting an error "ArgumentError: api_key cannot be empty" despite having set OPENAI_API_KEY? {#Getting-an-error-"ArgumentError:-apikey-cannot-be-empty"-despite-having-set-OPENAIAPI_KEY?}","titles":["Frequently Asked Questions"]},"74":{"title":"Getting an error "Rate limit exceeded" from OpenAI?","titles":["Frequently Asked Questions"]},"75":{"title":"Getting the error "429 Too Many Requests"?","titles":["Frequently Asked Questions"]},"76":{"title":"Setting OpenAI Spending Limits","titles":["Frequently Asked Questions"]},"77":{"title":"How much does it cost? Is it worth paying for?","titles":["Frequently Asked Questions"]},"78":{"title":"Configuring the Environment Variable for API Key","titles":["Frequently Asked Questions"]},"79":{"title":"Setting the API Key via Preferences.jl","titles":["Frequently Asked Questions"]},"80":{"title":"Understanding the API Keyword Arguments in aigenerate (api_kwargs)","titles":["Frequently Asked Questions"]},"81":{"title":"Instant Access from Anywhere","titles":["Frequently Asked Questions"]},"82":{"title":"Open Source Alternatives","titles":["Frequently Asked Questions"]},"83":{"title":"Setup Guide for Ollama","titles":["Frequently Asked Questions"]},"84":{"title":"Changing the Default Model or Schema","titles":["Frequently Asked Questions"]},"85":{"title":"How to have Multi-turn Conversations?","titles":["Frequently Asked Questions"]},"86":{"title":"How to have typed responses?","titles":["Frequently Asked Questions"]},"87":{"title":"How to quickly create a prompt template?","titles":["Frequently Asked Questions"]},"88":{"title":"Do we have a RecursiveCharacterTextSplitter like Langchain?","titles":["Frequently Asked Questions"]},"89":{"title":"How would I fine-tune a model?","titles":["Frequently Asked Questions"]},"90":{"title":"Can I see how my prompt is rendered / what is sent to the API?","titles":["Frequently Asked Questions"]},"91":{"title":"Automatic Logging / Tracing","titles":["Frequently Asked Questions"]},"92":{"title":"Getting Started","titles":[]},"93":{"title":"Prerequisites","titles":["Getting Started"]},"94":{"title":"Installation","titles":["Getting Started"]},"95":{"title":"Quick Start with @ai_str","titles":["Getting Started"]},"96":{"title":"Using aigenerate with placeholders","titles":["Getting Started"]},"97":{"title":"How It Works","titles":[]},"98":{"title":"Key Concepts","titles":["How It Works"]},"99":{"title":"API/Model Providers","titles":["How It Works","Key Concepts"]},"100":{"title":"Schemas","titles":["How It Works","Key Concepts"]},"101":{"title":"Prompts","titles":["How It Works","Key Concepts"]},"102":{"title":"Messages","titles":["How It Works","Key Concepts"]},"103":{"title":"Prompt Templates","titles":["How It Works","Key Concepts"]},"104":{"title":"ai* Functions Overview","titles":["How It Works","Key Concepts"]},"105":{"title":"Walkthrough Example for aigenerate","titles":["How It Works"]},"106":{"title":"Walkthrough Example for aiextract","titles":["How It Works"]},"107":{"title":"Basic-Rag Templates","titles":[null]},"108":{"title":"Template: RAGAnswerFromContext","titles":[null,"Basic-Rag Templates"]},"109":{"title":"Ranking Templates","titles":[null]},"110":{"title":"Template: RAGRankGPT","titles":[null,"Ranking Templates"]},"111":{"title":"Metadata Templates","titles":[null]},"112":{"title":"Template: RAGExtractMetadataLong","titles":[null,"Metadata Templates"]},"113":{"title":"Template: RAGExtractMetadataShort","titles":[null,"Metadata Templates"]},"114":{"title":"Refinement Templates","titles":[null]},"115":{"title":"Template: RAGAnswerRefiner","titles":[null,"Refinement Templates"]},"116":{"title":"Template: RAGWebSearchRefiner","titles":[null,"Refinement Templates"]},"117":{"title":"Evaluation Templates","titles":[null]},"118":{"title":"Template: RAGCreateQAFromContext","titles":[null,"Evaluation Templates"]},"119":{"title":"Template: RAGJudgeAnswerFromContext","titles":[null,"Evaluation Templates"]},"120":{"title":"Template: RAGJudgeAnswerFromContextShort","titles":[null,"Evaluation Templates"]},"121":{"title":"Query-Transformations Templates","titles":[null]},"122":{"title":"Template: RAGJuliaQueryHyDE","titles":[null,"Query-Transformations Templates"]},"123":{"title":"Template: RAGQueryHyDE","titles":[null,"Query-Transformations Templates"]},"124":{"title":"Template: RAGQueryKeywordExpander","titles":[null,"Query-Transformations Templates"]},"125":{"title":"Template: RAGQueryOptimizer","titles":[null,"Query-Transformations Templates"]},"126":{"title":"Template: RAGQuerySimplifier","titles":[null,"Query-Transformations Templates"]},"127":{"title":"Code-Fixing Templates","titles":[null]},"128":{"title":"Template: CodeFixerRCI","titles":[null,"Code-Fixing Templates"]},"129":{"title":"Template: CodeFixerShort","titles":[null,"Code-Fixing Templates"]},"130":{"title":"Template: CodeFixerTiny","titles":[null,"Code-Fixing Templates"]},"131":{"title":"Feedback Templates","titles":[null]},"132":{"title":"Template: FeedbackFromEvaluator","titles":[null,"Feedback Templates"]},"133":{"title":"Classification Templates","titles":[null]},"134":{"title":"Template: InputClassifier","titles":[null,"Classification Templates"]},"135":{"title":"Template: JudgeIsItTrue","titles":[null,"Classification Templates"]},"136":{"title":"Template: QuestionRouter","titles":[null,"Classification Templates"]},"137":{"title":"Critic Templates","titles":[null]},"138":{"title":"Template: ChiefEditorTranscriptCritic","titles":[null,"Critic Templates"]},"139":{"title":"Template: GenericTranscriptCritic","titles":[null,"Critic Templates"]},"140":{"title":"Template: JuliaExpertTranscriptCritic","titles":[null,"Critic Templates"]},"141":{"title":"Xml-Formatted Templates","titles":[null]},"142":{"title":"Template: ExtractDataCoTXML","titles":[null,"Xml-Formatted Templates"]},"143":{"title":"Template: ExtractDataXML","titles":[null,"Xml-Formatted Templates"]},"144":{"title":"Extraction Templates","titles":[null]},"145":{"title":"Template: ExtractData","titles":[null,"Extraction Templates"]},"146":{"title":"General Templates","titles":[null]},"147":{"title":"Template: BlankSystemUser","titles":[null,"General Templates"]},"148":{"title":"Template: PromptEngineerForTask","titles":[null,"General Templates"]},"149":{"title":"Persona-Task Templates","titles":[null]},"150":{"title":"Template: AnalystChaptersInTranscript","titles":[null,"Persona-Task Templates"]},"151":{"title":"Template: AnalystDecisionsInTranscript","titles":[null,"Persona-Task Templates"]},"152":{"title":"Template: AnalystThemesInResponses","titles":[null,"Persona-Task Templates"]},"153":{"title":"Theme 1: [Theme Description]","titles":[]},"154":{"title":"Theme 2: [Theme Description]","titles":[]},"155":{"title":"Template: AssistantAsk","titles":["Theme 2: [Theme Description]",null]},"156":{"title":"Template: ConversationLabeler","titles":["Theme 2: [Theme Description]",null]},"157":{"title":"Template: DetailOrientedTask","titles":["Theme 2: [Theme Description]",null]},"158":{"title":"Template: DrafterEmailBrief","titles":["Theme 2: [Theme Description]",null]},"159":{"title":"Template: GenericTopicExpertAsk","titles":["Theme 2: [Theme Description]",null]},"160":{"title":"Template: GenericWriter","titles":["Theme 2: [Theme Description]",null]},"161":{"title":"Template: JavaScriptExpertAsk","titles":["Theme 2: [Theme Description]",null]},"162":{"title":"Template: JuliaBlogWriter","titles":["Theme 2: [Theme Description]",null]},"163":{"title":"Template: JuliaExpertAsk","titles":["Theme 2: [Theme Description]",null]},"164":{"title":"Template: JuliaExpertCoTTask","titles":["Theme 2: [Theme Description]",null]},"165":{"title":"Template: JuliaExpertTestCode","titles":["Theme 2: [Theme Description]",null]},"166":{"title":"Template: JuliaRecapCoTTask","titles":["Theme 2: [Theme Description]",null]},"167":{"title":"Template: JuliaRecapTask","titles":["Theme 2: [Theme Description]",null]},"168":{"title":"Template: LinuxBashExpertAsk","titles":["Theme 2: [Theme Description]",null]},"169":{"title":"Template: StorytellerExplainSHAP","titles":["Theme 2: [Theme Description]",null]},"170":{"title":"Xml-Formatted Templates","titles":["Theme 2: [Theme Description]"]},"171":{"title":"Template: JuliaExpertAskXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"172":{"title":"Template: JuliaExpertCoTTaskXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"173":{"title":"Template: JuliaExpertTestCodeXML","titles":["Theme 2: [Theme Description]","Xml-Formatted Templates"]},"174":{"title":"Visual Templates","titles":[null]},"175":{"title":"Template: BlogTitleImageGenerator","titles":[null,"Visual Templates"]},"176":{"title":"Template: OCRTask","titles":[null,"Visual Templates"]},"177":{"title":"Reference","titles":[]},"178":{"title":"Reference for AgentTools","titles":[]},"179":{"title":"Reference for APITools","titles":[]},"180":{"title":"Reference for Experimental Module","titles":[]},"181":{"title":"Reference for RAGTools","titles":[]}},"dirtCount":0,"index":[["θ",{"2":{"178":1}}],["β",{"2":{"178":1}}],["α",{"2":{"178":2}}],["→",{"2":{"106":1}}],["zoom",{"2":{"106":1}}],["zshrc",{"2":{"78":1}}],["zero",{"2":{"67":1,"165":1,"173":1,"177":4}}],["~300",{"2":{"177":3}}],["~0",{"2":{"77":1}}],["~",{"2":{"73":1,"78":1,"81":1}}],["~word",{"2":{"64":1,"181":1}}],["~words",{"2":{"64":1,"181":1}}],["^",{"2":{"67":2,"177":2}}],["÷",{"2":{"52":1,"64":1,"178":1,"181":1}}],["├─",{"2":{"52":9,"178":11}}],["👋",{"2":{"177":1}}],["😊",{"2":{"37":1}}],["😃",{"2":{"2":1,"52":1,"178":1}}],["93",{"2":{"178":1}}],["905",{"2":{"177":1}}],["909",{"2":{"156":1}}],["911",{"2":{"106":2}}],["911t",{"2":{"86":2}}],["94",{"2":{"52":1,"178":1}}],["9999999999999982",{"2":{"42":1}}],["99",{"2":{"28":1,"178":1}}],["9",{"2":{"22":1,"23":1,"26":1,"31":1,"177":2,"181":4}}],["9examples",{"2":{"7":1}}],["|im",{"2":{"177":4}}],["|",{"2":{"21":2,"51":2,"52":1,"178":1}}],["|>",{"2":{"13":3,"20":1,"24":1,"51":1,"52":4,"67":1,"86":2,"91":4,"104":1,"177":16,"178":5,"181":1}}],["y`",{"2":{"166":1,"167":1}}],["yarrr",{"2":{"87":2,"177":2}}],["yay",{"2":{"52":1,"178":1}}],["y",{"2":{"52":2,"81":1,"177":2,"178":4,"181":2}}],["years",{"2":{"156":1}}],["yet",{"2":{"43":1,"52":3,"105":1,"139":1,"158":1,"177":4,"178":2,"180":1,"181":2}}],["yes",{"2":{"36":1,"88":1,"90":1,"96":1}}],["yedi",{"2":{"36":2,"46":1,"177":5}}],["yellow",{"2":{"21":2,"51":3,"52":5,"178":5}}],["yoda",{"2":{"12":2,"36":1,"46":1,"177":5}}],["youtube",{"2":{"150":1,"151":1}}],["young",{"2":{"12":1,"36":1,"46":1,"177":1}}],["yours",{"2":{"177":10}}],["yourself",{"2":{"36":2}}],["your",{"0":{"11":1},"2":{"2":4,"4":1,"8":1,"10":1,"11":3,"12":1,"13":3,"15":1,"22":1,"23":3,"24":9,"26":1,"27":1,"28":1,"29":1,"32":2,"36":1,"37":1,"43":2,"46":2,"52":3,"56":1,"57":1,"60":1,"61":1,"64":5,"66":2,"71":5,"72":1,"73":2,"74":2,"75":4,"76":1,"77":1,"78":6,"79":2,"81":1,"83":2,"84":3,"85":2,"87":2,"89":1,"90":1,"91":2,"93":5,"94":1,"95":2,"98":1,"100":1,"102":1,"103":4,"104":1,"105":4,"106":3,"115":1,"116":1,"119":1,"122":1,"123":1,"125":2,"128":6,"129":1,"134":1,"136":1,"138":1,"139":2,"140":1,"142":1,"150":3,"151":4,"152":1,"155":2,"156":1,"157":1,"158":1,"159":5,"161":5,"163":2,"164":4,"165":3,"168":5,"169":2,"171":2,"172":4,"173":3,"177":42,"178":3,"181":13}}],["you",{"2":{"0":1,"1":2,"2":3,"4":2,"5":1,"7":6,"8":1,"10":9,"11":9,"12":11,"13":7,"14":2,"15":2,"16":2,"17":3,"18":1,"19":6,"20":4,"21":6,"22":5,"23":12,"24":32,"25":1,"26":9,"27":3,"28":5,"29":5,"30":9,"31":9,"32":4,"34":6,"35":2,"36":10,"37":9,"38":1,"41":3,"43":2,"44":1,"45":4,"46":3,"49":1,"51":4,"52":25,"54":1,"55":1,"56":1,"57":2,"58":7,"60":7,"62":4,"64":19,"66":2,"67":5,"69":1,"71":2,"72":1,"73":6,"74":11,"75":5,"76":3,"77":9,"78":5,"79":2,"81":1,"82":2,"83":7,"84":5,"85":4,"86":5,"87":21,"89":2,"90":3,"91":12,"93":5,"94":1,"95":3,"96":3,"98":4,"99":3,"100":1,"101":3,"102":1,"103":8,"104":8,"105":8,"106":19,"108":2,"110":1,"112":2,"113":2,"115":3,"116":3,"118":1,"124":2,"126":1,"128":4,"129":2,"130":2,"134":2,"135":1,"136":3,"138":1,"150":3,"151":1,"152":1,"154":1,"155":2,"157":1,"158":1,"159":1,"160":3,"161":1,"162":4,"163":2,"164":3,"165":3,"167":1,"168":1,"169":1,"171":2,"172":2,"173":3,"177":171,"178":24,"179":1,"181":36}}],["└─",{"2":{"52":9,"178":13}}],["└",{"2":{"11":1}}],["┌",{"2":{"11":1}}],["74",{"2":{"96":1}}],["754",{"2":{"136":1}}],["75",{"2":{"64":1,"181":1}}],["77",{"2":{"52":1,"178":1}}],["786",{"2":{"129":1}}],["78",{"2":{"31":1}}],["787",{"2":{"16":1,"177":1}}],["70b",{"2":{"29":3}}],["7",{"2":{"11":1,"52":7,"58":1,"158":1,"177":2,"178":8,"181":4}}],["7examples",{"2":{"7":1}}],["`top",{"2":{"181":1}}],["`test",{"2":{"64":1,"181":1}}],["`textchunker",{"2":{"64":1,"181":1}}],["`build",{"2":{"181":1}}],["`begin`",{"2":{"166":1,"167":1}}],["`1",{"2":{"177":1}}],["`1+1`",{"2":{"177":5}}],["`2`",{"2":{"177":5}}],["`error`",{"2":{"177":2}}],["`end`",{"2":{"166":1,"167":1}}],["`example`",{"2":{"24":2}}],["`$`",{"2":{"166":1,"167":1}}],["`$a+$a`",{"2":{"35":1,"177":6}}],["`while`",{"2":{"166":1,"167":1}}],["`function`",{"2":{"166":1,"167":1}}],["`function",{"2":{"166":1,"167":1}}],["`for`",{"2":{"166":1,"167":1}}],["`false`",{"2":{"106":1}}],["`fahrenheit`",{"2":{"19":1}}],["`image",{"2":{"177":2}}],["`isx",{"2":{"166":1,"167":1}}],["`if",{"2":{"166":1,"167":1}}],["`index`",{"2":{"64":2,"181":3}}],["`innerjoin`",{"2":{"7":1}}],["`x",{"2":{"166":2,"167":2}}],["`other",{"2":{"151":1}}],["`out",{"2":{"52":1,"178":1}}],["`dict",{"2":{"166":1,"167":1}}],["`distributed`",{"2":{"58":1}}],["`data`",{"2":{"145":1}}],["`run",{"2":{"178":1}}],["`register",{"2":{"177":1}}],["`return",{"2":{"104":1}}],["`ragresult`",{"2":{"64":1,"181":1}}],["`you",{"2":{"102":1}}],["`score",{"2":{"181":1}}],["`schema",{"2":{"106":1}}],["`schema`",{"2":{"27":1,"28":1}}],["`success",{"2":{"52":1,"178":1}}],["`model",{"2":{"177":1}}],["`model`",{"2":{"28":1}}],["`maybeextract",{"2":{"177":1}}],["`map`",{"2":{"74":1}}],["`message`",{"2":{"177":2}}],["`msg",{"2":{"32":1}}],["`processor`",{"2":{"181":1}}],["`pt",{"2":{"27":1,"28":1}}],["`pkg`",{"2":{"24":1}}],["`usermessage`",{"2":{"52":1,"178":1}}],["`using`",{"2":{"24":1}}],["`unit`",{"2":{"19":1}}],["`local",{"2":{"177":1}}],["`location`",{"2":{"19":1}}],["`last",{"2":{"21":2,"51":2,"52":2,"178":2}}],["`number`",{"2":{"166":1,"167":1}}],["`nothing`",{"2":{"106":1}}],["`n",{"2":{"21":1,"51":1,"52":1,"178":1}}],["`condition`",{"2":{"106":1}}],["`convert`",{"2":{"106":1}}],["`conversation`",{"2":{"52":1,"104":1,"178":1}}],["`config",{"2":{"52":1,"178":1}}],["`config`",{"2":{"21":1,"51":1,"52":1,"178":1}}],["`celsius`",{"2":{"19":1}}],["`abstractstring`",{"2":{"166":1,"167":1}}],["`a",{"2":{"166":1,"167":1}}],["`answerer",{"2":{"62":1}}],["`answerer`",{"2":{"62":1}}],["`answer",{"2":{"62":1}}],["`add`",{"2":{"24":1,"165":1,"173":1}}],["`aigenerate",{"2":{"52":1,"178":1}}],["`aicall`",{"2":{"21":1,"51":1,"52":2,"178":2}}],["`airag`",{"2":{"6":1,"64":1,"181":1}}],["`api",{"2":{"21":1,"32":1,"51":1,"52":1,"178":1}}],["`ask`",{"2":{"13":1,"24":2,"177":2}}],["``",{"2":{"13":1,"177":1}}],["```plaintext",{"2":{"129":1,"130":1}}],["````",{"2":{"52":1,"178":1}}],["```julia",{"2":{"24":2,"67":1,"128":2,"129":1,"165":2,"173":2,"177":3,"178":1,"181":1}}],["```sql",{"2":{"20":1,"177":2}}],["```",{"2":{"11":2,"24":2,"52":1,"119":1,"120":1,"128":1,"129":1,"130":1,"150":2,"151":2,"165":2,"173":2,"177":1,"178":2,"181":1}}],["`",{"2":{"11":2,"21":1,"24":2,"27":1,"28":1,"32":2,"51":1,"52":2,"58":1,"62":1,"64":1,"106":2,"128":2,"162":2,"165":6,"166":8,"167":8,"173":6,"177":4,"178":3,"181":1}}],["│",{"2":{"7":12,"11":5,"52":14,"178":16}}],["22",{"2":{"178":1}}],["2277",{"2":{"138":1}}],["26078",{"2":{"178":3}}],["267",{"2":{"126":1}}],["29826",{"2":{"178":3}}],["29",{"2":{"177":2}}],["2900",{"2":{"67":2,"177":2}}],["21",{"2":{"177":1}}],["2190",{"2":{"151":1}}],["210",{"2":{"130":1}}],["278",{"2":{"113":1}}],["2733",{"2":{"52":4,"178":4}}],["256",{"2":{"181":2}}],["2500",{"2":{"177":7}}],["25px",{"2":{"67":1,"177":6,"181":1}}],["25",{"2":{"64":3,"181":4}}],["248",{"2":{"171":1}}],["2487",{"2":{"128":1}}],["24",{"2":{"47":1}}],["24622",{"2":{"20":1,"177":2}}],["239",{"2":{"176":1}}],["23",{"2":{"52":1,"177":1,"178":1}}],["23rd",{"2":{"31":1}}],["237",{"2":{"13":1,"24":1,"163":1,"177":2}}],["2s",{"2":{"21":1,"51":1,"52":2,"178":2}}],["2",{"0":{"154":1},"1":{"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1},"2":{"7":3,"11":1,"13":1,"19":1,"20":3,"21":5,"24":3,"29":3,"41":1,"42":2,"51":5,"52":19,"55":1,"58":1,"64":2,"67":7,"73":1,"74":1,"77":1,"86":1,"87":1,"88":2,"106":2,"110":1,"112":2,"113":1,"118":1,"119":1,"128":3,"129":1,"134":1,"136":1,"152":1,"156":1,"158":2,"162":1,"164":1,"165":2,"166":3,"167":3,"173":2,"177":34,"178":33,"179":1,"181":14}}],["2064",{"2":{"140":1}}],["2000",{"2":{"165":1,"173":1}}],["200",{"2":{"77":1}}],["20506",{"2":{"52":1,"178":1}}],["20737",{"2":{"52":4,"178":4}}],["2049",{"2":{"150":1}}],["20493",{"2":{"52":2,"178":2}}],["2048",{"2":{"28":1,"177":2}}],["2021",{"2":{"112":2}}],["2020",{"2":{"96":1}}],["2024",{"2":{"31":1,"177":1}}],["2023",{"2":{"15":1,"58":1}}],["20",{"2":{"7":6,"18":1,"67":2,"122":1,"123":1,"177":8,"181":3}}],["2examples",{"2":{"7":1}}],["$f",{"2":{"106":1}}],["$25",{"2":{"106":1}}],["$10",{"2":{"76":1}}],["$50",{"2":{"113":1}}],["$5",{"2":{"76":1}}],["$user",{"2":{"52":1,"178":1}}],["$upper",{"2":{"52":1,"178":1}}],["$lower",{"2":{"52":1,"178":1}}],["$",{"2":{"7":3,"52":9,"67":7,"86":1,"95":1,"106":1,"177":7,"178":9}}],["$0",{"2":{"4":1,"11":1,"20":2,"23":1,"26":1,"30":1,"31":1,"58":1,"85":1,"95":2,"96":1,"177":5}}],[">0",{"2":{"181":1}}],[">tryparse",{"2":{"86":1}}],[">x",{"2":{"7":2,"181":1}}],[">",{"2":{"7":1,"13":1,"18":3,"21":1,"31":1,"41":1,"51":1,"52":8,"58":1,"62":1,"64":1,"67":5,"95":1,"106":2,"110":2,"128":2,"150":2,"151":3,"166":1,"167":1,"177":28,"178":9,"181":8}}],["x123",{"2":{"177":2}}],["x^2`",{"2":{"166":1,"167":1}}],["xml",{"0":{"141":1,"170":1},"1":{"142":1,"143":1,"171":1,"172":1,"173":1},"2":{"142":1,"143":1,"171":1,"172":1,"173":1,"177":1}}],["x3c",{"2":{"20":1,"27":1,"52":6,"58":1,"60":1,"64":5,"67":13,"86":5,"128":4,"142":4,"143":4,"150":3,"151":3,"158":2,"165":1,"171":2,"172":12,"173":17,"177":146,"178":11,"181":116}}],["xyz",{"2":{"11":3,"52":1,"77":1,"104":2,"178":3,"181":1}}],["x",{"2":{"7":4,"21":2,"41":2,"51":2,"52":6,"74":4,"81":1,"86":2,"166":2,"167":2,"177":11,"178":17,"181":11}}],["x26",{"2":{"4":1,"67":2,"118":1,"177":12,"181":2}}],["0s",{"2":{"178":1}}],["08",{"2":{"177":2}}],["02",{"2":{"177":1}}],["024",{"2":{"7":1}}],["07",{"2":{"177":1}}],["05",{"2":{"177":2,"178":1}}],["0011",{"2":{"177":1}}],["0015",{"2":{"177":3}}],["002",{"2":{"177":3}}],["000",{"2":{"64":1,"67":2,"74":3,"177":2,"181":10}}],["0001",{"2":{"30":1,"31":1,"77":2,"95":1,"96":1}}],["0002",{"2":{"11":1}}],["0045",{"2":{"20":1,"177":1}}],["0117",{"2":{"20":1,"177":2}}],["014",{"2":{"7":7}}],["015",{"2":{"7":2}}],["0dict",{"2":{"7":3}}],["0",{"2":{"6":2,"10":2,"16":2,"19":1,"22":1,"23":2,"26":2,"31":1,"37":1,"42":2,"43":1,"44":1,"52":8,"58":6,"64":24,"66":2,"67":4,"77":1,"83":2,"85":2,"87":2,"95":2,"104":1,"108":1,"113":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"129":1,"130":1,"132":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"156":1,"159":1,"160":1,"161":1,"162":1,"164":1,"165":3,"167":1,"168":1,"169":1,"172":1,"173":4,"175":1,"177":66,"178":29,"181":84}}],["39931",{"2":{"178":2}}],["390",{"2":{"122":1}}],["383",{"2":{"160":1}}],["31",{"2":{"95":1}}],["344",{"2":{"161":1}}],["34900",{"2":{"67":2,"177":2}}],["34",{"2":{"58":1,"177":1}}],["34315",{"2":{"52":1,"178":1}}],["374",{"2":{"168":1}}],["375",{"2":{"108":1}}],["37581",{"2":{"52":1,"178":1}}],["37",{"2":{"52":1,"178":1}}],["354",{"2":{"123":1}}],["35",{"2":{"52":4,"67":2,"177":2,"178":4}}],["35603",{"2":{"52":1,"178":1}}],["32000",{"2":{"178":3}}],["32991",{"2":{"52":5,"178":5}}],["32",{"2":{"52":2,"95":1,"178":2}}],["337",{"2":{"159":1}}],["33",{"2":{"52":5,"178":5}}],["33333dict",{"2":{"7":1}}],["3x",{"2":{"52":1,"178":1}}],["366",{"2":{"134":1}}],["36",{"2":{"52":1,"178":1}}],["362",{"2":{"20":1,"177":1}}],["3000",{"2":{"165":1,"173":1}}],["300",{"2":{"162":1}}],["30088",{"2":{"52":2,"178":2}}],["30",{"2":{"19":2,"77":1,"122":1,"123":1,"177":14,"181":2}}],["3examples",{"2":{"7":1}}],["3",{"2":{"6":2,"7":12,"10":1,"11":1,"24":1,"32":1,"52":3,"58":4,"67":3,"74":1,"88":1,"91":1,"95":1,"96":3,"104":1,"106":2,"112":3,"113":2,"128":4,"129":1,"152":3,"156":1,"158":1,"165":2,"166":1,"167":1,"173":2,"177":25,"178":8,"181":5}}],["+",{"2":{"6":1,"52":2,"58":2,"60":1,"63":1,"64":1,"106":2,"165":1,"173":1,"177":5,"178":2,"181":1}}],["5th",{"2":{"181":1}}],["595",{"2":{"172":1}}],["570",{"2":{"142":1}}],["57694",{"2":{"52":1,"178":1}}],["519",{"2":{"143":1,"164":1}}],["514",{"2":{"125":1}}],["512",{"2":{"52":5,"178":5,"181":1}}],["5=best",{"2":{"120":1}}],["50m",{"2":{"177":2}}],["504",{"2":{"175":1}}],["500",{"2":{"145":1,"181":2}}],["50086",{"2":{"52":4,"178":4}}],["50",{"2":{"52":4,"85":1,"178":4}}],["52910",{"2":{"52":4,"178":4}}],["55394",{"2":{"52":1,"178":1}}],["5examples",{"2":{"7":1}}],["5",{"2":{"6":5,"11":2,"20":1,"22":3,"28":1,"30":2,"31":1,"32":3,"35":1,"42":1,"52":11,"55":1,"58":3,"62":2,"64":11,"74":1,"75":1,"83":2,"85":1,"91":1,"93":1,"95":3,"98":1,"102":1,"105":1,"112":2,"113":1,"119":14,"120":2,"124":1,"152":2,"156":2,"158":2,"165":1,"169":1,"173":1,"177":41,"178":11,"179":1,"181":25}}],["84",{"2":{"178":1}}],["837",{"2":{"177":1}}],["886",{"2":{"162":1}}],["82",{"2":{"52":1,"178":1}}],["87",{"2":{"30":1}}],["8755f69180b7ac7ee76a69ae68ec36872a116ad4",{"2":{"20":1,"177":2}}],["8x7b",{"2":{"28":1,"32":1,"106":1}}],["80k",{"2":{"181":3}}],["80kg",{"2":{"19":1,"177":6}}],["8080",{"2":{"28":1,"62":3,"64":3,"177":2,"181":3}}],["8081",{"2":{"23":1,"177":2}}],["80",{"2":{"19":1,"177":4,"181":6}}],["8examples",{"2":{"7":1}}],["8",{"2":{"6":1,"52":1,"178":1,"181":4}}],["64",{"2":{"181":2}}],["636",{"2":{"110":1}}],["60",{"2":{"52":3,"74":1,"77":1,"177":6,"181":2}}],["67",{"2":{"52":10,"178":11}}],["67dict",{"2":{"7":3}}],["69",{"2":{"22":1,"177":2}}],["66667dict",{"2":{"7":3}}],["6examples",{"2":{"7":1}}],["6",{"2":{"6":1,"7":1,"37":1,"52":6,"67":1,"74":1,"177":2,"178":7,"181":5}}],["48",{"2":{"178":1}}],["48343",{"2":{"52":1,"178":1}}],["420",{"2":{"120":1,"175":1}}],["429",{"0":{"75":1}}],["4k",{"2":{"67":1,"177":1}}],["46",{"2":{"87":1,"177":1}}],["46632",{"2":{"52":1,"178":1}}],["46839",{"2":{"52":2,"178":2}}],["43094",{"2":{"52":1,"178":1}}],["43",{"2":{"52":1,"178":1}}],["44816",{"2":{"52":2,"178":2}}],["41",{"2":{"52":1,"132":1,"178":1}}],["4examples",{"2":{"7":1}}],["402",{"2":{"148":1}}],["40796033843072876",{"2":{"42":1}}],["4096×2",{"2":{"22":1,"41":1,"177":1}}],["4096",{"2":{"22":1,"40":2,"41":1,"42":1,"177":2}}],["40",{"2":{"7":8,"58":1,"177":2}}],["4",{"2":{"6":3,"7":2,"15":5,"23":1,"24":1,"26":1,"52":10,"58":3,"67":1,"91":3,"95":1,"96":1,"112":1,"152":1,"156":1,"177":10,"178":10,"181":14}}],["1`",{"2":{"177":1}}],["1+1",{"2":{"177":1}}],["16",{"2":{"177":2}}],["1643",{"2":{"173":1}}],["16k",{"2":{"67":1,"177":1,"178":1}}],["17",{"2":{"177":2}}],["175b",{"2":{"177":3}}],["1712",{"2":{"169":1}}],["172",{"2":{"157":1}}],["1>",{"2":{"150":1}}],["184",{"2":{"155":1}}],["18",{"2":{"147":1,"177":1,"178":1}}],["180",{"2":{"19":1,"177":4}}],["180cm",{"2":{"19":1,"177":6}}],["150",{"2":{"158":1}}],["1501",{"2":{"158":1}}],["1506",{"2":{"152":1}}],["1515",{"2":{"139":1}}],["151",{"2":{"135":1}}],["1536×2",{"2":{"177":1}}],["1536",{"2":{"16":1,"177":1}}],["1=worst",{"2":{"120":1}}],["13184",{"2":{"178":2}}],["1396",{"2":{"118":1}}],["1392",{"2":{"116":1}}],["1384",{"2":{"112":1}}],["1m",{"2":{"96":1}}],["1em",{"2":{"67":1,"177":6,"181":1}}],["1examples",{"2":{"7":1}}],["1px",{"2":{"67":1,"177":6,"181":1}}],["1475",{"2":{"165":1}}],["1415",{"2":{"119":1}}],["14966",{"2":{"52":4,"178":4}}],["14",{"2":{"52":1,"178":1}}],["128",{"2":{"181":2}}],["124",{"2":{"177":1}}],["127",{"2":{"83":1,"177":5}}],["12940",{"2":{"52":1,"178":1}}],["12",{"2":{"52":2,"74":1,"177":2,"178":2,"181":1}}],["123",{"2":{"24":1,"84":1}}],["120",{"2":{"10":2,"74":1,"104":2,"177":10}}],["11",{"2":{"181":1}}],["111",{"2":{"177":2}}],["11434",{"2":{"83":1,"177":3}}],["1143",{"2":{"67":1,"166":1,"167":1,"177":1}}],["114",{"2":{"23":1,"26":1}}],["1141",{"2":{"20":1,"177":2}}],["1106",{"2":{"15":2}}],["1928",{"2":{"118":3}}],["190",{"2":{"19":2,"177":6}}],["19",{"2":{"19":2,"58":1,"177":6}}],["10897",{"2":{"177":5}}],["10`",{"2":{"166":1,"167":1}}],["1073",{"2":{"124":1}}],["1074",{"2":{"115":1}}],["10examples",{"2":{"7":1}}],["10×8",{"2":{"7":1}}],["100k",{"2":{"181":1}}],["1000",{"2":{"77":1,"86":1,"165":1,"173":1,"175":1,"177":4,"181":3}}],["100x",{"2":{"74":1}}],["100",{"2":{"7":3,"52":4,"62":2,"64":5,"158":1,"177":11,"178":3,"181":15}}],["10",{"2":{"6":1,"7":4,"11":1,"52":8,"58":1,"64":1,"67":1,"73":2,"74":2,"106":1,"124":1,"177":15,"178":6,"181":11}}],["1024x1024",{"2":{"177":2}}],["102",{"2":{"4":1,"11":1}}],["1",{"0":{"153":1},"2":{"5":1,"6":1,"7":13,"10":2,"13":3,"16":2,"18":1,"21":6,"24":4,"28":1,"30":1,"32":2,"35":1,"40":1,"42":1,"43":1,"44":1,"51":6,"52":48,"58":6,"64":9,"66":2,"67":9,"73":1,"77":1,"83":1,"85":1,"87":4,"88":2,"91":1,"95":1,"96":2,"104":3,"105":1,"106":3,"108":1,"110":2,"112":4,"113":1,"115":2,"116":2,"118":5,"119":17,"120":3,"122":1,"123":1,"124":1,"125":1,"126":1,"128":3,"129":3,"130":1,"132":1,"134":3,"135":2,"136":2,"138":1,"139":1,"140":1,"142":1,"143":1,"145":2,"147":2,"148":1,"150":5,"151":4,"152":3,"155":1,"156":2,"157":2,"158":2,"159":1,"160":1,"161":1,"162":1,"163":1,"165":3,"166":6,"167":5,"168":1,"169":1,"171":1,"172":1,"173":2,"175":1,"176":1,"177":67,"178":63,"181":47}}],["q4",{"2":{"28":1,"32":1}}],["qaevalresult",{"2":{"6":1,"181":5}}],["qaevalitems",{"2":{"181":1}}],["qaevalitem",{"2":{"4":1,"5":1,"64":5,"181":13}}],["qa",{"2":{"4":1,"6":2,"7":5,"57":1,"64":8,"177":3,"181":38}}],["q",{"0":{"4":1,"5":1,"6":1},"2":{"3":1,"4":1,"6":1,"64":4,"181":4}}],["quantization",{"2":{"156":1,"181":6}}],["quantum",{"2":{"58":1}}],["quarter",{"2":{"64":1,"181":1}}],["quality=",{"2":{"177":1}}],["quality`",{"2":{"177":1}}],["quality",{"2":{"3":2,"5":1,"7":1,"8":1,"13":2,"17":1,"24":3,"88":1,"103":1,"105":2,"119":2,"120":2,"150":1,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"177":6,"181":2}}],["queried",{"2":{"177":2}}],["queries",{"2":{"134":1}}],["query",{"0":{"121":1},"1":{"122":1,"123":1,"124":1,"125":1,"126":1},"2":{"55":3,"63":3,"67":7,"110":4,"115":7,"116":8,"122":7,"123":5,"124":13,"125":11,"126":8,"177":15,"179":3,"181":35}}],["question=",{"2":{"181":4}}],["question>",{"2":{"171":2}}],["questionrouter",{"0":{"136":1},"2":{"177":1}}],["questions",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"3":1,"4":1,"13":1,"15":1,"23":1,"24":2,"26":1,"31":1,"32":1,"37":1,"45":1,"58":1,"64":3,"67":1,"95":1,"108":1,"122":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"177":5,"181":8}}],["question",{"2":{"2":5,"5":1,"6":4,"7":2,"8":1,"13":1,"23":1,"24":7,"26":1,"57":2,"58":8,"61":2,"62":3,"64":30,"77":1,"101":1,"102":1,"103":2,"105":2,"108":5,"110":4,"115":1,"116":1,"118":7,"119":8,"120":6,"123":1,"136":7,"150":1,"151":1,"152":4,"154":2,"155":1,"159":1,"161":1,"163":1,"168":1,"177":6,"181":74}}],["quirks",{"2":{"86":1}}],["quicker",{"2":{"178":1}}],["quick",{"0":{"95":1},"2":{"29":1,"73":1,"87":2,"93":1,"158":1,"177":6}}],["quickly",{"0":{"87":1},"2":{"11":1,"56":1,"67":1,"150":1,"177":1,"181":1}}],["quite",{"2":{"28":1,"63":1,"74":1,"88":1,"106":1,"181":1}}],["quote",{"2":{"152":1}}],["quotes",{"2":{"128":3,"150":1,"181":1}}],["quota",{"2":{"75":1}}],["quot",{"0":{"73":4,"74":2,"75":2},"2":{"1":4,"2":2,"6":2,"7":8,"10":8,"11":6,"13":4,"15":10,"17":8,"18":2,"21":6,"24":2,"28":2,"29":2,"30":2,"31":2,"32":4,"37":10,"43":2,"44":2,"45":2,"49":6,"51":6,"52":26,"55":6,"58":2,"60":2,"64":20,"67":52,"73":8,"74":4,"75":4,"77":2,"78":4,"79":6,"81":2,"83":2,"84":10,"85":6,"86":8,"88":16,"89":6,"90":4,"91":2,"93":6,"95":4,"96":2,"98":2,"99":4,"100":6,"102":8,"103":6,"104":8,"105":6,"106":16,"112":2,"113":2,"118":2,"132":2,"150":2,"151":2,"152":2,"153":2,"154":2,"165":2,"167":2,"169":2,"173":2,"177":242,"178":64,"179":6,"181":41}}],["=context",{"2":{"181":1}}],["=1",{"2":{"181":1}}],["=template",{"2":{"177":2}}],["=pt",{"2":{"177":3}}],["=prompt",{"2":{"177":1}}],["=url",{"2":{"177":1}}],["=user",{"2":{"147":1}}],["=system",{"2":{"147":1,"177":1}}],["=main",{"2":{"52":1,"177":1}}],["=nothing",{"2":{"52":2,"178":4,"181":2}}],["==true",{"2":{"177":1}}],["==",{"2":{"21":2,"51":3,"52":4,"86":1,"165":4,"173":4,"177":2,"178":13,"181":2}}],["=wordcount",{"2":{"13":1,"177":2}}],["=>dic",{"2":{"177":1}}],["=>dict",{"2":{"106":6,"177":2}}],["=>",{"2":{"6":8,"7":1,"86":3,"90":4,"105":4,"106":16,"166":1,"167":1,"177":16,"181":3}}],["=",{"2":{"1":2,"2":6,"4":4,"6":8,"7":14,"10":1,"12":6,"13":7,"14":2,"15":3,"16":4,"17":2,"18":4,"19":2,"20":3,"21":14,"22":5,"23":7,"24":8,"25":1,"26":3,"27":5,"28":1,"29":9,"30":1,"31":3,"32":2,"34":2,"35":5,"36":2,"37":8,"38":1,"40":2,"41":5,"42":3,"43":1,"45":2,"46":2,"48":1,"51":14,"52":68,"55":4,"56":1,"58":8,"60":2,"62":28,"64":146,"67":28,"78":2,"79":1,"81":1,"84":2,"85":2,"86":11,"88":5,"90":9,"91":6,"93":2,"95":1,"96":1,"100":1,"103":1,"104":3,"105":10,"106":20,"164":1,"165":1,"166":2,"167":1,"172":1,"173":1,"177":478,"178":134,"179":7,"181":423}}],["jxnl",{"2":{"150":1,"151":1}}],["javascript",{"2":{"161":2}}],["javascriptexpertask",{"0":{"161":1}}],["jargon",{"2":{"124":1}}],["jarvislabs",{"2":{"89":1}}],["jack",{"2":{"19":1,"87":4,"177":9}}],["james",{"2":{"19":1,"177":8}}],["jane",{"2":{"7":4,"112":2}}],["jedi",{"2":{"12":3,"46":1,"177":1}}],["joy",{"2":{"36":1}}],["job",{"2":{"7":4,"77":1,"177":5}}],["job=",{"2":{"7":1}}],["jobs",{"2":{"7":7}}],["john",{"2":{"7":3,"35":2,"85":6,"90":2}}],["joint",{"2":{"181":1}}],["join",{"2":{"6":3,"7":23,"106":2,"177":3}}],["joining",{"2":{"5":2,"6":2,"7":2,"70":1}}],["joins",{"2":{"2":1,"5":3,"6":1,"7":15,"181":1}}],["joinpath",{"2":{"2":2,"24":1,"177":3}}],["jsonl",{"2":{"89":2,"177":1}}],["json",{"2":{"4":2,"24":2,"87":1,"89":1,"91":1,"105":1,"106":14,"177":13}}],["json3",{"2":{"1":1,"4":2,"22":1,"40":1,"106":7,"177":3}}],["jump",{"2":{"177":1,"178":1}}],["judgment",{"2":{"158":1}}],["judging",{"2":{"119":1,"181":1}}],["judge=",{"2":{"181":1}}],["judgerating",{"2":{"177":1,"181":2}}],["judgeisittrue",{"0":{"135":1},"2":{"13":1,"17":2,"177":7}}],["judgeallscores",{"2":{"6":1,"177":1,"181":2}}],["judged",{"2":{"6":2}}],["judge",{"2":{"2":1,"6":3,"7":2,"10":1,"17":1,"52":1,"104":1,"119":4,"120":3,"135":1,"177":3,"178":1,"181":8}}],["juicy",{"2":{"31":2,"106":8}}],["just",{"2":{"2":1,"10":1,"13":1,"23":1,"24":4,"26":1,"31":1,"52":1,"55":1,"73":1,"75":1,"81":1,"83":2,"85":1,"86":1,"103":1,"104":1,"106":4,"108":1,"115":1,"116":1,"136":1,"156":2,"177":8,"178":1,"179":1}}],["juliaqa",{"2":{"181":1}}],["juliaquestion",{"2":{"58":1}}],["juliakwargs",{"2":{"181":1}}],["juliakw",{"2":{"181":3}}],["juliakeywordsprocessor",{"2":{"181":1}}],["juliakeywordsindexer",{"2":{"181":1}}],["julianotagger",{"2":{"181":1}}],["julianotagfilter",{"2":{"181":1}}],["julianoreranker",{"2":{"181":1}}],["julianorephraser",{"2":{"181":1}}],["julianorefiner",{"2":{"181":1}}],["julianoprocessor",{"2":{"181":1}}],["julianopostprocessor",{"2":{"181":1}}],["julianoembedder",{"2":{"181":1}}],["julianew",{"2":{"12":1,"177":1}}],["juliahcat",{"2":{"181":1}}],["juliahamming",{"2":{"181":1}}],["juliahyderephraser",{"2":{"181":1}}],["juliahtmlstyler",{"2":{"181":1}}],["juliainitialize",{"2":{"177":1}}],["juliaindex",{"2":{"58":1,"64":2,"181":6}}],["juliagetpropertynested",{"2":{"181":1}}],["juliaget",{"2":{"181":7}}],["juliagenerate",{"2":{"64":1,"181":1}}],["juliagamma",{"2":{"178":1}}],["juliagroqopenaischema",{"2":{"177":1}}],["juliabin",{"2":{"181":2}}],["juliabinary",{"2":{"181":1}}],["juliabinarycosinesimilarity",{"2":{"181":1}}],["juliabinarybatchembedder",{"2":{"181":1}}],["juliabitpacked",{"2":{"181":1}}],["juliabitpackedcosinesimilarity",{"2":{"181":1}}],["juliabitpackedbatchembedder",{"2":{"181":1}}],["juliabatchembedder",{"2":{"181":1}}],["juliabm25similarity",{"2":{"181":1}}],["juliabeta",{"2":{"178":1}}],["juliablogwriter",{"0":{"162":1}}],["juliabuild",{"2":{"64":3,"177":1,"181":5}}],["juliaopentagger",{"2":{"181":1}}],["juliaopenai",{"2":{"177":3}}],["juliaollama",{"2":{"177":1}}],["juliaobj",{"2":{"106":1}}],["juliaoutput",{"2":{"51":1}}],["juliaout",{"2":{"21":1,"52":2,"178":2}}],["juliauct",{"2":{"178":1}}],["juliaunique",{"2":{"177":1}}],["juliaunwrap",{"2":{"91":1}}],["juliausing",{"2":{"1":1,"10":1,"12":1,"13":1,"16":1,"20":1,"21":1,"24":1,"25":1,"32":1,"42":1,"43":2,"48":1,"53":1,"66":1,"86":1,"88":1,"91":3,"94":1,"104":1,"105":2,"106":1,"177":9,"181":1}}],["juliaload",{"2":{"177":2,"181":1}}],["julialocalserveropenaischema",{"2":{"177":1}}],["juliallmleaderboard",{"2":{"89":1}}],["julialength",{"2":{"67":1,"177":1}}],["julialanguage",{"2":{"112":1}}],["julialang",{"2":{"57":1,"66":1,"67":1,"177":1}}],["juliawrap",{"2":{"67":2,"177":7}}],["juliaalign",{"2":{"181":1}}],["juliaalltagfilter",{"2":{"181":1}}],["juliaalternative",{"2":{"177":1}}],["juliaadvancedretriever",{"2":{"181":1}}],["juliaadvancedgenerator",{"2":{"181":1}}],["juliaadd",{"2":{"178":1,"181":1}}],["juliaabstractretriever",{"2":{"181":1}}],["juliaabstractmultiindex",{"2":{"181":1}}],["juliaabstractindexbuilder",{"2":{"181":1}}],["juliaabstractgenerator",{"2":{"181":1}}],["juliaabstractchunkindex",{"2":{"181":1}}],["juliaabstractcandidatechunks",{"2":{"181":1}}],["juliaagenttools",{"2":{"178":1}}],["juliaa=1",{"2":{"177":1}}],["juliaaai",{"2":{"177":1}}],["juliaauth",{"2":{"177":1}}],["juliaa",{"2":{"177":2,"181":1}}],["juliaapi",{"2":{"177":2}}],["juliaanswer",{"2":{"181":1}}],["juliaanytagfilter",{"2":{"181":1}}],["juliaanthropic",{"2":{"177":1}}],["juliaanthropicschema",{"2":{"177":1}}],["juliaannotatednode",{"2":{"181":1}}],["juliaannotater",{"2":{"64":1,"181":1}}],["juliaannotate",{"2":{"64":2,"181":2}}],["juliaassume",{"2":{"64":1,"181":1}}],["juliaaiscan",{"2":{"177":3,"178":1}}],["juliaaiimage",{"2":{"177":2}}],["juliaaiextract",{"2":{"177":3,"178":1}}],["juliaaiembed",{"2":{"30":1,"31":1,"177":3,"178":1}}],["juliaaitemplate",{"2":{"177":1}}],["juliaaitemplates",{"2":{"87":1,"177":2}}],["juliaaimessage",{"2":{"177":1}}],["juliaairag",{"2":{"64":1,"181":1}}],["juliaairetry",{"2":{"52":1,"178":1}}],["juliaaicodefixer",{"2":{"52":1,"178":2}}],["juliaaicode",{"2":{"52":1,"177":1}}],["juliaaicall",{"2":{"52":3,"178":6}}],["juliaaiclassify",{"2":{"17":2,"177":5,"178":1}}],["juliaaigenerate",{"2":{"52":1,"87":2,"177":8,"178":1}}],["juliaai",{"2":{"45":1,"85":1,"95":2,"177":1}}],["juliart",{"2":{"181":1}}],["juliarank",{"2":{"181":2}}],["juliarankgptresult",{"2":{"181":1}}],["juliarankgptreranker",{"2":{"181":1}}],["juliaragresult",{"2":{"181":1}}],["juliaragconfig",{"2":{"181":1}}],["juliaragtools",{"2":{"181":1}}],["juliarun",{"2":{"178":2,"181":2}}],["juliarerank",{"2":{"181":2}}],["juliarefiner",{"2":{"181":1}}],["juliarefine",{"2":{"181":3}}],["juliaretryconfig",{"2":{"178":1}}],["juliaretrieve",{"2":{"64":1,"181":1}}],["juliaretriever",{"2":{"62":1,"64":2,"181":2}}],["juliarender",{"2":{"177":7}}],["juliarendered",{"2":{"105":1}}],["juliaremove",{"2":{"177":1}}],["juliaregister",{"2":{"177":2}}],["juliareciprocal",{"2":{"181":2}}],["juliareceive",{"2":{"181":1}}],["juliarecaptask",{"0":{"167":1}}],["juliarecapcottask",{"0":{"166":1}}],["juliarecursive",{"2":{"67":2,"177":2}}],["juliareplace",{"2":{"67":1,"177":1}}],["juliarephrase",{"2":{"62":1,"181":3}}],["juliaresponse",{"2":{"177":1}}],["juliaresize",{"2":{"177":2}}],["juliares",{"2":{"64":1,"181":1}}],["juliaresult",{"2":{"58":1,"104":1,"106":1,"177":4,"181":1}}],["juliaresults",{"2":{"7":1}}],["juliar",{"2":{"55":2,"179":2}}],["juliaflashranker",{"2":{"181":1}}],["juliafunction",{"2":{"177":1}}],["juliafind",{"2":{"177":2,"181":8}}],["juliafinalize",{"2":{"177":3}}],["juliafireworksopenaischema",{"2":{"177":1}}],["juliafilechunker",{"2":{"181":1}}],["juliafilename",{"2":{"24":1}}],["juliafiles",{"2":{"2":1}}],["juliafeedback",{"2":{"106":1}}],["juliafor",{"2":{"52":1,"178":1}}],["juliasplit",{"2":{"181":1}}],["juliaspec",{"2":{"177":1}}],["juliascore",{"2":{"181":1}}],["juliaschema",{"2":{"37":1}}],["juliastemmer",{"2":{"181":1}}],["juliastyler",{"2":{"181":1}}],["juliasubchunkindex",{"2":{"181":1}}],["juliasimpleretriever",{"2":{"181":1}}],["juliasimplerephraser",{"2":{"181":1}}],["juliasimplerefiner",{"2":{"181":1}}],["juliasimpleindexer",{"2":{"181":1}}],["juliasimplegenerator",{"2":{"181":1}}],["juliasimplebm25retriever",{"2":{"181":1}}],["juliasimpleanswerer",{"2":{"181":1}}],["juliasig",{"2":{"106":3}}],["juliasample",{"2":{"178":1}}],["juliasamplenode",{"2":{"178":1}}],["juliasave",{"2":{"177":3}}],["juliasaverschema",{"2":{"177":1}}],["juliasharegptschema",{"2":{"177":1}}],["juliaselect",{"2":{"178":1}}],["juliasetpropertynested",{"2":{"181":1}}],["juliaset",{"2":{"177":1,"181":1}}],["juliasentences",{"2":{"58":1}}],["juliaserialize",{"2":{"2":1}}],["juliamultiindex",{"2":{"181":1}}],["juliamultifinder",{"2":{"181":1}}],["juliamulticandidatechunks",{"2":{"181":1}}],["juliamerge",{"2":{"181":1}}],["juliamessages",{"2":{"177":1}}],["juliameta",{"2":{"91":1}}],["juliamarkdown",{"2":{"177":1}}],["juliamistralopenaischema",{"2":{"177":1}}],["juliamodelspec",{"2":{"177":1}}],["juliamodel",{"2":{"35":1,"106":2,"177":2}}],["juliamsgs",{"2":{"24":1}}],["juliamsg",{"2":{"12":1,"13":2,"20":1,"22":1,"23":1,"24":1,"26":1,"28":1,"29":1,"30":1,"31":1,"34":1,"38":1,"40":2,"41":1,"42":1,"45":1,"52":1,"64":1,"96":1,"177":11,"181":3}}],["juliadistance",{"2":{"177":1}}],["juliadetect",{"2":{"177":1}}],["juliadecode",{"2":{"177":1}}],["juliadeepseekopenaischema",{"2":{"177":1}}],["juliadatabricksopenaischema",{"2":{"177":1}}],["juliadatamessage",{"2":{"177":1}}],["juliadataexpertask",{"2":{"24":2}}],["juliadry",{"2":{"90":1}}],["juliadocumenttermmatrix",{"2":{"181":1}}],["juliadoc",{"2":{"64":1,"181":1}}],["juliadocs",{"2":{"41":1}}],["juliadf",{"2":{"7":1}}],["juliapositions1",{"2":{"181":2}}],["juliapermutation",{"2":{"181":1}}],["juliapack",{"2":{"181":1}}],["juliapackage",{"2":{"112":1}}],["juliaparent",{"2":{"181":1}}],["juliapassthroughtagger",{"2":{"181":1}}],["juliapush",{"2":{"177":1}}],["juliapprint",{"2":{"58":1,"177":2}}],["juliapreprocess",{"2":{"181":1}}],["juliapreferences",{"2":{"177":1}}],["juliaprompt",{"2":{"106":1}}],["juliapromptingtools",{"2":{"60":1,"177":5,"181":1}}],["juliaprompts",{"2":{"14":1}}],["juliaprint",{"2":{"52":1,"178":1,"181":1}}],["juliapt",{"2":{"24":2,"37":1,"52":1,"64":1,"87":2,"90":1,"91":1,"177":5,"181":3}}],["juliacc",{"2":{"181":1}}],["juliachunkkeywordsindex",{"2":{"181":2}}],["juliachunkembeddingsindex",{"2":{"181":1}}],["juliachoices",{"2":{"18":1,"86":1,"177":5}}],["juliacandidatechunks",{"2":{"181":1}}],["juliacall",{"2":{"177":1}}],["juliacustomopenaischema",{"2":{"177":1}}],["juliacfg",{"2":{"62":1,"64":1,"181":3}}],["juliacreate",{"2":{"55":1,"177":1,"179":1,"181":1}}],["juliacb",{"2":{"52":1,"178":1}}],["juliacohere",{"2":{"181":1}}],["juliacoherereranker",{"2":{"181":1}}],["juliacosinesimilarity",{"2":{"181":1}}],["juliacountry",{"2":{"95":1}}],["juliacommands",{"2":{"67":1,"177":1}}],["juliacode",{"2":{"52":2,"177":4}}],["juliaconv",{"2":{"177":2}}],["juliaconversation",{"2":{"36":1,"46":1,"85":1}}],["juliacontextenumerator",{"2":{"181":1}}],["juliacontext",{"2":{"67":1,"177":1}}],["juliaconst",{"2":{"15":1,"22":1,"23":1,"26":1,"177":15}}],["juliatokenize",{"2":{"181":1}}],["juliatoken",{"2":{"181":1}}],["juliatogetheropenaischema",{"2":{"177":1}}],["juliatags",{"2":{"181":1}}],["juliatavilysearchrefiner",{"2":{"181":1}}],["juliatavily",{"2":{"179":1}}],["juliathompsonsampling",{"2":{"178":1}}],["juliatypeof",{"2":{"177":5}}],["juliatrigrams",{"2":{"181":1}}],["juliatrigram",{"2":{"181":1}}],["juliatrigramannotater",{"2":{"181":1}}],["juliatranslate",{"2":{"181":2}}],["juliatracerschema",{"2":{"177":1}}],["juliatracermessagelike",{"2":{"177":1}}],["juliatracermessage",{"2":{"177":1}}],["juliatruncate",{"2":{"178":1}}],["juliatryparse",{"2":{"177":1}}],["juliatemplate",{"2":{"105":1}}],["juliatextchunker",{"2":{"181":1}}],["juliatext1",{"2":{"67":1,"177":1}}],["juliatext",{"2":{"16":1,"67":7,"177":7}}],["juliatpl",{"2":{"24":1}}],["juliatmps",{"2":{"13":2,"24":1,"177":4}}],["juliajulia>",{"2":{"13":1,"52":1,"177":1,"178":1}}],["juliaexperimental",{"2":{"180":1}}],["juliaexperttask",{"2":{"177":1}}],["juliaexperttestcodexml",{"0":{"173":1}}],["juliaexperttestcode",{"0":{"165":1}}],["juliaexperttranscriptcritic",{"0":{"140":1}}],["juliaexpertcottaskxml",{"0":{"172":1}}],["juliaexpertcottask",{"0":{"164":1}}],["juliaexpertaskxml",{"0":{"171":1}}],["juliaexpertask",{"0":{"163":1},"2":{"13":4,"24":6,"52":1,"104":2,"177":6,"178":1}}],["juliaextract",{"2":{"177":5,"181":1}}],["juliaevaluate",{"2":{"178":1}}],["juliaeval",{"2":{"177":1}}],["juliaevals",{"2":{"4":1,"5":1}}],["juliaencode",{"2":{"177":1}}],["juliaenv",{"2":{"78":1}}],["juliaerror",{"2":{"52":1,"178":1}}],["juliax",{"2":{"6":1,"177":1,"181":1}}],["julia>",{"2":{"5":1}}],["julia",{"2":{"2":3,"4":1,"6":1,"7":1,"10":1,"13":6,"19":2,"20":3,"21":2,"23":1,"24":14,"27":1,"29":1,"31":1,"38":1,"49":1,"51":2,"52":9,"56":1,"57":1,"58":26,"64":3,"67":1,"73":6,"74":1,"78":3,"81":1,"86":2,"87":1,"90":1,"93":3,"102":1,"103":1,"104":1,"105":2,"106":2,"112":2,"122":4,"128":4,"129":2,"130":1,"140":8,"162":3,"163":2,"164":2,"165":3,"166":7,"167":8,"171":2,"172":2,"173":3,"177":66,"178":12,"181":17}}],["jls",{"2":{"2":2}}],["jl",{"0":{"79":1},"2":{"0":3,"1":1,"2":3,"8":2,"10":1,"23":3,"24":1,"26":2,"27":1,"29":1,"30":1,"31":1,"42":1,"52":1,"58":3,"63":1,"64":1,"65":1,"67":3,"70":1,"78":2,"81":2,"82":1,"89":1,"93":2,"94":1,"97":1,"100":1,"104":1,"105":1,"106":1,"112":4,"177":20,"178":1,"181":5}}],["nfeedback",{"2":{"178":6}}],["n```",{"2":{"128":1,"129":1,"177":1}}],["nwhat",{"2":{"105":1}}],["nwe",{"2":{"7":1}}],["nparagraph",{"2":{"67":6,"88":2,"177":6}}],["n=5",{"2":{"64":1,"181":1}}],["n=2",{"2":{"21":1,"51":1,"52":1,"178":1}}],["nsfw",{"2":{"52":1,"178":1}}],["nsemijoin",{"2":{"7":1}}],["nbsp",{"2":{"52":9,"55":1,"64":6,"67":5,"177":143,"178":37,"179":2,"180":1,"181":142}}],["ngl",{"2":{"28":2}}],["nli",{"2":{"17":1}}],["nt2",{"2":{"181":3}}],["nt1",{"2":{"181":3}}],["nt",{"2":{"181":4}}],["nthreads",{"2":{"181":6}}],["nthe",{"2":{"7":1}}],["ntasks=2",{"2":{"74":2}}],["ntasks=1",{"2":{"64":1,"74":1,"181":4}}],["ntasks=10",{"2":{"14":1}}],["ntasks",{"2":{"64":1,"74":1,"181":7}}],["n7",{"2":{"7":1}}],["n6",{"2":{"7":1}}],["n5",{"2":{"7":1}}],["numerical",{"2":{"58":1}}],["num",{"2":{"32":2,"110":4,"178":6,"181":2}}],["number",{"2":{"14":1,"28":1,"52":14,"55":1,"58":1,"64":8,"66":1,"67":2,"74":4,"86":10,"106":1,"110":1,"136":1,"165":1,"173":1,"177":21,"178":26,"179":1,"181":19}}],["numbers",{"2":{"2":1,"52":4,"165":2,"173":2,"177":3,"178":1,"181":1}}],["null",{"2":{"7":1,"177":2}}],["n4",{"2":{"7":1}}],["n3",{"2":{"7":1}}],["n2",{"2":{"7":1}}],["n2×3",{"2":{"7":1}}],["n2×2",{"2":{"7":2}}],["n1",{"2":{"7":1}}],["njob",{"2":{"7":2}}],["njulia",{"2":{"7":1}}],["niche",{"2":{"124":1}}],["nice",{"2":{"13":1,"24":1,"34":1,"35":1,"37":1,"177":4}}],["nid",{"2":{"7":2}}],["nintroduction",{"2":{"7":1}}],["n─────┼───────────────",{"2":{"7":1}}],["n─────┼─────────────────────────",{"2":{"7":1}}],["n─────┼─────────────────",{"2":{"7":1}}],["naming",{"2":{"177":1}}],["name`",{"2":{"177":1}}],["named",{"2":{"165":1,"173":1,"177":15}}],["namedtuple=namedtuple",{"2":{"181":1}}],["namedtuples",{"2":{"166":1,"167":1,"181":1}}],["namedtuple",{"2":{"10":2,"52":7,"64":61,"104":2,"177":74,"178":9,"179":2,"181":79}}],["namespace",{"2":{"94":1}}],["names",{"2":{"7":3,"27":1,"28":1,"58":1,"60":1,"62":1,"67":1,"106":2,"112":5,"162":1,"166":1,"167":1,"177":15,"181":1}}],["name",{"2":{"7":6,"11":1,"12":2,"13":2,"15":1,"24":6,"28":1,"29":1,"30":1,"31":2,"32":1,"35":3,"37":1,"83":1,"84":1,"85":5,"87":7,"89":1,"90":3,"103":2,"106":9,"112":1,"128":2,"156":1,"158":1,"165":1,"173":1,"177":71,"178":1,"181":1}}],["name=",{"2":{"7":1,"12":1,"84":1,"87":2,"90":1,"91":1,"166":1,"167":1,"177":4}}],["narrative",{"2":{"169":2}}],["nature",{"2":{"151":1,"177":1}}],["naturally",{"2":{"177":1}}],["natural",{"2":{"58":1,"124":1,"126":1,"177":1}}],["native",{"2":{"106":1}}],["navigate",{"2":{"1":1}}],["n",{"2":{"7":17,"13":2,"21":2,"24":8,"51":2,"52":7,"62":2,"64":8,"67":24,"88":10,"103":2,"105":4,"106":4,"128":1,"129":1,"177":30,"178":18,"181":18}}],["neighboring",{"2":{"181":1}}],["network",{"2":{"181":3}}],["nedeed",{"2":{"177":1}}],["never",{"2":{"177":1,"181":1}}],["negative",{"2":{"165":1,"169":1,"173":1,"181":1}}],["nesting",{"2":{"165":1,"173":1}}],["nested",{"2":{"0":1,"62":2,"64":5,"165":1,"173":1,"177":3,"181":16}}],["neuroplasticity",{"2":{"112":2}}],["nexample",{"2":{"106":1}}],["next",{"0":{"8":1},"2":{"21":1,"51":1,"52":1,"85":1,"105":2,"151":14,"158":1,"178":2,"181":3}}],["nearest",{"2":{"87":2,"177":2}}],["near",{"2":{"56":1}}],["news",{"2":{"177":2}}],["newline",{"2":{"67":3,"177":4,"181":2}}],["newlines",{"2":{"66":1,"67":2,"88":1,"177":3}}],["new",{"2":{"12":2,"24":2,"31":1,"52":8,"60":3,"64":2,"72":1,"73":1,"74":1,"83":1,"85":1,"93":1,"95":1,"103":1,"105":1,"115":2,"116":1,"128":1,"129":1,"150":1,"151":1,"166":1,"167":1,"177":18,"178":8,"181":5}}],["necessary>",{"2":{"158":1}}],["necessary",{"2":{"10":1,"23":1,"27":1,"36":1,"49":1,"52":2,"56":1,"63":1,"90":1,"91":1,"97":1,"104":1,"140":1,"150":1,"177":13,"178":1}}],["needing",{"2":{"118":1}}],["needs",{"2":{"52":1,"100":1,"106":1,"128":1,"140":1,"177":1,"178":1}}],["needed>",{"2":{"158":1}}],["needed",{"2":{"10":1,"19":1,"21":1,"49":1,"51":1,"64":1,"86":1,"104":1,"115":2,"116":2,"138":1,"140":1,"169":1,"177":5,"178":2,"181":1}}],["need",{"2":{"3":1,"4":2,"5":1,"7":1,"10":2,"11":2,"28":1,"32":1,"34":1,"37":1,"43":1,"51":1,"52":1,"54":1,"57":1,"58":3,"62":1,"64":1,"66":1,"67":1,"74":1,"75":1,"77":1,"78":1,"84":1,"86":2,"87":1,"93":2,"101":2,"104":2,"106":4,"128":1,"129":1,"130":1,"150":1,"151":1,"152":1,"164":1,"165":1,"167":1,"169":1,"172":1,"173":1,"177":25,"178":1,"181":3}}],["noprocessor",{"2":{"177":1,"181":4}}],["nopostprocessor",{"2":{"64":2,"177":1,"181":6}}],["noembedder",{"2":{"177":1,"181":3}}],["noisy",{"2":{"116":1}}],["noise",{"2":{"2":1}}],["noschema",{"2":{"90":3,"105":1,"177":3}}],["noreranker",{"2":{"177":1,"181":4}}],["norephraser",{"2":{"177":1,"181":5}}],["norefiner",{"2":{"64":3,"177":1,"181":7}}],["normal",{"2":{"177":7}}],["normalization",{"2":{"42":1}}],["normalizes",{"2":{"181":1}}],["normalized",{"2":{"16":1,"66":1,"67":1,"177":3,"181":1}}],["normalize",{"2":{"16":2,"42":2,"67":2,"177":8,"181":3}}],["norm",{"2":{"67":2,"177":2}}],["nodes",{"2":{"52":1,"64":5,"178":4,"181":15}}],["node",{"2":{"52":5,"64":3,"177":4,"178":31,"181":38}}],["nods",{"2":{"36":2}}],["nomic",{"2":{"31":2}}],["now",{"2":{"23":1,"24":1,"26":1,"36":1,"43":1,"52":2,"58":1,"77":1,"81":1,"86":1,"87":1,"89":1,"106":1,"177":6,"178":3,"181":1}}],["non",{"2":{"11":1,"21":1,"51":1,"52":1,"84":1,"177":13,"178":1,"181":2}}],["none",{"2":{"4":1,"21":1,"51":1,"64":2,"112":1,"113":1,"118":1,"136":2,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"172":1,"173":1,"181":3}}],["no",{"2":{"10":1,"15":1,"20":1,"21":1,"51":1,"52":5,"58":3,"64":3,"104":1,"105":2,"128":1,"130":1,"136":2,"151":1,"158":1,"177":15,"178":6,"181":20}}],["notfound",{"2":{"178":1}}],["notagfilter",{"2":{"177":1,"181":6}}],["notagger",{"2":{"64":2,"177":1,"181":10}}],["notation",{"2":{"52":1,"178":1}}],["notification",{"2":{"76":1}}],["notion",{"2":{"49":1}}],["notice",{"2":{"21":3,"22":1,"45":1,"51":2,"52":2,"58":1,"60":1,"62":2,"85":2,"86":1,"89":1,"95":1,"103":1,"105":1,"106":1,"177":6,"178":2,"181":1}}],["nothing",{"2":{"6":1,"7":1,"12":1,"19":4,"31":1,"52":19,"64":9,"73":1,"86":1,"90":1,"106":4,"115":2,"116":2,"150":1,"156":1,"177":101,"178":24,"181":55}}],["not",{"2":{"1":1,"5":1,"7":3,"10":3,"11":1,"12":2,"19":1,"22":1,"23":1,"24":2,"27":1,"36":1,"37":2,"38":1,"43":1,"46":2,"47":2,"49":1,"52":21,"55":1,"60":1,"64":1,"67":5,"69":1,"71":2,"72":2,"73":2,"75":2,"76":1,"78":1,"83":1,"85":1,"86":4,"88":1,"93":3,"97":1,"104":3,"106":9,"110":1,"115":1,"116":4,"118":1,"119":3,"124":1,"126":1,"128":2,"139":1,"150":5,"151":1,"152":1,"164":1,"165":1,"166":2,"167":2,"169":2,"173":1,"175":1,"177":79,"178":23,"179":1,"180":2,"181":11}}],["notes",{"2":{"52":2,"64":4,"67":2,"150":4,"151":1,"160":6,"162":7,"177":7,"178":5,"181":8}}],["notexist",{"2":{"21":1,"51":1,"52":2,"178":2}}],["noteworthy",{"2":{"10":1,"64":1,"181":1}}],["note",{"2":{"0":1,"1":2,"6":1,"7":4,"19":1,"21":1,"23":1,"24":1,"27":1,"30":1,"31":1,"32":1,"37":2,"51":1,"52":2,"63":1,"64":1,"69":1,"75":1,"87":1,"103":1,"105":1,"106":1,"158":1,"177":24,"178":4,"180":1,"181":3}}],["pwd",{"2":{"177":2}}],["pct",{"2":{"169":3}}],["photos",{"2":{"176":1}}],["phrase",{"2":{"156":1}}],["phrasings",{"2":{"124":1}}],["phase",{"2":{"63":3,"64":1,"181":1}}],["phases",{"2":{"60":1}}],["python",{"2":{"38":1,"58":1,"166":1,"167":1,"177":2}}],["pkgdir",{"2":{"24":1}}],["pkg",{"2":{"24":2,"43":2,"52":1,"73":1,"94":2,"177":2}}],["png",{"2":{"20":2,"38":2,"177":10}}],["p",{"2":{"18":2,"86":4,"177":5,"178":2}}],["plots",{"2":{"112":2}}],["plural",{"2":{"89":1}}],["plus",{"2":{"17":2,"86":2,"177":4}}],["please",{"2":{"24":1,"73":1,"75":2,"119":1,"175":1,"177":1,"178":1}}],["plausible",{"2":{"169":2}}],["plain",{"2":{"158":2,"181":1}}],["plaintextblog",{"2":{"175":1}}],["plaintextexplain",{"2":{"169":1}}],["plaintextextract",{"2":{"113":1}}],["plaintextnotes",{"2":{"160":1,"162":1}}],["plaintextuser",{"2":{"134":1,"136":1,"158":1}}],["plaintextusing",{"2":{"24":1}}],["plaintextoriginal",{"2":{"125":1}}],["plaintexthere",{"2":{"124":1,"126":1}}],["plaintextquery",{"2":{"123":1}}],["plaintextwrite",{"2":{"122":1}}],["plaintextwe",{"2":{"115":1,"116":1}}],["plaintextignore",{"2":{"128":1}}],["plaintexti",{"2":{"110":1}}],["plaintextyour",{"2":{"175":1}}],["plaintextyou",{"2":{"110":1,"112":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"134":1,"135":1,"136":1,"142":1,"143":1,"145":1,"148":1,"155":1,"157":1,"159":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"176":1}}],["plaintextact",{"2":{"108":1,"115":1,"116":1,"138":1,"139":1,"140":1,"150":1,"151":1,"156":1,"158":1,"160":1,"162":1}}],["plaintextaimessage",{"2":{"12":1}}],["plaintext2",{"2":{"90":3,"105":2}}],["plaintext>",{"2":{"12":1}}],["plaintext",{"2":{"11":1,"58":1,"95":2,"96":1,"108":1,"112":1,"113":1,"118":1,"119":1,"120":1,"128":1,"129":2,"130":2,"132":2,"135":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":2,"148":1,"150":1,"151":1,"152":1,"154":1,"155":1,"156":1,"157":1,"159":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1}}],["placing",{"2":{"128":1,"129":1}}],["places",{"2":{"106":1,"112":1}}],["placeholder",{"2":{"24":1,"64":1,"87":1,"103":1,"105":1,"135":1,"142":1,"143":1,"145":1,"148":1,"177":6,"181":1}}],["placeholders",{"0":{"96":1},"2":{"13":2,"24":4,"98":1,"103":1,"105":4,"106":2,"108":2,"110":2,"112":2,"113":2,"115":2,"116":2,"118":2,"119":2,"120":2,"122":2,"123":2,"124":2,"125":2,"126":2,"128":2,"129":2,"130":2,"132":2,"134":2,"135":1,"136":2,"138":2,"139":2,"140":2,"142":1,"143":1,"145":1,"147":2,"148":1,"150":2,"151":2,"152":2,"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":3,"171":2,"172":2,"173":2,"175":2,"176":2,"177":8}}],["place",{"2":{"21":1,"52":1,"60":1,"100":1,"151":1,"177":1,"178":2}}],["platform",{"2":{"75":1,"177":1}}],["plant",{"2":{"18":2,"86":1,"177":8}}],["plan",{"2":{"16":1,"23":1,"75":1,"151":1,"177":2}}],["playful",{"2":{"175":1}}],["plays",{"2":{"151":1}}],["playing",{"2":{"150":1}}],["play",{"2":{"8":1,"21":1,"51":1,"52":2,"178":2}}],["pprint",{"2":{"10":1,"57":2,"58":1,"64":4,"177":11,"181":12}}],["pesona",{"2":{"160":1}}],["penicillin",{"2":{"118":2}}],["perched",{"2":{"177":1}}],["permanently",{"2":{"177":1}}],["permanent",{"2":{"177":1}}],["permutation",{"2":{"177":7,"181":12}}],["persistent",{"2":{"177":1}}],["persistently",{"2":{"84":1}}],["persist",{"2":{"177":1}}],["persists",{"2":{"79":1}}],["personality",{"2":{"177":1}}],["personally",{"2":{"90":1}}],["personal",{"2":{"83":1}}],["persona",{"0":{"149":1},"1":{"150":1,"151":1,"152":1},"2":{"24":1,"147":1,"148":1,"159":1,"160":4,"162":1,"177":5}}],["personas",{"2":{"24":1}}],["person",{"2":{"7":2,"19":1,"177":6}}],["periods",{"2":{"181":1}}],["period",{"2":{"74":1}}],["perfectly",{"2":{"119":1}}],["perfect",{"2":{"67":1,"106":1,"122":1,"177":3}}],["performance",{"2":{"14":1,"58":2,"125":1,"140":1,"166":1,"167":1,"177":1,"181":2}}],["perform",{"2":{"7":1}}],["per",{"2":{"64":1,"74":5,"77":3,"106":4,"112":1,"177":9,"178":1,"181":4}}],["perhaps",{"2":{"36":1}}],["perplexity",{"2":{"23":1,"27":1}}],["people",{"2":{"7":4,"96":1,"150":1,"177":2}}],["punctuation",{"2":{"181":2}}],["push",{"2":{"177":4}}],["puppy",{"2":{"156":1}}],["pure",{"2":{"124":1}}],["purposes",{"2":{"90":1,"105":1}}],["purpose",{"2":{"5":2,"6":1,"7":6,"10":2,"103":1,"104":2,"106":1,"138":2,"160":6,"162":6,"165":1,"173":1,"177":1}}],["published",{"2":{"58":1,"112":1}}],["pull",{"2":{"32":1,"83":2}}],["put",{"2":{"2":1,"52":1,"74":1,"106":1,"177":1,"178":1}}],["pipe",{"2":{"178":1}}],["pipelines",{"2":{"52":1,"178":2,"180":1}}],["pipeline",{"2":{"6":1,"56":1,"58":2,"60":2,"62":1,"64":10,"90":3,"181":16}}],["pinpoint",{"2":{"151":1}}],["pinpointing",{"2":{"128":1}}],["pirate",{"2":{"87":4,"177":6}}],["piece",{"2":{"64":1,"181":3}}],["pieces",{"2":{"2":1,"63":1}}],["picking",{"2":{"142":1}}],["pick",{"2":{"8":1,"52":1,"100":1,"106":1,"134":1,"136":1,"177":1,"178":1}}],["picture",{"2":{"5":2,"6":1,"7":2}}],["pop",{"2":{"178":1}}],["population=",{"2":{"96":1}}],["population",{"2":{"95":1,"96":4}}],["popular",{"2":{"82":1}}],["pounds",{"2":{"177":1}}],["port",{"2":{"177":6}}],["porsche",{"2":{"86":2,"106":2}}],["points",{"2":{"119":1,"128":4,"138":1,"139":1,"150":9,"151":4,"158":1,"159":1,"161":1,"168":1,"175":1,"178":1,"181":1}}],["point",{"2":{"60":1,"64":1,"87":2,"106":1,"118":1,"128":1,"150":2,"151":1,"158":2,"177":2,"181":1}}],["pose",{"2":{"151":1}}],["positive",{"2":{"77":1,"158":1,"165":1,"169":1,"173":1}}],["positions1",{"2":{"181":3}}],["positions3",{"2":{"181":2}}],["positions2",{"2":{"181":5}}],["positions",{"2":{"177":10,"181":32}}],["position",{"2":{"67":1,"177":1,"181":9}}],["pos",{"2":{"67":4,"177":4,"181":1}}],["post",{"2":{"162":2,"175":5,"177":4,"181":1}}],["posts",{"2":{"138":1,"162":1}}],["postorderdfs",{"2":{"52":3,"178":8}}],["postprocessor",{"2":{"64":8,"181":11}}],["postprocessing",{"0":{"42":1},"2":{"42":1,"63":1,"64":1,"181":3}}],["postprocess",{"2":{"40":1,"61":1,"64":3,"177":7,"181":5}}],["possibly",{"2":{"181":1}}],["possible",{"2":{"7":1,"52":1,"67":4,"122":1,"123":2,"150":1,"165":1,"173":1,"176":1,"177":6,"178":1,"181":4}}],["possess",{"2":{"12":1}}],["possessions",{"2":{"12":1,"46":1}}],["powerful",{"2":{"15":1,"21":1,"52":1,"56":1,"89":1,"106":2,"124":1,"148":1,"177":1,"178":1,"181":1}}],["powered",{"2":{"14":1,"96":1}}],["power",{"2":{"12":1,"112":1}}],["poor",{"2":{"4":1}}],["potentially",{"2":{"63":1,"64":2,"181":2}}],["potential",{"2":{"2":2,"52":1,"63":1,"125":1,"169":1,"178":2}}],["pt",{"2":{"1":1,"15":2,"22":2,"23":3,"24":6,"25":1,"26":2,"27":1,"28":1,"29":4,"30":2,"31":2,"32":5,"34":1,"36":2,"37":6,"42":1,"43":1,"46":2,"52":6,"64":10,"81":1,"84":5,"87":2,"89":2,"90":4,"105":12,"106":3,"177":65,"178":19,"181":30}}],["palm",{"2":{"177":1}}],["packed",{"2":{"181":8}}],["pack",{"2":{"177":1,"181":9}}],["packages",{"2":{"13":2,"24":2,"52":1,"58":1,"112":1,"166":1,"167":1,"177":4,"180":1,"181":2}}],["package",{"2":{"1":1,"2":1,"10":1,"24":10,"32":1,"43":1,"52":1,"56":1,"73":1,"94":1,"97":2,"100":1,"104":1,"112":1,"177":9,"178":1,"181":5}}],["payout",{"2":{"169":1}}],["payload",{"2":{"106":1}}],["paying",{"0":{"77":1},"2":{"77":1}}],["pay",{"2":{"74":1,"77":3}}],["painting",{"2":{"67":1,"177":1}}],["pair",{"0":{"5":1,"6":1},"2":{"177":2,"181":2}}],["pairs",{"0":{"4":1},"2":{"3":1,"6":1,"57":1,"64":3,"177":1,"181":3}}],["padding",{"2":{"67":1,"177":6,"181":1}}],["padawan",{"2":{"12":1,"46":1,"177":1}}],["pauses",{"2":{"36":1}}],["paper",{"2":{"21":2,"52":2,"123":1,"128":1,"178":2,"181":1}}],["page",{"2":{"8":1,"24":1,"42":1,"43":1,"71":1,"72":1,"93":1,"177":2}}],["pages",{"2":{"2":3,"11":1,"176":1}}],["paris",{"2":{"95":1,"181":3}}],["parents",{"2":{"178":1}}],["parent",{"2":{"64":1,"91":1,"177":16,"178":4,"181":41}}],["param2",{"2":{"181":1}}],["param1",{"2":{"181":1}}],["parameter",{"2":{"64":1,"105":1,"106":3,"177":5,"178":1,"181":5}}],["parameters",{"2":{"2":1,"6":2,"7":3,"10":2,"52":1,"64":16,"104":2,"106":5,"177":7,"178":3,"181":29}}],["paragraphs",{"2":{"67":2,"88":1,"177":2}}],["paragraph",{"2":{"67":3,"88":1,"177":3,"181":2}}],["parallelism",{"2":{"58":1}}],["parallel",{"2":{"52":1,"58":7,"64":1,"178":1,"181":6}}],["paralellize",{"2":{"41":1}}],["parts",{"2":{"57":1,"139":1,"151":1,"177":1,"178":1}}],["particular",{"2":{"64":1,"65":1,"169":1,"177":1,"181":1}}],["particularly",{"2":{"52":1,"67":2,"142":1,"143":1,"145":1,"177":4,"178":2}}],["partially",{"2":{"177":1}}],["partial",{"2":{"24":2,"58":1,"90":2,"177":2,"181":2}}],["part",{"2":{"12":1,"52":1,"63":2,"64":2,"150":2,"177":4,"178":1,"181":2}}],["parseable",{"2":{"86":2}}],["parses",{"2":{"52":1,"177":1}}],["parser",{"2":{"52":1,"177":1}}],["parse",{"2":{"20":1,"52":2,"77":1,"177":4,"178":1}}],["parsed",{"2":{"8":1,"52":6,"106":1,"177":8}}],["parsing",{"2":{"7":1,"19":1,"52":6,"177":7,"178":1}}],["patience",{"2":{"36":1}}],["pathways",{"2":{"165":1,"173":1}}],["path=",{"2":{"20":1,"38":1,"177":5}}],["path",{"2":{"12":1,"36":1,"38":2,"46":2,"177":33}}],["paths",{"2":{"4":1,"64":4,"177":2,"181":6}}],["patterns",{"2":{"177":3}}],["pattern",{"2":{"1":1,"11":1,"177":4}}],["past",{"2":{"85":2,"128":5,"177":1,"178":2}}],["paste",{"2":{"2":1}}],["passage",{"2":{"122":3,"123":3,"181":2}}],["passages",{"2":{"110":7,"181":1}}],["passtroughtagger",{"2":{"64":1,"181":1}}],["passthroughtagger",{"2":{"64":3,"177":1,"181":6}}],["passthrough",{"2":{"63":1,"177":1,"181":3}}],["pass",{"2":{"52":1,"60":1,"62":3,"64":4,"85":1,"177":9,"178":1,"181":22}}],["passes",{"2":{"21":1,"51":1,"181":4}}],["passed",{"2":{"6":1,"7":4,"52":2,"58":1,"60":2,"64":9,"86":1,"177":6,"178":8,"181":9}}],["passing",{"0":{"62":1},"2":{"0":1,"52":1,"178":1}}],["pragmatic",{"2":{"138":1,"139":1,"140":1}}],["practics",{"2":{"177":1}}],["practically",{"2":{"178":1}}],["practical",{"2":{"96":1,"106":1,"159":1,"161":1,"168":1,"177":1,"181":1}}],["practices",{"2":{"58":6,"64":1,"140":1,"181":6}}],["practice",{"2":{"4":1,"7":1,"105":1}}],["pristine",{"2":{"177":1}}],["primary",{"2":{"177":1}}],["pricing",{"2":{"77":1}}],["price",{"2":{"77":1}}],["privacy",{"0":{"71":1},"2":{"69":1}}],["principles",{"2":{"60":1}}],["printed",{"2":{"64":1,"181":4}}],["printstyled",{"2":{"181":1}}],["prints",{"2":{"52":1,"64":1,"177":1,"178":1,"181":3}}],["println",{"2":{"52":5,"177":7,"178":2}}],["print",{"2":{"24":1,"49":3,"52":6,"58":1,"64":4,"67":1,"177":19,"178":8,"181":21}}],["printing",{"2":{"10":1,"57":1,"58":2,"177":1,"181":1}}],["priority",{"2":{"177":1}}],["prioritizing",{"2":{"142":1,"143":1,"145":1}}],["prioritize",{"2":{"112":1,"118":1,"151":1,"165":1,"166":1,"167":1,"173":1,"178":2}}],["prior",{"2":{"32":1,"177":1,"181":1}}],["pr",{"2":{"24":1}}],["prettify",{"2":{"181":1}}],["pretty",{"2":{"10":1,"52":1,"57":1,"58":2,"64":3,"90":1,"177":5,"178":1,"181":7}}],["predicts",{"2":{"169":1}}],["prediction",{"2":{"169":6}}],["predictions",{"2":{"169":2}}],["prerequisites",{"0":{"93":1}}],["pre",{"2":{"90":1,"103":1,"177":2,"181":1}}],["preprocessor",{"2":{"181":2}}],["preprocessed",{"2":{"181":1}}],["preprocess",{"2":{"177":1,"181":4}}],["prepayment",{"2":{"93":1}}],["preparing",{"2":{"118":1}}],["prepare",{"2":{"61":1,"62":1,"64":1,"181":2}}],["prepared",{"2":{"52":1,"178":1}}],["preparation",{"2":{"60":1,"63":1,"181":11}}],["prepend",{"2":{"85":1}}],["prepended",{"2":{"52":1,"177":2}}],["prefences",{"2":{"177":1}}],["prefer",{"2":{"41":1,"67":2,"90":1,"156":1,"166":1,"167":1,"177":2}}],["preferencesfor",{"2":{"177":1}}],["preferences",{"0":{"79":1},"2":{"23":2,"26":2,"37":1,"73":1,"79":3,"84":2,"177":38}}],["preference",{"2":{"0":1,"177":5}}],["prefix",{"2":{"52":3,"177":5}}],["preorderdfs",{"2":{"52":1,"178":3}}],["precedence",{"2":{"150":1,"154":1,"177":1}}],["preceding",{"2":{"2":1,"181":1}}],["precision",{"2":{"124":1,"150":1,"176":1}}],["precisely",{"2":{"150":2,"154":1,"158":1,"164":1}}],["precise",{"2":{"24":3,"103":1,"105":2,"148":1,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1}}],["precompile",{"2":{"73":1}}],["precompiled",{"2":{"73":1}}],["precompilation",{"2":{"73":3}}],["present",{"2":{"124":1,"151":1,"152":1,"177":4}}],["preserve",{"2":{"67":1,"177":1,"181":1}}],["preserving",{"2":{"67":2,"177":2}}],["preset",{"2":{"0":1,"177":3}}],["press",{"2":{"24":2}}],["prev",{"2":{"181":1}}],["previously",{"2":{"67":1,"87":1,"88":1,"103":1,"128":1,"177":1,"181":3}}],["previous",{"2":{"24":1,"52":4,"85":1,"95":1,"101":2,"115":1,"116":1,"128":2,"150":1,"154":1,"177":5,"178":5}}],["previews",{"2":{"177":2}}],["preview",{"2":{"13":2,"15":2,"24":3,"87":2,"177":10,"178":3}}],["prevent",{"2":{"11":1,"76":1,"177":1}}],["proxy",{"2":{"178":1}}],["proposed",{"2":{"178":1}}],["propertynames",{"2":{"177":5}}],["property",{"2":{"177":5,"181":6}}],["properties",{"2":{"52":2,"91":1,"106":3,"177":2,"178":1,"181":1}}],["proper",{"2":{"52":1,"177":1,"178":1,"181":3}}],["properly",{"2":{"8":1}}],["professional",{"2":{"138":1,"158":1}}],["proficient",{"2":{"24":2}}],["project",{"2":{"87":2,"89":1,"177":1}}],["projects",{"2":{"79":1}}],["prototyping",{"2":{"87":1}}],["programming",{"2":{"58":2,"140":1,"162":1}}],["programmatically",{"2":{"52":1,"177":1}}],["programmer",{"2":{"13":1,"24":4,"102":1,"140":1,"161":1,"163":1,"164":1,"165":1,"166":1,"167":1,"171":1,"172":1,"173":1,"177":2}}],["program",{"2":{"52":2,"86":2,"178":2}}],["promising",{"2":{"52":1,"178":1}}],["prompting",{"2":{"177":1}}],["promptingtools",{"2":{"0":2,"1":4,"10":2,"12":1,"13":2,"15":2,"19":1,"21":1,"22":1,"23":4,"24":11,"25":3,"26":3,"27":1,"28":1,"29":1,"30":1,"31":1,"32":3,"40":2,"41":1,"42":1,"43":4,"48":2,"52":13,"53":1,"55":1,"56":2,"58":1,"64":6,"65":1,"66":1,"67":7,"73":5,"78":1,"79":3,"81":3,"82":1,"84":1,"85":4,"86":1,"87":5,"88":1,"89":1,"90":8,"91":3,"93":1,"94":4,"97":1,"104":1,"105":6,"106":2,"177":519,"178":72,"179":4,"180":3,"181":283}}],["promptengineerfortask",{"0":{"148":1}}],["prompts",{"0":{"12":1,"13":1,"36":1,"46":1,"101":1},"2":{"12":1,"13":2,"14":1,"17":2,"24":5,"74":1,"75":1,"98":2,"101":1,"103":2,"177":8}}],["prompt",{"0":{"87":1,"90":1,"103":1},"2":{"10":2,"17":3,"23":2,"24":2,"27":2,"31":2,"37":3,"47":1,"52":3,"60":1,"74":2,"84":2,"86":2,"87":3,"90":3,"91":1,"95":1,"96":1,"98":1,"101":1,"103":2,"104":2,"106":8,"108":2,"110":2,"112":2,"113":2,"115":2,"116":2,"118":2,"119":2,"120":3,"122":2,"123":2,"124":2,"125":2,"126":2,"128":2,"129":2,"130":2,"132":2,"134":2,"135":2,"136":2,"138":2,"139":2,"140":2,"142":3,"143":3,"145":2,"147":5,"148":9,"150":3,"151":3,"152":1,"154":1,"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":2,"171":3,"172":3,"173":3,"175":3,"176":2,"177":241,"178":3,"181":3}}],["produce",{"2":{"47":1}}],["production",{"2":{"180":1}}],["product",{"2":{"7":1,"16":1,"67":3,"177":5}}],["prob",{"2":{"177":4}}],["probabilities",{"2":{"177":1}}],["probability",{"2":{"169":4,"177":2}}],["probably",{"2":{"1":1,"11":2}}],["problems",{"2":{"67":2,"128":1,"164":1,"166":1,"167":1,"172":1,"177":2}}],["problem",{"2":{"36":1,"140":1,"164":1,"166":1,"167":1}}],["processed",{"2":{"67":1,"177":2,"181":2}}],["processes",{"2":{"64":1,"67":1,"177":1,"178":1,"181":1}}],["processor=rt",{"2":{"64":1,"181":1}}],["processor",{"2":{"64":11,"181":24}}],["process",{"2":{"21":1,"51":1,"64":2,"65":1,"74":2,"86":2,"89":2,"124":1,"126":1,"177":7,"178":4,"181":8}}],["processing",{"2":{"8":1,"58":2,"64":1,"67":1,"86":1,"95":1,"105":1,"177":5,"178":1,"181":1}}],["pro",{"2":{"14":1,"43":1,"44":1,"72":1,"95":1,"96":2,"177":2}}],["provide",{"2":{"2":2,"4":1,"5":2,"6":1,"7":2,"10":4,"12":1,"18":1,"19":2,"21":1,"23":2,"26":2,"30":1,"32":1,"38":1,"46":1,"51":2,"52":11,"54":1,"57":1,"58":3,"60":1,"62":1,"64":5,"69":1,"73":1,"85":1,"87":1,"96":1,"100":1,"101":1,"103":2,"104":3,"106":6,"110":1,"112":1,"113":2,"115":3,"116":3,"118":1,"120":1,"124":1,"128":3,"136":1,"138":3,"139":4,"140":2,"147":1,"150":2,"156":1,"158":1,"160":1,"162":1,"177":49,"178":16,"181":12}}],["provides",{"2":{"2":1,"37":1,"48":1,"56":1,"65":1,"67":1,"112":1,"118":1,"151":1,"165":1,"166":1,"167":1,"173":1,"177":3,"178":3,"181":2}}],["provided",{"2":{"2":1,"7":1,"10":3,"15":1,"17":2,"20":1,"21":2,"24":2,"31":1,"49":1,"51":2,"52":7,"56":1,"58":2,"60":1,"63":3,"64":10,"66":1,"67":2,"87":1,"104":3,"105":1,"106":8,"108":2,"112":2,"113":2,"115":1,"116":1,"118":4,"119":9,"120":2,"122":2,"123":1,"125":1,"128":2,"130":1,"134":1,"135":3,"136":2,"138":1,"140":3,"142":1,"143":1,"145":1,"150":1,"152":2,"154":1,"156":2,"158":1,"160":1,"162":1,"164":2,"165":1,"169":2,"172":1,"173":2,"175":1,"176":1,"177":86,"178":14,"181":41}}],["provider",{"2":{"0":4,"27":2,"90":2,"99":1,"100":1,"105":1,"106":2}}],["providers",{"0":{"0":1,"99":1},"2":{"0":1,"23":1,"27":1,"64":1,"90":1,"98":2,"99":2,"106":1,"177":2,"181":4}}],["providing",{"0":{"38":1},"2":{"0":1,"27":1,"28":1,"31":1,"38":1,"49":2,"64":2,"151":1,"177":1,"178":2,"181":2}}],["v3",{"2":{"181":3}}],["vocab",{"2":{"181":10}}],["vocabulary",{"2":{"64":1,"124":1,"181":8}}],["voyage",{"2":{"177":4}}],["voyager",{"2":{"70":1}}],["v2",{"2":{"32":1,"64":1,"181":1}}],["v1",{"2":{"28":1,"30":1,"31":1,"73":2,"177":8,"181":2}}],["v0",{"2":{"28":1,"106":1}}],["vcat",{"2":{"12":1}}],["vscodedisplay",{"2":{"13":2,"24":2,"177":4}}],["vscode",{"2":{"11":1,"13":1,"24":1,"177":2}}],["vs",{"2":{"10":1,"52":2,"57":1,"64":1,"67":1,"98":1,"177":1,"178":2,"181":2}}],["vidid",{"2":{"177":2}}],["video",{"2":{"150":3,"151":1}}],["videos",{"2":{"150":2,"151":2}}],["vibrant",{"2":{"67":1,"177":2}}],["visible",{"2":{"176":1}}],["visits",{"2":{"178":6}}],["visit",{"2":{"75":1}}],["vision",{"2":{"10":1,"104":1,"177":4}}],["visualize",{"2":{"177":1}}],["visualization",{"2":{"58":1}}],["visual",{"0":{"174":1},"1":{"175":1,"176":1},"2":{"72":1,"93":1}}],["viewers",{"2":{"177":2}}],["view",{"2":{"52":1,"177":2,"178":1,"181":9}}],["via",{"0":{"79":1},"2":{"2":1,"6":1,"12":1,"16":1,"20":1,"23":2,"26":2,"28":1,"37":1,"52":2,"58":1,"60":1,"63":1,"64":2,"66":1,"73":1,"83":1,"93":1,"99":1,"106":3,"108":1,"115":1,"116":1,"135":1,"142":1,"143":1,"145":1,"177":20,"178":2,"181":9}}],["vect",{"2":{"181":2}}],["vectorstore",{"2":{"126":1}}],["vectors",{"2":{"64":1,"177":3,"181":5}}],["vectorized",{"2":{"7":1}}],["vector",{"2":{"4":1,"13":2,"16":1,"19":2,"24":3,"31":1,"40":4,"42":1,"52":3,"58":1,"61":1,"64":18,"67":13,"85":1,"86":1,"87":4,"89":1,"90":4,"91":1,"100":1,"103":1,"105":4,"106":1,"177":144,"178":5,"181":82}}],["ve",{"2":{"32":1,"37":1,"74":1,"83":1,"105":1}}],["vegetable",{"2":{"17":1,"177":2}}],["verification",{"2":{"181":1}}],["verify",{"2":{"177":1}}],["versus",{"2":{"181":1}}],["version=",{"2":{"87":1,"177":1}}],["versions",{"2":{"73":1,"91":1}}],["version",{"2":{"7":1,"13":2,"24":1,"37":1,"51":1,"52":1,"58":1,"64":1,"73":1,"83":1,"87":1,"96":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":2,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":2,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":9,"178":1,"181":3}}],["verbatim",{"2":{"152":3,"154":1}}],["verbosity",{"2":{"52":2,"64":1,"178":4,"181":2}}],["verbose=2",{"2":{"178":1}}],["verbose=true",{"2":{"64":1,"181":1}}],["verbose=false",{"2":{"52":1,"178":1}}],["verbose",{"2":{"4":1,"6":1,"7":2,"10":1,"13":1,"21":1,"51":1,"52":6,"64":16,"104":1,"177":30,"178":7,"181":68}}],["very",{"2":{"10":1,"18":2,"21":1,"66":1,"74":1,"83":1,"104":1,"119":2,"159":1,"161":1,"164":1,"166":1,"167":1,"168":1,"172":1,"177":2,"181":1}}],["vararg",{"2":{"177":2}}],["varying",{"2":{"177":1}}],["variety",{"2":{"23":1,"26":1,"138":1}}],["various",{"0":{"9":1},"1":{"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1},"2":{"52":1,"60":1,"96":1,"168":1,"178":1,"181":2}}],["variables",{"2":{"12":1,"13":1,"24":1,"29":1,"52":2,"73":1,"78":1,"87":1,"90":1,"94":1,"95":1,"96":1,"112":1,"166":1,"167":1,"177":33}}],["variable",{"0":{"78":1},"2":{"0":1,"30":1,"31":1,"52":2,"54":1,"78":3,"85":1,"90":1,"91":1,"93":3,"112":1,"140":1,"169":2,"177":12}}],["vanilla",{"2":{"106":1}}],["vanished",{"2":{"67":1,"177":1}}],["vast",{"2":{"67":1,"177":1}}],["valid",{"2":{"49":1,"64":1,"177":1,"178":1,"181":3}}],["validated",{"2":{"181":1}}],["validate",{"2":{"21":2,"51":1,"165":1,"173":1}}],["validation",{"0":{"21":1},"2":{"51":1}}],["value2",{"2":{"181":1}}],["value1",{"2":{"181":1}}],["value",{"2":{"7":2,"21":1,"51":1,"52":3,"112":1,"113":1,"166":1,"167":1,"169":2,"177":17,"178":8,"181":2}}],["values",{"2":{"6":1,"7":10,"52":1,"60":1,"112":1,"169":6,"177":6,"178":1,"181":6}}],["valuable",{"2":{"1":1}}],["vllm",{"2":{"0":1,"70":1,"177":1}}],["lucene",{"2":{"181":2}}],["l99",{"2":{"177":1}}],["l912",{"2":{"177":1}}],["l914",{"2":{"177":1}}],["l96",{"2":{"177":1}}],["l116",{"2":{"177":1}}],["l154",{"2":{"177":1}}],["l164",{"2":{"177":1}}],["l123",{"2":{"37":1}}],["lngpt3t",{"2":{"90":1}}],["l244",{"2":{"181":1}}],["l215",{"2":{"181":1}}],["l288",{"2":{"67":1,"177":1}}],["l252",{"2":{"67":1,"177":1}}],["llava",{"2":{"37":1}}],["llamaindex",{"2":{"115":1,"116":1,"123":1,"125":1}}],["llama123",{"2":{"37":3}}],["llama2",{"2":{"32":1,"34":1,"37":2,"83":1,"84":1,"177":2}}],["llama",{"0":{"28":1},"2":{"0":1,"25":1,"28":3,"29":6,"70":2,"98":1,"99":1,"177":6}}],["ll",{"2":{"21":1,"23":1,"26":1,"43":1,"45":1,"51":1,"52":1,"58":1,"75":1,"76":1,"83":1,"97":1,"106":3,"128":1,"177":2,"178":1}}],["llmtextanalysis",{"2":{"87":1}}],["llm",{"2":{"10":3,"11":1,"13":1,"19":1,"22":1,"24":1,"49":2,"52":5,"62":1,"64":2,"77":1,"98":1,"99":1,"104":4,"135":1,"177":8,"178":7,"181":3}}],["llms",{"2":{"10":1,"13":1,"19":1,"64":1,"82":1,"83":1,"101":2,"104":1,"106":1,"110":1,"177":2,"181":2}}],["lt",{"2":{"10":3,"32":1,"55":2,"61":1,"64":4,"67":1,"78":1,"83":1,"87":3,"93":1,"100":2,"101":1,"102":1,"103":3,"104":3,"106":1,"177":23,"178":1,"179":2,"181":31}}],["laptop",{"2":{"106":1}}],["launch",{"2":{"78":1,"83":1}}],["launching",{"2":{"78":1,"93":1}}],["launched",{"2":{"32":1}}],["latter",{"2":{"70":1}}],["latency",{"2":{"181":3}}],["latest",{"2":{"13":1,"15":1,"24":4,"28":1,"58":2,"71":1,"73":1,"83":1,"108":1,"115":1,"116":1,"128":1,"163":1,"171":1,"177":8,"178":1}}],["later",{"2":{"2":1,"4":1,"7":1,"13":1,"42":1,"76":1,"106":1,"177":2,"181":2}}],["lament",{"2":{"67":1,"177":1}}],["langchain",{"0":{"88":1},"2":{"67":3,"88":1,"126":1,"177":3}}],["languages",{"2":{"43":1,"58":1,"177":2}}],["language",{"2":{"10":1,"13":3,"14":3,"21":1,"22":1,"24":6,"49":1,"52":2,"58":6,"98":1,"99":1,"101":1,"104":1,"122":2,"124":1,"126":1,"162":2,"163":2,"164":2,"165":1,"166":2,"167":2,"171":2,"172":2,"173":1,"177":5,"178":2,"181":3}}],["lazily",{"2":{"52":1,"178":1}}],["lazy",{"2":{"10":4,"21":2,"49":5,"51":2,"52":5,"86":1,"104":6,"178":20,"180":1}}],["layers",{"2":{"28":1}}],["largeint",{"2":{"86":3}}],["large",{"2":{"22":1,"30":1,"52":1,"58":1,"64":1,"66":1,"67":1,"98":1,"99":1,"101":1,"165":1,"173":1,"177":2,"178":2,"181":9}}],["larger",{"2":{"7":5,"64":1,"66":1,"67":1,"96":2,"158":1,"177":3,"181":1}}],["last",{"2":{"21":3,"49":3,"51":4,"52":32,"75":1,"85":4,"86":4,"105":1,"106":2,"128":1,"177":30,"178":36,"181":5}}],["lastly",{"2":{"10":1,"52":1,"178":1,"181":1}}],["lake",{"2":{"19":2}}],["labeling",{"2":{"156":2}}],["labeled",{"2":{"152":1}}],["labels",{"2":{"18":1,"156":1,"175":1}}],["label",{"2":{"18":1,"134":3,"156":4,"169":3}}],["lawyer",{"2":{"7":4}}],["led",{"2":{"118":1}}],["leetcode",{"2":{"67":1,"177":1}}],["legend",{"2":{"58":1}}],["legacy",{"2":{"20":1,"177":2}}],["less",{"2":{"52":1,"158":1,"162":1,"178":1}}],["leveraging",{"2":{"177":2}}],["leverages",{"2":{"23":1,"26":1,"54":1,"106":1,"178":1}}],["leverage",{"2":{"13":1,"14":1,"21":1,"52":1,"58":1,"100":1,"106":1,"160":2,"162":2,"177":2,"178":1}}],["level",{"2":{"52":2,"60":3,"62":1,"64":2,"67":1,"162":1,"177":10,"178":4,"181":4}}],["leaves",{"2":{"178":2}}],["leave",{"2":{"162":1}}],["leaving",{"2":{"67":2,"177":2}}],["leadership",{"2":{"152":1}}],["leads",{"2":{"46":1,"177":2}}],["leaf",{"2":{"64":2,"181":2}}],["least",{"2":{"63":1,"64":1,"152":1,"177":3,"181":1}}],["learned",{"2":{"12":1,"105":1}}],["learning",{"2":{"10":1,"49":1,"52":1,"58":1,"104":1,"178":1}}],["lengths",{"2":{"181":1}}],["length=20",{"2":{"67":1,"177":1}}],["length=13",{"2":{"67":1,"177":1}}],["length=10000",{"2":{"67":2,"177":2}}],["length=10",{"2":{"64":1,"67":2,"88":1,"177":2,"181":3}}],["length",{"2":{"7":1,"8":1,"21":2,"24":1,"28":1,"51":2,"52":32,"58":1,"64":4,"66":7,"67":35,"88":1,"138":1,"177":47,"178":49,"181":30}}],["left",{"2":{"6":1,"7":12,"52":1,"177":1,"178":1}}],["letters",{"2":{"175":1,"181":1}}],["letter",{"2":{"128":1,"129":1}}],["let",{"2":{"1":1,"2":2,"3":1,"5":1,"6":2,"7":2,"12":1,"19":1,"20":1,"22":1,"23":1,"24":3,"26":1,"30":1,"32":1,"36":2,"43":1,"51":1,"52":8,"58":3,"62":1,"64":1,"67":1,"74":1,"85":1,"86":2,"87":1,"105":2,"106":7,"128":1,"129":1,"177":6,"178":9,"181":5}}],["lossless",{"2":{"181":1}}],["losses",{"2":{"178":1}}],["losing",{"2":{"36":1}}],["lot",{"2":{"65":1}}],["lower",{"2":{"52":3,"64":1,"67":1,"177":1,"178":3,"181":1}}],["lowercased",{"2":{"181":1}}],["lowercase",{"2":{"20":1,"52":2,"177":2,"178":2,"181":1}}],["low",{"2":{"52":1,"74":1,"177":8,"178":1,"181":5}}],["love",{"2":{"46":1}}],["loads",{"2":{"87":1,"177":5}}],["loading",{"2":{"64":1,"177":1,"181":1}}],["loaded",{"2":{"24":1,"78":1,"177":2,"181":2}}],["load",{"2":{"23":1,"24":6,"26":1,"56":1,"87":10,"103":1,"106":1,"177":35,"181":3}}],["longer",{"2":{"112":1,"158":1,"177":1,"181":1}}],["longest",{"2":{"66":6,"67":17,"177":17}}],["long",{"2":{"23":2,"24":1,"26":1,"27":1,"29":1,"52":3,"74":1,"177":1,"178":4}}],["location",{"2":{"19":3,"91":1}}],["localserver",{"2":{"177":1}}],["localserveropenaischema",{"2":{"0":1,"177":5}}],["localpreferences",{"2":{"79":1,"177":2}}],["locally",{"2":{"25":1,"38":1,"64":3,"70":1,"98":1,"99":1,"106":1,"177":2,"181":3}}],["localhost",{"2":{"23":1,"28":1,"62":3,"64":3,"177":8,"181":3}}],["local",{"0":{"32":1},"1":{"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1},"2":{"0":2,"23":1,"38":1,"52":1,"69":1,"73":1,"77":1,"84":1,"177":20,"178":1,"181":1}}],["logprobs",{"2":{"177":1}}],["logged",{"2":{"64":1,"181":1}}],["logging",{"0":{"91":1},"2":{"52":2,"64":5,"177":5,"178":6,"181":16}}],["logical",{"2":{"140":1}}],["logically",{"2":{"140":1}}],["logic",{"2":{"64":5,"67":1,"100":1,"105":1,"140":1,"177":8,"178":1,"181":9}}],["logit",{"2":{"10":1,"18":1,"104":1,"177":12}}],["logo",{"2":{"20":1,"177":2}}],["logs",{"2":{"10":1,"64":2,"104":1,"177":3,"181":4}}],["log",{"2":{"7":1,"11":1,"64":1,"91":2,"177":33,"181":1}}],["loose",{"2":{"181":1}}],["loosely",{"2":{"101":1,"103":1,"128":1}}],["look",{"2":{"64":1,"74":1,"88":1,"105":1,"177":1,"181":2}}],["looking",{"2":{"23":1,"26":1,"58":3,"178":1,"181":1}}],["looks",{"2":{"15":1,"52":1,"63":1,"103":1,"177":4,"181":2}}],["lookups",{"2":{"181":1}}],["lookup",{"2":{"2":2,"8":1,"124":1,"177":2,"181":3}}],["loop",{"2":{"7":1,"24":1,"74":1,"178":2}}],["lifting",{"2":{"106":1}}],["lifecycle",{"2":{"178":1}}],["life",{"2":{"29":1}}],["lightweight",{"2":{"181":1}}],["light",{"2":{"95":1,"106":1,"177":4}}],["libraries",{"2":{"58":1,"166":1,"167":1}}],["library",{"2":{"32":1,"83":1}}],["living",{"2":{"46":1,"177":1}}],["linux",{"2":{"168":3}}],["linuxbashexpertask",{"0":{"168":1}}],["links",{"2":{"177":6}}],["link",{"2":{"24":1,"32":1,"150":1,"177":1}}],["line",{"2":{"11":1,"24":1,"28":2,"78":1,"150":1,"151":1,"177":3,"181":1}}],["lines",{"0":{"2":1},"2":{"2":1,"52":3,"67":1,"177":9,"181":2}}],["linearalgebra",{"2":{"1":2,"16":2,"42":2,"56":1,"177":5,"181":5}}],["limitations",{"2":{"97":1,"177":2}}],["limits",{"0":{"76":1},"2":{"72":1,"74":4,"76":1,"177":2,"178":1}}],["limited",{"2":{"67":1,"169":1,"177":1}}],["limit",{"0":{"74":1},"2":{"14":1,"74":7,"76":4,"106":1,"177":7,"181":6}}],["listened",{"2":{"67":1,"177":1}}],["listed",{"2":{"7":2,"110":2}}],["list",{"2":{"10":1,"24":1,"32":2,"55":4,"57":1,"58":1,"67":1,"83":1,"104":1,"106":1,"128":3,"134":1,"136":1,"139":1,"140":1,"151":2,"177":23,"179":4,"181":12}}],["literate",{"2":{"8":1,"24":1,"42":1}}],["likely",{"2":{"10":2,"74":1,"77":1}}],["like",{"0":{"88":1},"2":{"2":2,"6":1,"7":2,"12":1,"13":1,"19":1,"21":1,"24":2,"25":1,"30":1,"31":1,"34":1,"37":2,"43":1,"46":1,"49":2,"51":1,"52":4,"60":1,"63":1,"64":3,"67":1,"85":1,"86":1,"87":5,"91":4,"96":1,"106":1,"112":1,"157":1,"165":1,"166":1,"167":1,"173":1,"177":24,"178":5,"181":10}}],["kw2",{"2":{"181":2}}],["kw",{"2":{"181":3}}],["kwarg",{"2":{"10":1,"52":1,"60":3,"73":1,"85":1,"104":1,"178":1,"181":4}}],["kwargs`",{"2":{"62":1}}],["kwargs=",{"2":{"20":1,"23":1,"27":1,"28":1,"32":2,"52":3,"58":1,"60":1,"91":1,"104":2,"106":2,"177":10,"178":3,"181":2}}],["kwargs",{"0":{"80":1},"2":{"0":2,"10":3,"21":2,"29":1,"51":2,"52":15,"58":2,"60":2,"62":22,"64":81,"87":1,"90":1,"91":2,"104":3,"106":2,"177":151,"178":33,"179":2,"181":150}}],["king",{"2":{"55":2,"179":2}}],["kinds",{"2":{"7":3}}],["knows",{"2":{"64":1,"100":1,"181":1}}],["knowing",{"2":{"17":1}}],["knowledge",{"2":{"13":1,"15":1,"24":4,"56":2,"108":1,"115":1,"116":1,"159":1,"161":1,"163":1,"168":1,"171":1,"177":2}}],["know",{"2":{"12":1,"23":1,"24":2,"26":1,"30":2,"31":1,"74":1,"86":1,"108":2,"115":2,"116":2,"166":1,"167":1,"177":1}}],["known",{"2":{"10":1,"43":1,"67":1,"88":1,"104":1,"177":4}}],["k=5",{"2":{"181":1}}],["k=5`",{"2":{"181":1}}],["k=100",{"2":{"64":1,"181":1}}],["k=",{"2":{"7":10}}],["k",{"2":{"2":1,"6":2,"7":3,"28":1,"32":1,"62":2,"64":7,"181":29}}],["kept",{"2":{"37":1}}],["keeping",{"2":{"178":1}}],["keeps",{"2":{"6":1,"177":2}}],["keep",{"2":{"2":1,"8":1,"21":1,"27":1,"28":1,"52":1,"112":1,"150":1,"151":1,"154":1,"177":1,"178":2,"181":3}}],["key1",{"2":{"177":1}}],["keylocal",{"2":{"177":1}}],["keypreset",{"2":{"177":1}}],["key=env",{"2":{"23":1,"26":1}}],["keywordsprocessor",{"2":{"64":1,"177":1,"181":6}}],["keywords",{"2":{"64":5,"112":1,"113":2,"124":3,"156":1,"177":1,"181":27}}],["keywordsindexer",{"2":{"64":1,"177":1,"181":4}}],["keyword",{"0":{"62":1,"80":1},"2":{"10":5,"12":1,"14":1,"15":1,"24":2,"38":2,"49":1,"52":5,"60":2,"62":2,"64":11,"74":1,"85":2,"87":1,"96":1,"103":1,"104":5,"113":1,"124":1,"147":1,"177":53,"178":11,"181":18}}],["keys",{"2":{"7":1,"23":1,"27":1,"58":1,"105":1,"106":1,"177":8,"181":10}}],["key",{"0":{"72":1,"73":3,"78":1,"79":1,"98":1},"1":{"99":1,"100":1,"101":1,"102":1,"103":1,"104":1},"2":{"0":3,"6":1,"7":9,"8":1,"23":5,"24":2,"26":2,"27":3,"29":3,"30":1,"31":1,"43":3,"52":2,"54":2,"55":4,"64":2,"72":3,"73":9,"78":10,"79":5,"93":12,"97":1,"98":1,"105":1,"106":2,"122":1,"123":1,"138":1,"142":1,"143":1,"145":1,"150":3,"151":5,"156":1,"166":3,"167":3,"175":2,"177":132,"178":3,"179":5,"181":17}}],["uct",{"2":{"177":1,"178":12}}],["ultimately",{"2":{"86":1}}],["u>",{"2":{"67":1,"177":6,"181":1}}],["u>promptingtools",{"2":{"67":1,"177":6,"181":1}}],["uint16",{"2":{"178":1}}],["uint64",{"2":{"40":2,"181":7}}],["uint8",{"2":{"40":1}}],["utils",{"2":{"67":1,"177":1}}],["utilized",{"2":{"112":1,"177":1}}],["utilizes",{"2":{"0":1}}],["utilizing",{"2":{"58":1}}],["utility",{"2":{"49":2,"66":1,"88":1,"105":1,"151":1,"177":6}}],["utilities",{"0":{"65":1},"1":{"66":1,"67":1},"2":{"21":1,"48":1,"49":2,"51":1,"52":1,"56":1,"64":1,"65":1,"66":1,"67":2,"178":2,"181":2}}],["ut",{"2":{"19":1}}],["unpack",{"2":{"181":4}}],["unhealthy",{"2":{"177":1}}],["unable",{"2":{"177":1}}],["unanswered",{"2":{"67":1,"177":1}}],["unbiased",{"2":{"156":1}}],["unchanged",{"2":{"181":1}}],["unclear",{"2":{"139":2,"181":1}}],["uncommon",{"2":{"124":1}}],["unfortunately",{"2":{"106":2}}],["unwraps",{"2":{"177":1,"178":1}}],["unwrapping",{"2":{"177":2}}],["unwrap",{"2":{"91":1,"177":11,"178":2}}],["unnecessary",{"2":{"88":1,"118":1,"126":1}}],["unexpected",{"2":{"76":1}}],["unexported",{"2":{"48":1,"56":1,"81":1}}],["unlock",{"2":{"104":1}}],["unlike",{"2":{"75":1,"181":1}}],["unless",{"2":{"67":1,"158":2,"166":2,"167":2,"177":2}}],["unspecified",{"2":{"177":6}}],["unspoken",{"2":{"67":1,"177":1}}],["unsuccessfully",{"2":{"52":1,"177":1}}],["unsafe",{"2":{"52":7,"177":7,"178":2}}],["unusable",{"2":{"32":1}}],["un",{"2":{"24":1,"32":1}}],["until",{"2":{"21":3,"51":2,"52":2,"74":1,"177":1,"178":1}}],["unique",{"2":{"64":1,"112":1,"177":10,"178":1,"181":8}}],["universal",{"2":{"52":1,"178":1}}],["union",{"2":{"19":3,"31":1,"52":11,"64":4,"67":1,"106":1,"177":80,"178":17,"181":35}}],["units",{"2":{"181":1}}],["unitrange",{"2":{"40":1}}],["unit",{"2":{"19":2,"77":1,"98":1,"102":1,"128":1,"165":2,"173":2,"177":1,"181":5}}],["unicode",{"2":{"1":2,"56":1,"181":3}}],["unknown",{"2":{"17":3,"135":2,"177":5}}],["underscores",{"2":{"181":1}}],["understood",{"2":{"90":1,"140":1}}],["understandable",{"2":{"119":1,"177":1}}],["understand",{"2":{"49":1,"52":1,"64":1,"97":1,"138":1,"140":1,"150":1,"151":1,"162":1,"177":2,"181":1}}],["understanding",{"0":{"80":1},"2":{"36":1,"97":1,"118":1,"138":1}}],["underlying",{"2":{"10":1,"24":1,"49":1,"52":1,"56":1,"104":1,"106":1,"156":1,"177":2,"178":2,"181":5}}],["under",{"2":{"2":1,"18":1,"23":1,"26":1,"28":1,"49":1,"58":1,"67":1,"87":2,"97":1,"105":2,"106":1,"177":7}}],["updating",{"2":{"177":1}}],["updates",{"2":{"58":1,"177":2,"178":2,"181":1}}],["updated",{"2":{"52":1,"177":1,"178":4}}],["update",{"2":{"20":1,"52":1,"73":1,"177":2,"178":1,"181":1}}],["upto",{"2":{"177":2}}],["upfront",{"2":{"62":1,"64":1,"181":1}}],["uppercase",{"2":{"181":1}}],["uppercased",{"2":{"112":1}}],["upper",{"2":{"52":2,"178":4}}],["uploads",{"2":{"20":1,"177":2}}],["upon",{"2":{"12":1,"52":3,"70":1,"151":1,"177":2,"178":2}}],["up",{"2":{"1":1,"8":1,"11":1,"15":1,"52":2,"54":1,"58":1,"63":1,"72":1,"75":1,"85":1,"86":1,"103":1,"105":1,"106":3,"108":1,"115":1,"116":1,"158":1,"177":2,"178":3,"181":5}}],["usable",{"2":{"98":1,"103":1}}],["usage",{"2":{"21":1,"47":1,"67":1,"71":1,"140":1,"177":2,"178":1}}],["usd",{"2":{"74":1}}],["usually",{"2":{"52":1,"73":1,"103":1,"177":4,"178":2}}],["usual",{"2":{"29":1,"30":2,"31":2}}],["us",{"2":{"10":1,"21":2,"49":2,"51":2,"52":1,"58":1,"71":1,"104":1,"178":1}}],["using",{"0":{"22":1,"23":1,"24":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"42":1,"96":1},"2":{"1":4,"5":1,"7":2,"8":2,"10":1,"23":1,"24":4,"27":1,"32":1,"37":1,"42":1,"56":2,"57":1,"58":4,"63":3,"64":7,"67":6,"81":1,"84":1,"87":1,"88":1,"93":1,"94":2,"104":1,"106":2,"110":1,"112":1,"118":1,"128":1,"151":4,"165":2,"169":1,"172":1,"173":2,"177":35,"178":8,"181":40}}],["uses",{"2":{"10":2,"11":1,"13":1,"28":1,"49":1,"64":1,"88":1,"104":2,"129":1,"177":9,"181":34}}],["useful",{"2":{"10":1,"15":1,"17":1,"21":1,"51":1,"52":4,"64":4,"67":3,"83":1,"104":2,"115":2,"116":1,"142":1,"143":1,"166":1,"167":1,"171":1,"172":1,"173":1,"177":14,"178":2,"181":16}}],["users",{"2":{"162":1,"177":1}}],["user=",{"2":{"87":1,"91":1,"103":1,"177":3}}],["usermessagewithimages",{"2":{"102":1,"177":5}}],["usermessage",{"2":{"10":1,"12":4,"24":5,"36":1,"46":1,"49":1,"52":2,"85":2,"87":2,"90":3,"98":2,"102":2,"103":2,"104":1,"105":2,"177":25,"178":14}}],["user",{"2":{"10":3,"12":2,"13":1,"15":1,"17":1,"24":1,"36":1,"46":1,"47":1,"49":1,"52":10,"56":1,"63":1,"87":3,"90":3,"98":1,"100":1,"102":3,"103":1,"104":3,"105":1,"106":5,"108":1,"110":1,"112":2,"113":1,"115":1,"116":1,"118":2,"119":4,"120":2,"122":2,"123":2,"124":3,"125":1,"126":3,"128":6,"129":2,"130":1,"132":2,"134":3,"135":1,"136":3,"138":10,"139":6,"140":11,"142":4,"143":4,"145":4,"147":5,"148":3,"150":2,"151":2,"154":2,"155":1,"156":2,"157":1,"158":6,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":5,"166":2,"167":2,"168":1,"169":1,"171":1,"172":1,"173":9,"175":1,"176":1,"177":48,"178":13}}],["used",{"2":{"6":2,"7":1,"15":4,"16":1,"17":2,"18":1,"52":2,"64":6,"67":4,"71":2,"85":1,"91":1,"98":1,"128":1,"129":1,"169":1,"177":85,"178":11,"181":25}}],["use",{"2":{"0":1,"1":1,"2":5,"7":2,"8":3,"10":3,"12":2,"13":4,"15":2,"16":1,"17":1,"18":3,"19":2,"20":1,"21":4,"22":2,"23":3,"24":8,"25":1,"26":2,"27":1,"28":1,"29":4,"30":4,"31":4,"32":1,"34":1,"37":1,"38":1,"41":1,"43":1,"44":1,"45":1,"51":4,"52":9,"54":1,"55":1,"56":1,"57":1,"58":1,"60":1,"61":1,"62":1,"63":1,"64":46,"67":7,"69":2,"71":4,"74":1,"77":2,"78":1,"79":1,"81":1,"82":1,"84":2,"85":3,"86":4,"87":6,"89":2,"91":2,"95":3,"96":4,"97":1,"100":1,"104":2,"105":3,"106":6,"128":4,"130":1,"150":9,"151":2,"156":1,"158":3,"159":1,"161":1,"162":1,"164":1,"166":1,"167":1,"168":1,"169":1,"175":1,"177":117,"178":19,"179":1,"181":85}}],["urls",{"2":{"102":1,"177":2}}],["url=env",{"2":{"29":1}}],["url=provider",{"2":{"27":1}}],["url=",{"2":{"23":1,"28":1,"177":2}}],["url",{"2":{"0":3,"10":1,"20":2,"23":1,"27":4,"38":1,"62":3,"64":4,"104":1,"177":43,"179":1,"181":7}}],["rules",{"2":{"181":1}}],["runtime",{"2":{"52":2,"178":2}}],["runs",{"2":{"52":2,"64":1,"73":1,"83":1,"177":2,"178":1,"181":3}}],["running",{"2":{"7":1,"22":2,"23":1,"24":1,"32":1,"58":1,"73":1,"83":3,"177":2,"178":1}}],["run",{"2":{"6":2,"7":3,"10":3,"14":1,"21":5,"22":1,"37":1,"49":3,"51":3,"52":10,"58":1,"61":1,"64":1,"73":1,"78":1,"79":1,"83":1,"86":2,"87":1,"90":5,"93":1,"96":1,"104":4,"106":2,"177":52,"178":31,"181":11}}],["ripple",{"2":{"67":1,"177":1}}],["river",{"2":{"67":1,"177":1}}],["right",{"2":{"7":11,"100":2,"106":2,"142":1,"177":1,"178":1,"181":4}}],["rm",{"2":{"24":1,"73":1}}],["rolls",{"2":{"181":1}}],["role=",{"2":{"177":8}}],["role",{"2":{"23":1,"27":1,"58":1,"90":2,"105":3,"151":1}}],["root",{"2":{"52":3,"64":5,"177":1,"178":11,"181":8}}],["robust",{"2":{"21":1,"69":1,"93":1,"104":1}}],["robustness",{"2":{"13":1,"49":1}}],["row",{"2":{"7":3}}],["rows",{"2":{"6":1,"7":18,"181":5}}],["roughly",{"2":{"98":1,"181":3}}],["routines",{"2":{"64":2,"181":2}}],["routing",{"0":{"18":1},"2":{"18":1,"134":1,"136":1,"177":3}}],["routed",{"2":{"136":1}}],["route",{"2":{"136":1}}],["router",{"2":{"10":1,"104":1,"136":1}}],["routes",{"2":{"0":1}}],["rounds=3",{"2":{"181":1}}],["rounds=5",{"2":{"178":1}}],["rounds",{"2":{"52":1,"106":1,"128":1,"178":18,"181":1}}],["round",{"2":{"7":2,"178":5}}],["raises",{"2":{"177":1}}],["raised",{"2":{"52":1,"152":1,"177":2}}],["rationale",{"2":{"181":2}}],["ratio",{"2":{"175":1,"178":1}}],["rating",{"2":{"6":1,"120":1,"181":3}}],["ratelimit",{"2":{"74":2}}],["rate",{"0":{"74":1},"2":{"74":3,"181":3}}],["rare",{"2":{"73":1}}],["radius",{"2":{"67":1,"177":6,"181":1}}],["raw=true",{"2":{"177":1}}],["raw",{"2":{"52":1,"55":2,"177":1,"179":2}}],["rand",{"2":{"52":2,"177":3,"181":4}}],["random",{"2":{"52":1,"177":3,"178":2}}],["range",{"2":{"30":1,"31":1,"67":1,"177":1}}],["ranked",{"2":{"181":5}}],["rankermodel",{"2":{"181":1}}],["ranker",{"2":{"181":1}}],["rankgptresult",{"2":{"177":1,"181":4}}],["rankgptreranker",{"2":{"177":1,"181":4}}],["rankgpt",{"2":{"110":3,"181":9}}],["rankings",{"2":{"181":2}}],["ranking",{"0":{"109":1},"1":{"110":1},"2":{"8":1,"60":1,"110":1,"177":1,"181":15}}],["rankanswer",{"2":{"7":1}}],["rank",{"2":{"6":1,"110":4,"177":5,"181":40}}],["ranks",{"2":{"2":1,"181":3}}],["ragjuliaqueryhyde",{"0":{"122":1}}],["ragjudgeanswerfromcontextshort",{"0":{"120":1}}],["ragjudgeanswerfromcontext",{"0":{"119":1},"2":{"6":1,"181":2}}],["ragwebsearchrefiner",{"0":{"116":1},"2":{"181":2}}],["ragextractmetadatalong",{"0":{"112":1}}],["ragextractmetadatashort",{"0":{"113":1},"2":{"64":1,"181":4}}],["ragrankgpt",{"0":{"110":1},"2":{"181":1}}],["ragresult",{"2":{"52":3,"58":3,"63":2,"64":6,"177":1,"181":19}}],["ragcreateqafromcontext",{"0":{"118":1},"2":{"64":1,"181":1}}],["ragconfig",{"2":{"58":1,"60":1,"62":1,"64":3,"177":1,"181":10}}],["ragcontext",{"2":{"6":1}}],["ragquerysimplifier",{"0":{"126":1}}],["ragquerykeywordexpander",{"0":{"124":1}}],["ragqueryoptimizer",{"0":{"125":1},"2":{"64":1,"181":3}}],["ragqueryhyde",{"0":{"123":1},"2":{"62":3,"64":1,"181":4}}],["ragdetails",{"2":{"64":1,"181":1}}],["raganswerrefiner",{"0":{"115":1},"2":{"64":2,"181":4}}],["raganswerfromcontext",{"0":{"108":1},"2":{"64":2,"181":4}}],["ragtoolsexperimentalext",{"2":{"181":1}}],["ragtools",{"0":{"1":1,"181":1},"1":{"2":1},"2":{"1":3,"10":1,"56":3,"60":1,"63":1,"64":6,"66":2,"177":138,"180":2,"181":280}}],["rag",{"0":{"1":1,"2":1,"56":1,"59":1,"61":1,"107":1},"1":{"2":1,"57":1,"58":1,"59":1,"60":2,"61":2,"62":3,"63":2,"64":1,"108":1},"2":{"1":3,"2":1,"6":1,"7":2,"8":1,"10":2,"56":3,"57":5,"58":3,"61":1,"63":1,"64":8,"104":1,"108":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"180":1,"181":22}}],["r",{"2":{"2":1,"21":2,"51":2,"52":1,"58":1,"105":1,"178":1,"181":2}}],["rt",{"2":{"1":1,"4":3,"6":1,"56":1,"64":3,"181":21}}],["rewritten",{"2":{"177":2}}],["rejected",{"2":{"175":1,"177":1}}],["reveal",{"2":{"169":1}}],["revisions",{"2":{"139":1}}],["revise",{"2":{"138":3,"139":3,"140":3}}],["revised",{"2":{"125":1,"128":1,"177":2}}],["reviewing",{"2":{"177":2}}],["review",{"2":{"4":1,"8":1,"49":1,"128":1,"129":1,"138":1,"139":1,"140":1,"169":1}}],["reorganization",{"2":{"138":1}}],["reuse",{"2":{"87":1}}],["recipient",{"2":{"177":4}}],["reciprocal",{"2":{"177":2,"181":8}}],["recall",{"2":{"128":1,"166":1,"167":2}}],["recognized",{"2":{"181":1}}],["recognizes",{"2":{"103":1}}],["recommended",{"2":{"177":2}}],["recommendation",{"2":{"67":1,"177":1}}],["recommend",{"2":{"67":2,"88":1,"177":2}}],["recorded",{"2":{"64":1,"177":1,"181":1}}],["recursive=true",{"2":{"73":1}}],["recursively",{"2":{"67":1,"177":1,"181":1}}],["recursivecharactertextsplitter",{"0":{"88":1},"2":{"67":3,"88":1,"177":3}}],["recursive",{"2":{"66":2,"67":8,"88":3,"128":1,"177":11,"181":1}}],["recent",{"2":{"177":2,"178":2}}],["recently",{"2":{"74":1}}],["receive",{"2":{"74":1,"76":1,"177":1,"181":2}}],["received",{"2":{"10":1,"52":1,"86":2,"104":1,"177":6,"178":1}}],["reception",{"2":{"42":1}}],["requested",{"2":{"128":1,"166":1,"167":1,"172":1,"177":1,"181":4}}],["request",{"2":{"74":2,"77":1,"85":2,"86":1,"98":1,"101":1,"103":1,"105":1,"106":3,"128":3,"129":2,"139":4,"140":6,"177":11}}],["requests",{"0":{"75":1},"2":{"55":1,"74":7,"75":3,"177":1,"179":2}}],["requirements",{"2":{"138":1,"139":1,"140":4,"142":1,"143":1,"145":1,"177":1,"181":1}}],["requirement",{"2":{"106":2}}],["required",{"2":{"56":1,"105":2,"106":7,"148":1,"177":9,"178":1,"181":6}}],["require",{"2":{"15":1,"118":1,"177":1}}],["requires",{"2":{"0":1,"29":1,"30":1,"31":1,"64":2,"65":1,"89":1,"122":1,"139":1,"177":8,"181":7}}],["removing",{"2":{"178":2,"181":1}}],["removes",{"2":{"177":6,"178":1}}],["remove",{"2":{"52":5,"67":1,"177":16,"178":4,"181":1}}],["reminder",{"2":{"166":1,"167":1}}],["remaining",{"2":{"74":2}}],["remembers",{"2":{"177":1}}],["remembered",{"2":{"177":1}}],["remember",{"2":{"2":1,"10":1,"24":1,"46":1,"49":1,"73":1,"87":1,"101":2,"104":1,"105":1,"138":1,"139":1,"140":1,"177":4}}],["reducing",{"2":{"64":1,"181":5}}],["reduces",{"2":{"181":2}}],["reduce",{"2":{"64":1,"181":4}}],["red",{"2":{"21":1,"51":1,"52":2,"58":1,"178":2}}],["real",{"2":{"178":5,"181":12}}],["really",{"2":{"19":1,"177":4}}],["react",{"2":{"177":1}}],["reach",{"2":{"100":1,"178":1}}],["reaching",{"2":{"67":1,"138":1,"177":1}}],["reasonable",{"2":{"181":3}}],["reasonably",{"2":{"181":1}}],["reason",{"2":{"177":9}}],["reasoning",{"2":{"142":3,"169":1,"177":1}}],["reader=",{"2":{"181":1}}],["reads",{"2":{"181":2}}],["readme",{"2":{"177":1}}],["readability",{"2":{"138":1}}],["ready",{"2":{"11":1,"83":1,"177":1,"180":1}}],["readtimeout",{"2":{"10":1,"104":1,"177":10}}],["read",{"2":{"4":1,"11":1,"24":1,"58":1,"75":1,"90":1,"106":5,"112":1,"120":1,"128":1,"129":1,"150":1,"152":1,"177":1,"181":1}}],["regarding",{"2":{"142":1,"143":1,"145":1}}],["regards",{"2":{"87":2,"177":2}}],["regardless",{"2":{"7":2}}],["region",{"2":{"43":1,"177":2}}],["regions",{"2":{"43":1,"177":3}}],["registration",{"2":{"29":1}}],["registry",{"2":{"23":1,"26":1,"32":2,"34":1,"37":1,"105":1,"177":29}}],["registers",{"2":{"177":1}}],["registering",{"2":{"177":3}}],["register",{"2":{"27":2,"28":2,"29":2,"30":2,"31":2,"37":1,"84":2,"91":3,"93":1,"103":1,"177":15,"181":1}}],["registered",{"2":{"23":1,"26":1,"30":1,"31":1,"87":1,"177":1}}],["regenerate",{"2":{"21":1,"51":1}}],["regex",{"2":{"19":1,"24":1,"64":1,"177":2,"181":6}}],["renders",{"2":{"177":3}}],["rendered",{"0":{"90":1},"2":{"90":1,"105":7,"177":2,"181":1}}],["render",{"2":{"13":1,"24":2,"90":6,"98":2,"100":1,"105":6,"177":20}}],["rendering",{"2":{"13":1,"90":4,"100":1,"177":5}}],["refresh",{"2":{"128":1,"177":3}}],["ref",{"2":{"67":1,"177":1}}],["refining",{"2":{"64":2,"181":5}}],["refines",{"2":{"178":1,"181":3}}],["refined",{"2":{"115":3,"116":3,"181":1}}],["refinements",{"2":{"178":1}}],["refinement",{"0":{"114":1},"1":{"115":1,"116":1},"2":{"181":2}}],["refiner",{"2":{"64":13,"181":24}}],["refine",{"2":{"61":1,"63":2,"64":4,"115":6,"116":6,"125":1,"177":3,"178":1,"181":15}}],["reflections",{"2":{"138":1,"139":2,"140":1}}],["reflection",{"2":{"128":1,"129":1,"138":4,"139":4,"140":4}}],["reflecting",{"2":{"67":1,"128":1,"151":1,"177":1}}],["reflects",{"2":{"120":1}}],["reflect",{"2":{"12":1,"138":1,"139":1,"140":1}}],["referring",{"2":{"181":1}}],["referred",{"2":{"7":1,"29":1}}],["refers",{"2":{"10":1,"28":1,"49":1,"104":1,"177":2,"178":1,"181":2}}],["references",{"0":{"52":1,"55":1,"64":1,"67":1},"2":{"52":1,"60":1,"124":1,"178":1,"181":3}}],["reference",{"0":{"177":1,"178":1,"179":1,"180":1,"181":1},"2":{"4":1,"10":1,"80":1,"88":1,"90":1,"118":3,"177":6,"181":12}}],["refer",{"2":{"0":1,"90":1,"128":1,"151":1,"177":6}}],["repetition",{"2":{"118":1}}],["repeats",{"2":{"128":2}}],["repeat",{"2":{"21":1,"51":1,"128":1,"150":1,"151":1,"158":1}}],["repeated",{"2":{"21":1,"51":1,"128":1}}],["repeatedly",{"2":{"10":1,"49":1,"104":1,"178":1}}],["report",{"2":{"177":1}}],["reports",{"2":{"64":1,"138":1,"181":1}}],["reported",{"2":{"47":1,"177":1}}],["rephrasing",{"2":{"64":6,"124":2,"125":1,"181":19}}],["rephrases",{"2":{"125":1,"126":1,"181":2}}],["rephraser",{"2":{"62":7,"64":11,"181":25}}],["rephrased",{"2":{"58":1,"63":1,"64":2,"124":1,"126":1,"181":9}}],["rephrase",{"2":{"8":1,"61":1,"62":2,"63":2,"64":1,"122":1,"123":1,"125":2,"126":1,"177":3,"181":14}}],["representation",{"2":{"181":1}}],["representative",{"2":{"7":1}}],["represented",{"2":{"177":2,"181":8}}],["represents",{"2":{"152":1,"177":3,"181":1}}],["representing",{"2":{"52":1,"64":3,"67":1,"119":1,"177":79,"181":3}}],["reply",{"2":{"52":1,"85":1,"95":1,"138":1,"139":1,"140":1,"177":3,"178":1}}],["repl",{"2":{"24":2,"58":1,"73":3,"81":1,"96":1,"177":1}}],["replaces",{"2":{"181":1}}],["replaced",{"2":{"67":1,"105":1,"177":3,"181":1}}],["replacements",{"2":{"90":1,"177":6}}],["replacement",{"2":{"67":4,"105":1,"177":8}}],["replace",{"2":{"12":1,"64":1,"66":2,"67":3,"90":1,"98":1,"103":2,"105":3,"177":5,"181":2}}],["rescore",{"2":{"181":8}}],["resized",{"2":{"177":4}}],["resize",{"2":{"177":5}}],["reserved",{"2":{"166":1,"167":1,"177":3}}],["reset",{"2":{"74":1,"177":1,"178":2}}],["resets",{"2":{"74":1}}],["researcher",{"2":{"152":1,"156":1}}],["research",{"2":{"58":1,"69":1,"112":1}}],["res",{"2":{"64":1,"181":1}}],["resolutions",{"2":{"177":1}}],["resolution",{"2":{"177":1}}],["resolved",{"2":{"177":1}}],["resolves",{"2":{"128":1}}],["resolve",{"2":{"64":1,"181":4}}],["resources",{"2":{"23":1,"26":1,"58":1,"71":1,"72":1,"76":1,"77":1,"78":2,"93":2}}],["respect",{"2":{"181":1}}],["respective",{"2":{"181":1}}],["respectively",{"2":{"52":1,"60":1,"67":1,"177":1,"178":2}}],["resp",{"2":{"177":2}}],["respond",{"2":{"10":1,"52":2,"85":1,"104":1,"110":1,"125":1,"134":2,"136":2,"178":3}}],["responses",{"0":{"86":1},"2":{"14":1,"24":1,"86":1,"105":1,"139":1,"152":10,"154":2,"177":5,"178":2}}],["response",{"2":{"7":1,"10":5,"49":1,"60":1,"63":5,"64":5,"74":1,"77":1,"85":4,"86":14,"95":1,"102":2,"104":5,"105":5,"106":8,"119":1,"128":1,"138":1,"139":2,"140":1,"165":1,"177":52,"178":1,"179":1,"181":8}}],["restrictive",{"2":{"166":1,"167":1}}],["restricted",{"2":{"6":1,"7":1}}],["restart",{"2":{"37":1,"52":1,"178":1}}],["rest",{"2":{"19":1,"55":1,"94":1,"101":1,"178":1,"179":1}}],["resulting",{"2":{"181":5}}],["results",{"2":{"7":10,"13":1,"19":1,"52":2,"55":8,"58":1,"63":1,"110":1,"115":1,"116":12,"122":1,"123":1,"125":2,"126":1,"129":2,"130":1,"177":1,"178":6,"179":8,"181":16}}],["result",{"2":{"2":1,"7":1,"52":3,"57":1,"58":7,"61":1,"62":2,"64":22,"104":2,"106":8,"177":30,"178":9,"181":70}}],["retain",{"2":{"177":2,"178":1}}],["retrive",{"2":{"60":1,"181":1}}],["retries=3",{"2":{"106":1}}],["retries=2",{"2":{"86":1}}],["retries`",{"2":{"52":1,"178":1}}],["retries",{"2":{"21":6,"51":3,"52":22,"106":2,"177":10,"178":26}}],["retrieving",{"2":{"125":1,"181":1}}],["retrievable",{"2":{"64":1,"181":1}}],["retrieval",{"0":{"1":1},"1":{"2":1},"2":{"1":1,"6":3,"7":5,"56":1,"60":2,"63":2,"64":13,"124":3,"126":1,"177":2,"180":1,"181":25}}],["retrieves",{"2":{"64":1,"181":1}}],["retriever=advancedretriever",{"2":{"64":1,"181":1}}],["retriever",{"2":{"61":1,"62":6,"64":35,"181":44}}],["retrieved",{"2":{"57":1,"60":1,"63":1,"64":1,"181":3}}],["retrieve",{"2":{"10":2,"57":2,"58":4,"60":2,"61":3,"62":1,"63":1,"64":14,"103":1,"177":1,"181":21}}],["retrying",{"2":{"21":1,"49":2,"52":7,"86":2,"106":1,"178":7}}],["retry",{"2":{"21":3,"49":1,"51":3,"52":15,"106":6,"177":10,"178":22}}],["retryconfig",{"2":{"21":3,"49":1,"51":3,"52":10,"177":1,"178":14}}],["returning",{"2":{"177":2,"181":1}}],["returned",{"2":{"95":1,"106":2,"177":12,"178":1,"181":3}}],["returns",{"2":{"7":7,"10":5,"18":3,"52":12,"64":11,"66":1,"67":5,"73":1,"104":5,"105":2,"138":1,"139":1,"140":1,"177":65,"178":16,"179":1,"181":47}}],["return",{"2":{"2":1,"6":2,"7":1,"10":4,"18":1,"19":4,"24":1,"31":1,"52":6,"55":1,"58":3,"60":2,"64":11,"67":1,"77":1,"85":5,"86":5,"90":4,"91":1,"104":5,"106":11,"115":2,"116":3,"177":86,"178":13,"179":1,"181":33}}],["reranking",{"2":{"63":1,"64":8,"181":16}}],["reranker",{"2":{"60":2,"64":8,"181":19}}],["reranked",{"2":{"58":1,"181":5}}],["rerank",{"2":{"2":2,"8":2,"60":3,"61":1,"63":2,"64":5,"177":2,"181":25}}],["reload",{"2":{"87":3,"177":2}}],["relentless",{"2":{"67":1,"177":1}}],["releases",{"2":{"180":1}}],["release",{"2":{"46":1}}],["relevancy",{"2":{"110":1,"177":1}}],["relevance",{"2":{"6":1,"110":2,"119":2,"138":1,"181":8}}],["relevant",{"2":{"2":1,"57":1,"58":1,"60":1,"61":2,"63":3,"64":7,"94":1,"110":1,"112":1,"116":1,"119":2,"120":1,"124":3,"125":1,"126":1,"148":1,"150":1,"151":1,"177":1,"178":2,"181":11}}],["related",{"2":{"13":1,"75":1,"118":1,"124":2,"152":1,"177":2,"181":2}}],["relational",{"2":{"7":1}}],["rely",{"2":{"0":1}}],["re",{"2":{"1":1,"2":3,"7":1,"8":1,"10":1,"12":1,"20":1,"22":2,"23":1,"24":11,"26":1,"29":1,"31":1,"36":1,"37":1,"46":1,"49":1,"58":1,"60":2,"62":1,"64":1,"67":2,"73":1,"75":1,"83":2,"91":2,"98":1,"102":1,"103":4,"104":1,"105":5,"106":3,"110":1,"112":1,"119":1,"120":1,"122":1,"129":1,"155":2,"159":1,"161":1,"162":1,"163":2,"168":1,"169":1,"171":2,"177":16,"178":1,"181":16}}],["gsk",{"2":{"177":1}}],["ggi",{"2":{"177":3}}],["gguf",{"2":{"28":1}}],["gnarled",{"2":{"67":1,"177":1}}],["glossy",{"2":{"177":1}}],["globally",{"2":{"49":1}}],["global",{"2":{"0":1,"37":1,"52":1,"177":3}}],["glittering",{"2":{"67":1,"177":1}}],["glasses",{"2":{"34":1}}],["glad",{"2":{"31":1}}],["gpu=99",{"2":{"32":2}}],["gpu",{"2":{"28":1,"32":1}}],["gpt4o",{"2":{"181":3}}],["gpt4v",{"2":{"20":2,"177":5}}],["gpt4",{"2":{"15":1,"95":1,"96":1,"177":3}}],["gpt4t",{"2":{"6":1,"7":2,"15":3,"17":1,"21":1,"51":1,"95":1,"177":5,"181":2}}],["gpt3t",{"2":{"105":1}}],["gpt3",{"2":{"15":1,"105":1,"177":5}}],["gpt",{"2":{"6":1,"7":1,"15":5,"91":4,"95":2,"96":1,"177":21,"181":5}}],["guidance",{"2":{"106":1}}],["guidelines>",{"2":{"173":2}}],["guidelines",{"2":{"138":1,"151":1,"158":3,"165":2,"166":1,"167":1,"173":1}}],["guides",{"2":{"75":1}}],["guide",{"0":{"83":1},"2":{"22":1,"36":1,"52":2,"58":2,"69":1,"78":2,"93":1,"165":1,"173":1,"177":2,"178":3}}],["guarantees",{"2":{"86":1}}],["guardian",{"2":{"67":1,"177":1}}],["guardrails",{"2":{"52":1,"178":1}}],["guessed",{"2":{"52":1,"178":1}}],["guesser",{"2":{"52":3,"178":3}}],["guesses",{"2":{"21":1,"51":1,"52":2,"178":2}}],["guess",{"2":{"21":1,"51":2,"52":31,"178":31}}],["guessing",{"2":{"21":1,"51":2,"52":1,"178":1}}],["g",{"2":{"19":1,"52":2,"110":1,"134":1,"136":1,"139":1,"177":4}}],["giraffe",{"2":{"177":7}}],["github",{"2":{"67":1,"73":1,"78":1,"93":1,"110":1,"177":6,"181":5}}],["gitignore",{"2":{"11":3}}],["give",{"2":{"24":1,"52":1,"70":1,"86":2,"178":1,"181":1}}],["given",{"2":{"19":2,"57":1,"64":2,"67":4,"74":1,"115":2,"116":2,"125":1,"134":2,"136":2,"139":1,"148":1,"152":1,"156":1,"160":1,"162":1,"164":1,"175":1,"177":29,"178":5,"181":8}}],["gives",{"2":{"5":1,"13":1,"98":1,"99":1,"115":1,"116":1,"177":2}}],["gracefully",{"2":{"177":6}}],["grammatical",{"2":{"138":1}}],["grammar",{"2":{"106":1,"138":1}}],["grasp",{"2":{"125":1}}],["granularity",{"2":{"58":1}}],["grab",{"2":{"52":1,"178":1}}],["gratefully",{"2":{"12":1}}],["grins",{"2":{"36":2}}],["group",{"2":{"86":1,"177":1,"181":4}}],["grow",{"2":{"12":1}}],["groq",{"2":{"0":1,"177":6}}],["groqopenaischema",{"2":{"0":1,"177":2}}],["greater",{"2":{"177":1,"181":1}}],["greatingpirate",{"2":{"87":5,"177":7}}],["great",{"2":{"11":1,"24":2,"67":2,"95":1,"157":2,"177":2}}],["gt",{"2":{"7":14,"10":3,"15":1,"21":3,"32":1,"37":2,"51":2,"52":4,"61":16,"64":9,"67":1,"78":1,"79":1,"83":1,"84":2,"87":3,"93":1,"96":2,"98":10,"100":1,"103":3,"104":3,"105":2,"106":5,"177":18,"178":7,"181":15}}],["gamma",{"2":{"177":1,"178":4}}],["game",{"2":{"21":1,"51":1,"52":2,"169":1,"178":2}}],["gaps",{"2":{"158":1}}],["gaze",{"2":{"67":1,"177":1}}],["gauge",{"2":{"24":1}}],["gave",{"2":{"12":1}}],["gain",{"2":{"6":1}}],["garbage",{"2":{"2":2}}],["goes",{"2":{"177":1}}],["goals",{"2":{"138":3,"139":1}}],["goal",{"2":{"125":1,"128":1,"177":2}}],["going",{"2":{"62":1,"106":1}}],["got",{"2":{"52":2,"177":1,"178":2}}],["gotchas",{"0":{"47":1},"2":{"52":1,"178":1}}],["good",{"2":{"4":1,"8":1,"13":1,"24":2,"52":1,"76":1,"86":1,"148":1,"165":1,"173":1,"177":3,"178":1,"181":5}}],["googlegenaipromptingtoolsext",{"2":{"177":1}}],["googlegenai",{"2":{"43":2,"177":1}}],["google",{"0":{"43":1},"1":{"44":1,"45":1,"46":1,"47":1},"2":{"0":1,"11":1,"43":3,"47":1,"70":1,"112":1,"177":9}}],["googleschema",{"2":{"0":1,"177":2}}],["golden",{"2":{"4":1,"8":1}}],["go",{"2":{"2":1,"12":1,"36":3,"64":1,"72":1,"76":1,"83":2,"93":2,"103":1,"165":1,"173":1,"181":2}}],["germany",{"2":{"181":2}}],["genai",{"2":{"77":1,"180":1}}],["gensym",{"2":{"64":2,"181":3}}],["genie",{"2":{"58":1}}],["general",{"0":{"146":1},"1":{"147":1,"148":1},"2":{"10":1,"23":1,"26":1,"104":1,"106":1,"112":1,"118":1,"151":2,"165":2,"166":1,"167":1,"173":3,"177":1}}],["generally",{"2":{"7":1,"106":1}}],["generator",{"2":{"61":1,"62":1,"64":24,"181":25}}],["generating",{"2":{"10":1,"48":1,"64":11,"104":1,"175":1,"177":16,"178":2,"181":20}}],["generativeai",{"2":{"53":1}}],["generative",{"2":{"1":1,"57":1,"65":1,"66":1}}],["generation",{"0":{"1":1,"33":1,"44":1},"1":{"2":1,"34":1,"35":1,"36":1,"37":1,"45":1,"46":1,"47":1},"2":{"1":1,"6":1,"51":1,"56":1,"60":2,"63":3,"64":3,"106":1,"118":1,"177":24,"178":2,"180":1,"181":7}}],["generated",{"2":{"6":1,"8":1,"10":5,"18":1,"24":1,"42":1,"49":1,"52":2,"57":1,"58":1,"64":5,"66":1,"67":1,"71":1,"95":1,"104":2,"118":2,"177":25,"178":2,"181":10}}],["generates",{"2":{"2":1,"10":1,"21":1,"63":3,"64":1,"104":1,"122":1,"123":1,"177":5,"181":4}}],["generate",{"0":{"4":1},"2":{"0":1,"2":1,"3":1,"7":1,"8":1,"10":4,"49":3,"52":1,"56":1,"57":3,"58":5,"60":2,"61":3,"63":2,"64":10,"66":2,"86":2,"87":1,"89":1,"93":1,"104":2,"106":3,"118":1,"122":1,"124":1,"139":1,"140":1,"148":1,"175":4,"177":24,"178":3,"181":18}}],["genericwriter",{"0":{"160":1}}],["generictopicexpertask",{"0":{"159":1}}],["generictranscriptcritic",{"0":{"139":1}}],["generic",{"2":{"4":1,"103":1,"118":1,"139":1,"155":1,"159":1,"160":1}}],["gestures",{"2":{"36":1}}],["getpropertynested",{"2":{"64":2,"177":1,"181":5}}],["getindex",{"2":{"52":1,"178":1}}],["getting",{"0":{"73":2,"74":1,"75":1,"92":1},"1":{"93":1,"94":1,"95":1,"96":1},"2":{"22":1,"150":1}}],["get",{"2":{"10":1,"21":1,"41":1,"43":1,"51":2,"52":3,"55":2,"56":1,"58":1,"61":5,"63":5,"64":11,"69":1,"72":2,"73":2,"78":1,"79":1,"83":1,"84":1,"85":1,"86":4,"93":1,"95":1,"104":1,"105":1,"106":2,"177":45,"178":4,"179":2,"181":57}}],["gemini",{"2":{"0":1,"43":3,"44":2,"45":3,"46":1,"47":1,"177":11}}],["tf",{"2":{"181":1}}],["td",{"2":{"181":1}}],["tp",{"2":{"181":1}}],["tpl=pt",{"2":{"87":1,"177":2}}],["tpl",{"2":{"24":1,"87":2,"90":2,"177":2}}],["tsang",{"2":{"178":1}}],["tldr",{"2":{"162":1,"175":6}}],["tl",{"2":{"34":1}}],["tmixtral",{"2":{"30":2,"106":2}}],["tmp",{"2":{"24":1}}],["tmps",{"2":{"13":1,"177":2}}],["typically",{"2":{"177":3}}],["typing",{"2":{"20":1,"177":2}}],["typed",{"0":{"86":1},"2":{"86":2,"94":1}}],["type=fruit",{"2":{"177":1}}],["type=food",{"2":{"10":1,"31":1,"104":1,"106":1}}],["type=maybetags",{"2":{"181":1}}],["type=manymeasurements",{"2":{"19":1,"177":2}}],["type=mymeasurement",{"2":{"177":4}}],["type=currentweather",{"2":{"19":1}}],["types",{"2":{"12":1,"52":2,"60":2,"61":4,"63":1,"64":7,"81":1,"84":1,"86":4,"102":1,"104":1,"106":4,"166":2,"167":2,"177":2,"178":2,"181":8}}],["type",{"2":{"6":1,"10":1,"11":1,"15":1,"19":2,"52":3,"57":1,"58":1,"60":2,"62":2,"63":1,"64":3,"86":2,"91":1,"95":1,"98":1,"104":1,"106":21,"128":1,"166":1,"167":1,"177":105,"178":8,"181":81}}],["tiktokenizer",{"2":{"177":1}}],["titles",{"2":{"150":2,"151":2}}],["title",{"2":{"150":2,"151":1,"156":1,"162":1,"175":2}}],["tiniest",{"2":{"130":1}}],["tinyrag",{"2":{"181":2}}],["tiny",{"2":{"23":3,"26":3,"177":2,"181":1}}],["tier",{"2":{"74":3,"177":2}}],["timing",{"2":{"52":1,"178":1}}],["timed",{"2":{"52":1,"178":1}}],["timeout",{"2":{"52":3,"177":8}}],["timestamp",{"2":{"150":2,"151":3,"177":4}}],["timestamps",{"2":{"150":3,"151":2}}],["times",{"2":{"21":1,"49":2,"51":1,"52":3,"87":1,"178":4}}],["time",{"2":{"3":1,"7":1,"10":1,"13":1,"21":1,"24":3,"31":1,"47":1,"51":1,"52":3,"67":1,"71":1,"77":2,"78":1,"84":1,"89":1,"98":1,"101":1,"103":1,"104":1,"177":29,"178":4,"180":1,"181":3}}],["tired",{"2":{"19":1}}],["tips",{"2":{"21":1,"67":1,"150":2,"151":2,"177":2}}],["tip",{"2":{"14":1,"67":1,"72":1,"95":1,"96":2,"113":1,"177":1}}],["tell",{"2":{"169":1}}],["tedious",{"2":{"84":1}}],["tens",{"2":{"77":1}}],["tenth",{"2":{"75":1}}],["tends",{"2":{"88":1}}],["tend",{"2":{"10":1,"67":1,"70":1,"84":1,"104":1,"177":1}}],["terms",{"2":{"112":1,"124":2}}],["term",{"2":{"56":1,"112":1,"181":1}}],["terminal",{"2":{"28":1,"32":1,"58":1,"66":1,"78":4,"83":1,"93":2}}],["testing",{"2":{"177":5}}],["testechoopenaischema",{"2":{"177":2}}],["testechoollamaschema",{"2":{"177":2}}],["testechoollamamanagedschema",{"2":{"177":2}}],["testechogoogleschema",{"2":{"177":2}}],["testechoanthropicschema",{"2":{"177":2}}],["test`",{"2":{"128":1,"165":3,"173":3}}],["tests>",{"2":{"173":2}}],["testset`",{"2":{"165":1,"173":1}}],["testsets",{"2":{"165":1,"173":1}}],["testset",{"2":{"52":1,"128":1,"165":2,"173":2,"177":1}}],["tests",{"2":{"52":4,"128":1,"165":4,"173":4,"177":5}}],["test",{"2":{"37":1,"52":2,"64":5,"165":14,"169":1,"173":14,"177":9,"181":11}}],["teacher",{"2":{"118":1}}],["teach",{"2":{"36":1}}],["technical",{"2":{"112":2,"124":1}}],["technically",{"2":{"28":1}}],["technique",{"2":{"89":1}}],["techniques",{"2":{"58":1}}],["technology",{"2":{"36":1,"156":1}}],["tempdir",{"2":{"177":1}}],["temporary",{"2":{"177":1}}],["temperature",{"2":{"19":1,"177":2,"178":2}}],["temperatureunits",{"2":{"19":2}}],["temperature=0",{"2":{"10":1,"52":3,"91":1,"104":3,"106":2,"177":3,"178":3}}],["templating",{"2":{"13":1,"96":1,"177":1}}],["template",{"0":{"87":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1},"2":{"13":5,"17":1,"20":1,"24":10,"52":1,"60":2,"62":5,"64":17,"87":13,"90":1,"91":1,"103":7,"105":4,"124":1,"128":1,"129":1,"130":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"150":1,"151":1,"152":1,"157":1,"158":1,"166":1,"167":1,"177":126,"178":9,"181":47}}],["templated",{"0":{"13":1},"2":{"17":1,"24":1}}],["templates=true",{"2":{"177":1}}],["templates",{"0":{"103":1,"107":1,"109":1,"111":1,"114":1,"117":1,"121":1,"127":1,"131":1,"133":1,"137":1,"141":1,"144":1,"146":1,"149":1,"170":1,"174":1},"1":{"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"171":1,"172":1,"173":1,"175":1,"176":1},"2":{"10":1,"13":2,"17":1,"24":13,"87":12,"90":2,"91":1,"96":1,"98":1,"103":3,"104":1,"177":48,"178":4}}],["text=",{"2":{"181":1}}],["text1",{"2":{"67":1,"177":1}}],["text2",{"2":{"67":2,"177":2}}],["texts",{"2":{"64":3,"67":2,"138":1,"177":2,"181":6}}],["textchunker",{"2":{"64":1,"177":1,"181":7}}],["textanalysis",{"2":{"8":1}}],["text",{"0":{"33":1,"44":1,"65":1},"1":{"34":1,"35":1,"36":1,"37":1,"45":1,"46":1,"47":1,"66":1,"67":1},"2":{"2":3,"8":1,"10":6,"16":1,"19":2,"20":1,"30":1,"31":2,"52":3,"58":1,"64":9,"65":2,"66":7,"67":41,"88":2,"102":1,"104":4,"106":1,"112":7,"113":6,"138":8,"158":4,"160":1,"162":1,"175":2,"176":1,"177":63,"178":1,"181":36}}],["trove",{"2":{"87":2,"177":2}}],["troubleshooting",{"2":{"32":1}}],["treated",{"2":{"177":2}}],["treasure",{"2":{"87":2,"177":2}}],["trees",{"2":{"52":1,"178":3}}],["tree",{"2":{"18":2,"21":2,"49":1,"52":7,"64":2,"67":1,"86":1,"177":7,"178":17,"181":4}}],["traced",{"2":{"177":2}}],["tracemessage",{"2":{"177":1}}],["trace",{"2":{"177":2}}],["tracers",{"2":{"177":3}}],["tracerschema",{"2":{"91":7,"177":17}}],["tracer",{"2":{"177":95}}],["tracermessagelike",{"2":{"177":2}}],["tracermessage",{"2":{"91":2,"177":10}}],["tracing",{"0":{"91":1},"2":{"91":2,"177":15}}],["tracked",{"2":{"177":1,"181":1}}],["tracker",{"2":{"64":9,"177":1,"181":28}}],["tracking",{"2":{"177":2,"178":1}}],["tracks",{"2":{"64":1,"177":1,"181":1}}],["track",{"2":{"64":5,"177":1,"178":1,"181":16}}],["trained",{"2":{"150":1,"151":1,"156":1}}],["train",{"2":{"71":1}}],["training",{"2":{"71":1,"177":1}}],["trail",{"2":{"67":1,"177":1}}],["transcripts",{"2":{"150":2,"151":2}}],["transcript",{"2":{"138":5,"139":6,"140":4,"150":7,"151":6,"156":6}}],["transcribe",{"2":{"20":2,"176":2,"177":8}}],["transformation",{"2":{"177":1}}],["transformations",{"0":{"121":1},"1":{"122":1,"123":1,"124":1,"125":1,"126":1},"2":{"123":1}}],["transform",{"2":{"64":1,"177":1,"181":2}}],["translate",{"2":{"14":1,"177":2,"181":6}}],["truncation",{"2":{"181":2}}],["truncates",{"2":{"178":1}}],["truncated",{"2":{"177":4,"181":1}}],["truncate",{"2":{"177":2,"178":2,"181":17}}],["truths",{"2":{"67":1,"177":1}}],["trusted",{"2":{"58":1}}],["true",{"2":{"4":1,"6":2,"7":1,"12":2,"17":3,"21":1,"40":1,"46":1,"51":1,"52":32,"55":1,"64":17,"86":4,"87":2,"90":2,"135":2,"177":106,"178":25,"179":1,"181":58}}],["tryparse",{"2":{"52":4,"86":2,"177":1,"178":4}}],["try",{"2":{"18":1,"31":1,"36":1,"52":2,"64":1,"87":1,"106":4,"108":1,"115":1,"116":1,"122":1,"123":1,"177":4,"178":1,"181":4}}],["trying",{"2":{"12":1,"36":1,"46":1,"49":1,"177":5,"178":1}}],["trial",{"2":{"181":1}}],["trims",{"2":{"177":1}}],["tries",{"2":{"177":1,"178":1,"181":3}}],["triple",{"2":{"128":1,"129":1,"152":1,"177":1}}],["trivially",{"2":{"86":1}}],["trigram",{"2":{"64":3,"177":1,"181":8}}],["trigrams",{"2":{"64":6,"66":4,"177":2,"181":23}}],["trigramannotater",{"2":{"64":4,"177":1,"181":10}}],["triggers",{"2":{"52":1,"106":1,"178":2}}],["triggered",{"2":{"49":1,"52":1,"178":1}}],["trigger",{"2":{"10":1,"49":1,"52":2,"104":1,"178":3}}],["trick",{"2":{"10":1,"18":1,"36":1,"104":1,"177":5}}],["tuning",{"2":{"89":1,"177":1}}],["tune",{"0":{"89":1}}],["tuned",{"2":{"31":1}}],["tuple",{"2":{"40":1,"177":34,"178":1,"181":5}}],["tuples",{"2":{"18":1,"166":1,"167":1,"177":5}}],["turn",{"0":{"85":1},"2":{"37":1,"46":2,"96":1,"177":2}}],["turbo",{"2":{"7":1,"15":3,"91":1,"95":2,"105":1,"106":2,"177":11}}],["tutorials",{"2":{"58":2}}],["tutorial",{"2":{"8":1,"72":1,"93":1,"94":1}}],["t",{"2":{"6":1,"8":1,"24":1,"27":1,"28":1,"30":1,"32":1,"34":1,"52":2,"84":1,"101":1,"106":2,"108":3,"112":1,"113":1,"115":5,"116":3,"118":1,"150":2,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"177":30,"178":5,"181":23}}],["tweak",{"2":{"2":2,"7":1,"52":2,"178":2}}],["two",{"0":{"2":1},"2":{"2":1,"5":4,"6":1,"7":7,"10":1,"16":1,"17":3,"21":1,"51":2,"52":2,"66":2,"67":2,"74":1,"86":5,"90":1,"105":1,"106":1,"128":1,"177":17,"178":4,"181":6}}],["taking",{"2":{"124":1,"126":1}}],["taken",{"2":{"177":2}}],["takes",{"2":{"74":1,"177":1}}],["take",{"2":{"7":1,"24":2,"100":1,"105":1,"129":1,"130":1,"150":1,"154":1,"172":1,"177":1,"178":1}}],["tapestry",{"2":{"67":2,"177":2}}],["target",{"2":{"64":2,"138":1,"160":1,"162":2,"169":2,"181":14}}],["tavilysearchrefiner",{"2":{"177":1,"181":6}}],["tavily",{"2":{"54":3,"55":1,"177":5,"179":5,"180":1,"181":3}}],["tall",{"2":{"19":2,"177":10}}],["tabular",{"2":{"13":1,"177":2}}],["table",{"2":{"7":2,"24":1,"77":1,"169":4}}],["tables",{"2":{"7":1}}],["task>",{"2":{"172":4}}],["tasked",{"2":{"124":1,"126":1}}],["task=",{"2":{"20":1,"177":2}}],["tasks",{"2":{"14":2,"15":1,"17":1,"19":1,"23":1,"26":1,"30":1,"37":1,"41":2,"45":1,"58":1,"64":2,"69":1,"96":1,"134":1,"136":1,"152":1,"157":1,"177":3,"178":1,"181":8}}],["task",{"0":{"149":1},"1":{"150":1,"151":1,"152":1},"2":{"11":1,"19":1,"24":1,"58":1,"89":1,"91":1,"102":1,"103":1,"106":3,"115":1,"116":1,"119":1,"122":1,"123":1,"124":2,"125":1,"126":1,"128":1,"129":1,"134":1,"136":1,"138":1,"139":1,"140":1,"147":1,"148":6,"156":1,"157":4,"164":7,"165":1,"166":6,"167":6,"169":5,"172":6,"173":1,"175":1,"176":4,"177":4}}],["tag2",{"2":{"64":1,"181":1}}],["tag1",{"2":{"64":1,"181":1}}],["tagging",{"2":{"64":2,"181":4}}],["tagger=opentagger",{"2":{"64":1,"181":1}}],["tagger",{"2":{"64":27,"181":43}}],["tag",{"2":{"2":1,"58":1,"63":1,"64":4,"181":30}}],["tags",{"2":{"2":3,"61":4,"63":8,"64":17,"142":2,"143":1,"172":3,"173":2,"177":9,"181":106}}],["tailored",{"2":{"1":1,"138":1,"148":1}}],["txtouterjoin",{"2":{"7":1}}],["txtrightjoin",{"2":{"7":1}}],["txtleftjoin",{"2":{"7":1}}],["txtinnerjoin",{"2":{"7":1}}],["txtin",{"2":{"7":1}}],["txtwe",{"2":{"7":1}}],["txtjulia",{"2":{"7":3}}],["txtdatabase",{"2":{"7":1}}],["txt",{"2":{"2":2,"5":1,"6":1}}],["toml",{"2":{"79":1,"177":2}}],["touches",{"2":{"63":1}}],["total",{"2":{"58":1,"64":6,"177":1,"178":1,"181":14}}],["toy",{"2":{"52":1,"106":1,"178":1}}],["tone",{"2":{"24":1,"138":2,"158":1}}],["took",{"2":{"52":1,"106":1,"178":1,"181":1}}],["too",{"0":{"75":1},"2":{"16":1,"42":1,"52":1,"67":1,"106":1,"118":1,"150":2,"166":1,"167":1,"177":5,"178":2}}],["tool",{"2":{"12":1,"21":1,"22":1,"106":4,"142":4,"177":14}}],["tools",{"0":{"48":1,"56":1},"1":{"49":1,"50":1,"51":1,"52":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1},"2":{"10":1,"57":1,"58":1,"67":2,"106":2,"177":4}}],["tokenizes",{"2":{"181":2}}],["tokenized",{"2":{"181":2}}],["tokenizers",{"2":{"181":1}}],["tokenizer",{"2":{"177":1}}],["tokenize",{"2":{"66":2,"177":1,"181":2}}],["tokens=",{"2":{"177":1}}],["tokens=2500",{"2":{"20":1,"177":2}}],["tokens",{"2":{"11":1,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"47":1,"64":2,"74":4,"77":1,"85":1,"95":2,"96":1,"177":62,"181":21}}],["token",{"2":{"10":1,"18":1,"29":1,"64":1,"77":1,"104":1,"177":53,"178":1,"181":11}}],["today",{"2":{"7":1,"22":1,"23":1,"26":1,"30":1,"35":1,"37":1,"85":1,"177":8}}],["topics",{"2":{"23":1,"26":1,"30":1,"31":1,"158":1}}],["topic",{"2":{"5":2,"6":1,"7":2,"156":6,"159":5,"162":5}}],["top",{"2":{"2":1,"6":2,"7":13,"52":1,"57":1,"58":1,"60":1,"62":4,"64":22,"84":1,"169":1,"177":5,"178":1,"181":46}}],["to",{"0":{"18":1,"85":1,"86":1,"87":1,"90":1},"2":{"0":1,"1":3,"2":11,"3":1,"4":2,"5":4,"6":5,"7":17,"8":2,"10":21,"11":13,"12":9,"13":6,"14":2,"15":4,"16":4,"17":3,"18":2,"19":6,"21":11,"22":1,"23":6,"24":20,"25":1,"26":5,"27":1,"28":6,"29":7,"30":3,"31":6,"32":7,"34":3,"35":2,"36":2,"37":6,"38":1,"41":1,"42":1,"43":1,"45":5,"46":6,"47":1,"48":1,"49":16,"51":11,"52":100,"54":3,"55":9,"56":6,"57":9,"58":20,"60":9,"61":1,"62":4,"63":14,"64":159,"65":1,"66":14,"67":43,"69":1,"70":1,"71":7,"72":2,"73":2,"74":4,"75":3,"76":4,"77":2,"78":5,"79":1,"81":2,"82":3,"83":3,"84":3,"85":8,"86":18,"87":17,"88":2,"89":4,"90":11,"91":6,"93":9,"94":1,"95":4,"96":2,"97":3,"98":3,"99":1,"100":9,"101":6,"103":6,"104":21,"105":7,"106":31,"108":2,"110":4,"112":3,"115":8,"116":8,"118":4,"119":5,"120":2,"122":4,"123":3,"124":3,"125":6,"126":1,"128":10,"129":5,"130":2,"134":2,"136":5,"138":10,"139":5,"140":7,"142":2,"143":1,"145":1,"148":2,"150":14,"151":10,"152":6,"156":1,"158":1,"159":1,"160":2,"161":1,"162":5,"164":1,"165":4,"166":2,"167":2,"168":1,"169":5,"172":1,"173":4,"175":2,"177":673,"178":146,"179":10,"180":3,"181":431}}],["together",{"0":{"30":1},"2":{"0":1,"2":1,"5":3,"6":1,"7":3,"19":1,"30":3,"47":1,"64":1,"70":1,"91":1,"97":1,"106":6,"112":1,"177":7,"181":2}}],["togetheropenaischema",{"2":{"0":1,"30":2,"106":1,"177":2}}],["thomsonsampling",{"2":{"178":1}}],["thompson",{"2":{"178":3}}],["thompsonsampling",{"2":{"177":1,"178":6}}],["thoroughly",{"2":{"118":1}}],["thought",{"2":{"142":1,"164":1,"166":1,"172":1}}],["though",{"2":{"106":1}}],["those",{"2":{"58":1,"64":1,"95":1,"142":1,"143":1,"145":1,"151":1,"177":2,"181":1}}],["than",{"2":{"28":1,"64":2,"67":2,"96":2,"106":1,"128":1,"158":1,"177":7,"181":8}}],["thanks",{"2":{"103":1,"178":2}}],["thank",{"2":{"12":1}}],["that",{"2":{"0":2,"3":1,"5":1,"6":3,"7":15,"10":2,"13":2,"15":3,"16":1,"18":1,"19":1,"21":4,"22":3,"23":3,"24":6,"26":2,"32":2,"37":2,"43":1,"47":2,"48":1,"49":5,"51":4,"52":22,"54":1,"56":2,"58":1,"60":3,"62":3,"63":1,"64":23,"67":6,"69":1,"72":1,"74":4,"75":1,"83":3,"85":2,"86":1,"87":1,"89":1,"90":2,"91":1,"93":1,"94":1,"97":1,"98":3,"99":2,"100":1,"101":2,"103":4,"104":3,"105":2,"106":10,"108":1,"110":1,"115":2,"116":2,"118":2,"120":1,"122":3,"123":2,"124":5,"126":1,"128":1,"134":2,"136":3,"138":1,"139":1,"140":3,"148":2,"150":3,"151":1,"152":2,"156":1,"158":1,"160":1,"162":2,"164":1,"166":2,"167":2,"169":2,"172":1,"175":1,"177":94,"178":25,"180":1,"181":68}}],["third",{"2":{"21":1,"51":1,"52":1,"178":1}}],["think",{"2":{"99":1,"106":1,"128":1,"129":2,"130":1,"160":1,"162":1,"164":1,"165":1,"172":1,"173":1,"177":2,"181":1}}],["thinking",{"2":{"21":2,"51":2,"52":3,"178":3}}],["things",{"2":{"12":1,"46":1}}],["this",{"0":{"6":1},"2":{"0":2,"1":2,"2":1,"3":1,"4":1,"6":2,"7":2,"8":1,"10":1,"11":2,"13":1,"17":1,"21":2,"24":3,"32":1,"36":2,"42":1,"43":1,"46":1,"49":2,"52":10,"54":2,"58":1,"60":1,"62":2,"64":6,"65":1,"67":4,"71":1,"73":2,"74":1,"75":2,"78":1,"87":1,"91":1,"93":1,"94":1,"97":2,"102":1,"104":1,"105":2,"106":2,"122":1,"124":4,"125":1,"126":1,"128":1,"129":1,"130":1,"140":1,"150":2,"151":2,"152":3,"166":2,"167":2,"169":2,"177":72,"178":15,"180":2,"181":32}}],["throw==false",{"2":{"52":1,"178":1}}],["throw=true",{"2":{"52":2,"178":2}}],["thrown",{"2":{"52":1,"73":1,"178":1}}],["throw",{"2":{"52":4,"106":1,"178":4}}],["throughout",{"2":{"94":1}}],["through",{"2":{"0":1,"7":1,"11":1,"46":1,"52":1,"67":1,"97":1,"112":1,"164":1,"165":1,"172":1,"173":1,"177":5,"178":3,"181":2}}],["thread",{"2":{"85":1,"91":2,"177":21}}],["threads`",{"2":{"58":1}}],["threads",{"2":{"41":1,"64":7,"177":1,"181":28}}],["threshold",{"2":{"64":1,"181":4}}],["three",{"2":{"12":1,"17":1,"60":1,"66":1,"84":1,"86":1,"138":2,"139":2,"140":2,"177":4,"181":3}}],["then",{"2":{"10":2,"11":1,"12":1,"19":1,"28":1,"32":1,"42":1,"52":2,"60":1,"63":1,"64":4,"67":1,"85":1,"86":2,"87":2,"91":1,"97":1,"104":1,"105":2,"177":11,"178":1,"181":13}}],["theory",{"2":{"7":1,"169":1}}],["their",{"2":{"7":2,"10":1,"23":1,"26":1,"31":1,"52":1,"58":2,"64":3,"67":1,"71":1,"100":1,"104":1,"110":3,"113":1,"134":1,"136":1,"138":1,"139":1,"177":8,"178":2,"181":12}}],["there",{"2":{"7":2,"19":1,"23":3,"24":1,"26":2,"27":1,"30":1,"31":1,"32":1,"34":2,"35":1,"36":1,"37":2,"45":1,"52":5,"54":1,"63":1,"64":2,"66":1,"67":3,"69":1,"70":1,"73":1,"83":1,"84":1,"90":2,"99":1,"100":1,"102":1,"103":1,"105":2,"128":2,"129":1,"158":1,"177":15,"178":5,"181":4}}],["themselves",{"2":{"177":1}}],["themed",{"2":{"156":1}}],["theme",{"0":{"153":2,"154":2},"1":{"155":2,"156":2,"157":2,"158":2,"159":2,"160":2,"161":2,"162":2,"163":2,"164":2,"165":2,"166":2,"167":2,"168":2,"169":2,"170":2,"171":2,"172":2,"173":2},"2":{"152":6,"156":7}}],["themes",{"2":{"152":5,"156":1,"175":1}}],["them",{"2":{"2":4,"3":1,"6":1,"7":1,"8":1,"10":1,"12":1,"16":1,"21":1,"23":2,"24":6,"26":1,"27":1,"32":1,"47":1,"52":4,"58":1,"60":1,"62":1,"64":5,"66":1,"67":3,"77":1,"99":1,"103":1,"104":1,"106":1,"128":1,"150":3,"165":1,"166":1,"167":1,"169":1,"173":1,"177":19,"178":4,"181":6}}],["they",{"2":{"1":1,"10":1,"20":1,"21":2,"23":2,"24":2,"26":1,"27":1,"52":4,"64":1,"66":1,"101":1,"104":2,"106":1,"139":1,"150":1,"151":1,"154":2,"169":2,"177":8,"178":4,"181":3}}],["these",{"2":{"0":1,"10":1,"15":1,"32":1,"52":1,"58":3,"64":2,"67":1,"74":1,"104":1,"112":1,"118":1,"119":1,"138":1,"140":2,"142":1,"143":1,"145":1,"151":3,"160":1,"162":1,"177":3,"178":1,"181":3}}],["the",{"0":{"7":1,"75":1,"78":1,"79":1,"80":1,"84":1,"90":1},"2":{"0":12,"1":4,"2":24,"3":3,"4":2,"5":7,"6":9,"7":91,"8":6,"10":39,"11":11,"12":8,"13":12,"14":2,"15":7,"16":5,"17":5,"18":6,"19":10,"20":7,"21":22,"22":5,"23":16,"24":49,"25":1,"26":9,"27":8,"28":12,"29":6,"30":4,"31":9,"32":4,"34":1,"36":6,"37":3,"38":3,"40":1,"41":1,"43":3,"44":2,"45":3,"46":5,"47":5,"48":1,"49":33,"51":21,"52":194,"53":1,"55":15,"56":9,"57":13,"58":48,"60":34,"61":2,"62":6,"63":29,"64":247,"65":1,"66":14,"67":98,"69":3,"70":3,"71":5,"72":3,"73":15,"74":11,"75":3,"76":1,"77":4,"78":7,"79":2,"81":1,"82":2,"83":3,"84":4,"85":19,"86":18,"87":20,"88":3,"89":4,"90":19,"91":14,"93":6,"94":4,"95":14,"96":8,"97":5,"98":9,"99":4,"100":9,"101":5,"102":13,"103":9,"104":37,"105":35,"106":75,"108":6,"110":10,"112":10,"113":3,"115":26,"116":32,"118":17,"119":20,"120":5,"122":6,"123":6,"124":11,"125":7,"126":4,"128":31,"129":12,"130":2,"134":6,"135":2,"136":13,"138":21,"139":19,"140":26,"142":6,"143":4,"145":3,"147":1,"148":4,"150":14,"151":20,"152":17,"154":1,"155":1,"156":8,"158":15,"159":2,"160":7,"161":1,"162":9,"163":3,"164":5,"165":12,"166":6,"167":7,"168":1,"169":22,"171":4,"172":6,"173":13,"175":9,"176":2,"177":1285,"178":339,"179":16,"180":3,"181":839}}],["f1",{"2":{"181":2}}],["fn",{"2":{"177":2}}],["ffs",{"2":{"128":1,"129":1}}],["f2",{"2":{"52":2,"178":2,"181":2}}],["fmixtral",{"2":{"31":2}}],["f",{"2":{"21":2,"31":1,"51":2,"52":11,"106":1,"166":1,"167":1,"177":6,"178":16}}],["fences",{"2":{"177":2}}],["fence",{"2":{"128":1,"129":1,"177":2}}],["fear",{"2":{"36":1}}],["features",{"2":{"77":1,"140":1,"169":4}}],["feature",{"2":{"17":1,"21":1,"169":7,"177":1}}],["february",{"2":{"177":1}}],["feb",{"2":{"31":1,"47":1}}],["feedbackfromevaluator",{"0":{"132":1},"2":{"178":3}}],["feedback",{"0":{"131":1},"1":{"132":1},"2":{"21":6,"49":6,"51":8,"52":55,"86":2,"106":5,"128":9,"129":4,"130":4,"132":5,"177":4,"178":125}}],["feel",{"2":{"23":1,"26":1,"31":1,"37":1,"45":1,"57":1,"66":1}}],["feels",{"2":{"12":1}}],["feelings",{"2":{"12":1,"36":2,"46":2,"177":8}}],["fewer",{"2":{"181":1}}],["few",{"2":{"2":2,"6":1,"11":1,"128":1,"150":1,"158":1,"177":3,"178":2}}],["flexibility",{"2":{"178":1}}],["flexible",{"2":{"52":2,"56":1,"177":1,"178":2}}],["fleming",{"2":{"118":3}}],["flowed",{"2":{"67":1,"177":1}}],["flow",{"2":{"61":4,"64":2,"86":1,"177":5,"181":3}}],["flows",{"2":{"46":1}}],["float",{"2":{"177":1,"181":5}}],["float32",{"2":{"58":4,"181":5}}],["float64",{"2":{"16":1,"19":1,"22":2,"40":2,"41":2,"42":2,"64":13,"177":20,"178":1,"181":35}}],["float64int64float64dict",{"2":{"7":1}}],["flashrank",{"2":{"181":4}}],["flashranker",{"2":{"177":1,"181":3}}],["flag",{"2":{"86":1,"177":3,"178":2,"181":10}}],["flags",{"2":{"15":1,"95":1}}],["flavors",{"2":{"10":1,"49":1,"104":1}}],["flavor",{"2":{"0":1,"177":2,"181":1}}],["fruit",{"2":{"177":2}}],["friendly",{"2":{"30":1,"158":2}}],["francisco",{"2":{"19":1}}],["france",{"2":{"15":1,"64":2,"95":3,"105":4,"181":7}}],["frameworks",{"2":{"58":1}}],["frame",{"2":{"7":8}}],["frames",{"2":{"6":1,"7":7}}],["frequencies",{"2":{"181":1}}],["frequently",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"32":1,"177":1}}],["free",{"2":{"23":1,"26":1,"31":2,"37":1,"45":1,"47":1,"57":1,"66":1,"70":1,"74":2,"75":1,"77":1,"177":5,"181":1}}],["freedom",{"2":{"12":1}}],["french",{"2":{"14":1,"91":1,"177":3}}],["from",{"0":{"74":1,"81":1},"2":{"2":5,"3":1,"6":2,"7":13,"8":1,"10":6,"11":2,"12":2,"19":2,"20":1,"23":1,"25":1,"26":1,"31":1,"32":2,"36":1,"43":1,"46":1,"49":1,"51":1,"52":15,"55":2,"56":1,"57":4,"58":2,"60":2,"61":1,"63":2,"64":17,"66":2,"67":2,"72":1,"78":1,"81":2,"85":1,"86":1,"93":1,"95":1,"102":3,"104":4,"105":1,"106":6,"112":1,"113":2,"115":1,"116":4,"118":2,"119":3,"120":1,"122":1,"123":1,"124":1,"125":1,"126":2,"128":2,"132":2,"134":1,"136":1,"140":1,"148":1,"150":1,"151":1,"152":3,"158":1,"166":1,"167":1,"169":2,"176":1,"177":79,"178":29,"179":2,"181":57}}],["favors",{"2":{"178":1}}],["favorite",{"2":{"83":1,"91":1}}],["far",{"2":{"178":2}}],["fairly",{"2":{"177":1}}],["fail",{"2":{"52":1,"177":4,"178":3}}],["failure",{"2":{"21":1,"49":3,"51":1,"52":1,"178":3}}],["failures",{"2":{"21":1,"51":1,"52":2,"177":3,"178":1}}],["fails",{"2":{"21":3,"49":1,"51":3,"52":2,"177":7,"178":3}}],["failedresponse",{"2":{"86":3}}],["failed",{"2":{"7":2,"19":1,"52":1,"86":2,"177":3,"178":1,"181":1}}],["famous",{"2":{"162":1}}],["familiar",{"2":{"1":1}}],["faq",{"2":{"71":1,"93":1,"103":1}}],["fallback",{"2":{"177":7}}],["falls",{"2":{"52":1,"178":1}}],["fall",{"2":{"52":3,"178":3}}],["false`",{"2":{"52":1,"178":1}}],["false",{"2":{"2":1,"7":2,"17":2,"21":1,"51":1,"52":13,"55":3,"64":2,"135":2,"177":53,"178":14,"179":3,"181":16}}],["fahrenheit",{"2":{"19":1}}],["faster",{"2":{"21":1,"28":1,"41":1,"51":1,"52":1,"64":1,"178":1,"181":1}}],["fast",{"2":{"18":1,"28":1,"177":1,"181":1}}],["face",{"2":{"37":1}}],["facilitating",{"2":{"177":2}}],["facilitate",{"2":{"10":1,"49":1,"52":1,"63":1,"104":1,"177":2,"178":1}}],["facing",{"2":{"15":1}}],["facts",{"2":{"167":1}}],["fact",{"2":{"10":1,"17":1,"49":1,"104":1}}],["focused",{"2":{"128":1,"151":1,"162":1}}],["focus",{"2":{"124":1,"158":1,"169":1,"177":2,"178":1}}],["focusing",{"2":{"58":1,"138":1}}],["four",{"2":{"17":1,"86":2,"177":2}}],["foundation",{"0":{"29":1},"2":{"29":1,"177":3}}],["found",{"2":{"7":1,"52":2,"64":2,"81":1,"177":22,"178":1,"181":6}}],["food",{"2":{"10":1,"31":5,"104":1,"106":24}}],["footers",{"2":{"2":1}}],["follow",{"2":{"85":1,"128":1,"129":1,"138":2,"139":2,"140":2,"150":2,"152":1,"154":1,"158":4,"164":2,"169":1,"172":1,"177":1}}],["followed",{"2":{"24":1,"64":1,"181":1}}],["follows",{"2":{"7":1,"48":1,"53":1,"56":1,"115":1,"128":1,"177":1,"181":3}}],["following",{"2":{"5":1,"7":2,"11":1,"17":1,"24":1,"52":1,"58":2,"66":1,"81":1,"88":2,"94":1,"98":1,"115":1,"116":1,"129":1,"158":1,"177":8,"178":2,"181":1}}],["folder",{"2":{"2":1,"11":3,"13":1,"87":4,"177":4}}],["forget",{"2":{"177":1,"181":1}}],["forward",{"2":{"177":1}}],["forwarded",{"2":{"64":12,"181":16}}],["forbidden",{"2":{"165":1,"173":1}}],["forum",{"2":{"76":1}}],["forefront",{"2":{"69":1}}],["forever",{"2":{"67":1,"177":1}}],["formulate",{"2":{"118":1}}],["form",{"2":{"71":1,"177":1,"181":10}}],["former",{"2":{"67":1,"177":1}}],["forms",{"2":{"52":1,"178":1,"181":1}}],["format=",{"2":{"177":2}}],["format=dict",{"2":{"106":2}}],["formatting",{"2":{"51":1,"63":1,"90":1,"142":1,"143":1,"145":1,"150":1,"151":1,"152":1,"158":1,"176":1,"181":3}}],["formatted",{"0":{"141":1,"170":1},"1":{"142":1,"143":1,"171":1,"172":1,"173":1},"2":{"0":2,"89":1,"90":1,"100":1,"105":1,"106":1,"142":1,"143":1,"152":1,"171":1,"172":1,"173":1,"178":1,"181":1}}],["format",{"2":{"10":1,"21":1,"51":1,"52":2,"63":1,"86":1,"89":2,"100":1,"102":1,"104":1,"105":2,"106":3,"110":1,"113":1,"128":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"150":1,"151":1,"152":2,"156":2,"158":3,"160":1,"162":2,"177":10,"178":2,"181":1}}],["forth",{"2":{"36":1}}],["fortunately",{"2":{"6":1,"106":1}}],["forces",{"2":{"142":1}}],["force=true",{"2":{"73":1}}],["force",{"2":{"12":1,"18":1,"24":1,"36":1,"46":2,"73":2,"177":3}}],["for",{"0":{"40":1,"77":1,"78":1,"83":1,"105":1,"106":1,"178":1,"179":1,"180":1,"181":1},"2":{"0":5,"2":6,"3":1,"4":2,"5":1,"6":2,"7":14,"8":1,"10":9,"12":2,"13":2,"14":2,"15":2,"16":1,"17":3,"18":7,"19":2,"21":7,"22":1,"23":5,"24":14,"26":2,"27":1,"30":5,"31":8,"32":3,"34":1,"36":2,"37":2,"42":1,"43":2,"44":1,"46":2,"47":3,"48":1,"49":6,"51":5,"52":30,"53":1,"54":1,"55":3,"56":1,"57":3,"58":28,"60":6,"62":3,"63":5,"64":65,"66":2,"67":12,"69":2,"71":2,"72":1,"74":1,"75":1,"77":4,"78":3,"80":1,"81":1,"82":1,"83":1,"84":1,"86":5,"87":4,"88":3,"89":2,"90":4,"91":1,"93":3,"95":3,"96":3,"97":1,"99":2,"100":2,"103":2,"104":9,"105":7,"106":13,"108":1,"112":2,"113":1,"115":1,"116":2,"118":4,"119":2,"120":1,"122":2,"123":1,"124":5,"125":2,"126":3,"128":3,"129":3,"134":2,"136":3,"138":1,"139":3,"140":2,"142":4,"143":4,"145":3,"147":2,"148":1,"150":2,"151":6,"152":3,"155":1,"156":1,"157":1,"158":8,"159":1,"160":2,"161":1,"162":2,"163":1,"164":1,"165":7,"166":4,"167":4,"168":1,"169":1,"171":2,"172":2,"173":8,"175":2,"177":309,"178":65,"179":3,"180":4,"181":250}}],["five",{"2":{"177":1}}],["fits",{"2":{"97":1,"134":1,"136":2}}],["fit",{"2":{"66":1,"67":2,"169":1,"177":2,"181":3}}],["fixes",{"2":{"178":1}}],["fixed",{"2":{"86":1,"177":2,"178":1}}],["fix",{"2":{"49":2,"52":1,"73":1,"128":1,"130":1,"177":1,"178":4}}],["fixing",{"0":{"51":1,"127":1},"1":{"128":1,"129":1,"130":1},"2":{"10":1,"48":1,"49":1,"52":4,"104":1,"106":1,"178":21}}],["fieldnames",{"2":{"106":1}}],["fields",{"2":{"24":1,"52":4,"60":1,"86":1,"105":1,"106":2,"138":1,"139":1,"140":1,"177":21,"178":6,"181":21}}],["field",{"2":{"10":5,"49":1,"52":2,"64":1,"95":1,"104":6,"106":8,"177":1,"178":3,"181":2}}],["finished",{"2":{"177":2}}],["finish",{"2":{"139":2,"177":5}}],["finance",{"2":{"58":1}}],["finalizes",{"2":{"177":3}}],["finalize",{"2":{"177":17}}],["finally",{"2":{"63":1,"177":1}}],["final",{"2":{"6":1,"52":2,"58":2,"63":1,"64":5,"105":1,"119":1,"178":1,"181":21}}],["finetuning",{"2":{"89":5,"177":2}}],["fine",{"0":{"89":1},"2":{"31":1,"89":1,"177":1}}],["finders",{"2":{"181":1}}],["finder",{"2":{"64":10,"181":23}}],["findings",{"2":{"112":1}}],["finding",{"2":{"36":1,"64":2,"181":2}}],["find",{"2":{"2":1,"8":1,"11":1,"12":1,"13":1,"23":1,"26":1,"29":1,"36":2,"46":1,"49":1,"52":1,"58":5,"61":2,"63":3,"64":7,"66":2,"67":3,"91":1,"177":21,"178":3,"181":44}}],["finds",{"2":{"2":1,"64":1,"178":1,"181":14}}],["filled",{"2":{"177":2}}],["fill",{"2":{"71":1,"106":1,"158":1,"177":14,"181":1}}],["fills",{"2":{"7":1}}],["filechunker",{"2":{"177":1,"181":4}}],["filenames",{"2":{"64":1,"181":1}}],["filename",{"2":{"24":2,"89":1,"177":2}}],["file",{"2":{"4":1,"11":6,"24":3,"28":1,"32":1,"43":1,"64":4,"73":1,"78":1,"89":2,"91":1,"150":1,"151":1,"152":1,"177":23,"181":10}}],["files`",{"2":{"64":1,"181":1}}],["files",{"2":{"2":2,"24":1,"61":1,"64":6,"72":1,"93":1,"181":14}}],["filtered",{"2":{"58":1,"64":2,"181":4}}],["filtering",{"2":{"8":1,"17":1,"63":2,"64":2,"181":6}}],["filter",{"2":{"2":2,"7":1,"64":7,"112":2,"177":1,"181":13}}],["filters",{"2":{"2":2,"8":1,"63":1}}],["fired",{"2":{"165":1,"173":1}}],["firefunction",{"2":{"31":2}}],["fireworks",{"0":{"31":1},"2":{"0":1,"23":1,"27":1,"31":4,"70":1,"106":1,"177":2}}],["fireworksopenaischema",{"2":{"0":1,"31":2,"177":2}}],["first",{"2":{"1":1,"2":1,"6":1,"7":7,"10":2,"13":1,"15":1,"16":1,"23":1,"24":2,"26":1,"28":1,"32":1,"34":1,"36":1,"52":1,"60":2,"63":1,"64":2,"67":3,"73":2,"74":1,"86":1,"87":3,"90":2,"104":2,"105":1,"110":1,"142":1,"160":1,"162":1,"164":1,"166":1,"167":1,"172":1,"177":22,"178":2,"181":13}}],["fur",{"2":{"177":1}}],["furthermore",{"2":{"106":1}}],["further",{"2":{"67":2,"86":2,"177":2,"178":1}}],["fusion",{"2":{"177":2,"181":8}}],["fulfills",{"2":{"140":1}}],["fulfilling",{"2":{"128":1}}],["fully",{"2":{"58":1,"64":1,"86":1,"140":3,"181":1}}],["full",{"2":{"7":1,"64":3,"86":1,"177":9,"181":10}}],["fuzzy",{"2":{"67":1,"177":1}}],["functor",{"2":{"52":1,"178":2}}],["functionality",{"2":{"48":1,"56":1,"140":1,"165":1,"173":1,"177":1,"178":1,"180":3,"181":3}}],["functionalities",{"2":{"0":1,"140":1,"177":1}}],["function",{"0":{"42":1},"2":{"6":1,"7":2,"8":1,"10":4,"12":1,"16":1,"17":1,"20":1,"21":5,"22":2,"24":1,"31":1,"40":1,"42":1,"49":2,"51":6,"52":37,"54":2,"55":1,"58":2,"60":2,"61":1,"63":1,"64":20,"67":12,"73":2,"85":1,"86":2,"87":1,"89":1,"90":1,"100":1,"104":4,"106":10,"110":1,"112":1,"128":3,"140":1,"143":3,"145":3,"165":3,"173":3,"177":80,"178":58,"181":41}}],["functions",{"0":{"10":1,"104":1},"2":{"0":2,"2":1,"7":1,"10":5,"15":1,"21":2,"23":1,"24":1,"27":1,"32":1,"49":4,"51":1,"52":7,"57":1,"58":2,"60":5,"61":1,"63":1,"64":1,"66":2,"73":1,"81":1,"84":1,"85":1,"87":2,"90":1,"103":1,"104":4,"164":1,"165":1,"166":1,"167":1,"172":1,"173":1,"177":10,"178":8,"181":12}}],["func",{"2":{"52":2,"178":4,"181":1}}],["future",{"2":{"1":1,"4":2,"23":1,"58":1,"87":1,"106":1,"177":2,"178":1,"180":1,"181":1}}],["ml",{"2":{"169":1}}],["mm",{"2":{"150":2,"151":3}}],["mdoel",{"2":{"105":1}}],["mdash",{"2":{"52":9,"55":1,"64":6,"67":5,"177":143,"178":37,"179":2,"180":1,"181":142}}],["m1",{"2":{"32":1}}],["mcts",{"2":{"21":1,"49":1,"52":1,"178":1}}],["m",{"2":{"21":2,"23":1,"26":1,"28":3,"30":1,"31":2,"32":1,"37":1,"45":1,"51":2,"52":3,"85":3,"106":1,"177":5,"178":3}}],["mytemplates",{"2":{"178":1}}],["mytype",{"2":{"86":1}}],["myfunction",{"2":{"177":2}}],["myaijudgemodel",{"2":{"181":1}}],["myadd",{"2":{"165":6,"173":6}}],["myabstractresponse",{"2":{"86":5}}],["mybool",{"2":{"86":2}}],["myreranker",{"2":{"60":4,"64":2,"181":2}}],["mymeasurementwrapper",{"2":{"177":1}}],["mymeasurement",{"2":{"19":5,"177":32}}],["my",{"0":{"90":1},"2":{"12":1,"13":1,"23":3,"26":2,"31":1,"36":1,"45":1,"46":1,"74":1,"83":1,"85":3,"106":1,"177":12}}],["msg1",{"2":{"177":2}}],["msgs",{"2":{"177":1}}],["msg=aigenerate",{"2":{"177":7}}],["msg",{"2":{"7":1,"12":2,"16":5,"19":4,"20":2,"22":4,"23":2,"26":1,"27":1,"29":1,"31":2,"35":2,"36":1,"40":1,"41":1,"42":2,"46":1,"52":12,"58":1,"64":2,"86":4,"91":5,"105":3,"106":2,"177":119,"178":9,"181":6}}],["music",{"2":{"150":1,"151":1}}],["must",{"2":{"1":1,"12":2,"21":2,"32":1,"36":2,"51":2,"52":8,"64":1,"87":3,"93":1,"103":1,"106":3,"113":1,"115":1,"116":1,"119":1,"123":1,"128":3,"129":1,"134":2,"136":2,"150":1,"151":1,"152":2,"154":1,"158":1,"162":1,"165":2,"169":1,"173":2,"175":1,"177":15,"178":12,"180":1,"181":8}}],["murmured",{"2":{"67":1,"177":1}}],["mutates",{"2":{"64":1,"181":1}}],["mutated",{"2":{"64":1,"181":4}}],["mutating",{"2":{"52":1,"63":1,"64":1,"178":2,"181":2}}],["mutable",{"2":{"52":1,"177":3}}],["multihits",{"2":{"181":1}}],["multihop",{"2":{"181":1}}],["multicandidatechunks",{"2":{"177":1,"181":2}}],["multifinder",{"2":{"64":1,"177":1,"181":4}}],["multiindex",{"2":{"64":2,"177":1,"181":14}}],["multiplier",{"2":{"181":5}}],["multiplication",{"2":{"42":1}}],["multiple",{"0":{"41":1},"2":{"6":1,"8":1,"14":1,"21":1,"41":1,"52":3,"60":1,"64":2,"67":3,"86":1,"91":1,"96":1,"100":1,"103":1,"105":1,"106":1,"165":1,"166":2,"167":2,"173":1,"177":23,"178":6,"181":10}}],["multi",{"0":{"85":1},"2":{"37":1,"46":1,"64":3,"96":1,"177":6,"178":2,"181":7}}],["much",{"0":{"77":1},"2":{"7":2,"8":1,"13":1,"24":1,"36":1,"52":1,"64":2,"104":2,"106":1,"177":3,"178":3,"181":2}}],["mix",{"2":{"177":1,"181":1}}],["mixed",{"2":{"106":1}}],["mixtral",{"2":{"28":1,"30":1,"31":2,"32":2,"106":2,"177":1}}],["million",{"2":{"96":2}}],["mickey",{"2":{"67":1,"177":1}}],["middleware",{"2":{"177":1}}],["middle",{"2":{"36":1,"110":1,"178":1,"181":1}}],["mimics",{"2":{"67":1,"177":1}}],["mimic",{"2":{"27":1,"86":1,"99":1,"178":2}}],["mind",{"2":{"106":1}}],["minute",{"2":{"74":5}}],["minutes",{"2":{"11":2,"77":2,"177":3}}],["min",{"2":{"64":8,"67":1,"177":1,"181":12}}],["minichunks",{"2":{"67":1,"177":1}}],["minimize",{"2":{"181":1}}],["minimal",{"2":{"56":1}}],["minimum",{"2":{"2":1,"64":2,"67":2,"93":1,"177":2,"181":7}}],["mini",{"2":{"52":2,"178":2,"181":2}}],["mistakes",{"2":{"128":2}}],["mistrall",{"2":{"177":2}}],["mistralai",{"0":{"23":1,"26":1},"2":{"23":3,"25":1,"26":1,"27":1,"70":1,"78":2,"106":1,"177":5}}],["mistral",{"2":{"0":1,"22":3,"23":7,"26":7,"32":1,"35":1,"42":1,"83":2,"177":22}}],["mistralopenaischema",{"2":{"0":1,"23":2,"26":2,"177":4}}],["missing",{"2":{"7":1,"52":1,"139":1,"140":2,"158":1,"177":6}}],["might",{"2":{"7":1,"10":1,"23":2,"26":1,"52":2,"67":1,"75":2,"76":1,"78":1,"104":1,"177":2,"178":2}}],["madrid",{"2":{"95":1,"96":3}}],["made",{"2":{"49":1,"52":5,"118":1,"151":1,"177":2,"178":6}}],["map",{"2":{"181":1}}],["mapped",{"2":{"177":1}}],["mapping",{"2":{"86":1,"177":1}}],["mapreduce",{"2":{"41":1}}],["mask",{"2":{"66":1}}],["mastering",{"2":{"58":1}}],["master",{"2":{"12":2,"36":1,"46":1,"177":5}}],["magenta",{"2":{"58":1,"181":3}}],["maintaining",{"2":{"176":1}}],["maintain",{"2":{"151":1,"177":2}}],["mainly",{"2":{"124":1}}],["main",{"2":{"49":2,"57":1,"58":1,"60":3,"61":1,"64":1,"66":1,"87":1,"102":1,"106":1,"156":1,"177":7,"180":1,"181":3}}],["machine",{"2":{"58":1}}],["machines",{"2":{"46":1}}],["mac",{"2":{"32":1,"78":1}}],["macros",{"2":{"52":1,"177":5}}],["macro",{"2":{"15":1,"45":1,"85":3,"95":1,"128":1,"177":8}}],["may",{"2":{"24":1,"37":1,"45":1,"87":2,"138":1,"140":1,"150":1,"177":6,"178":1,"180":1,"181":1}}],["maybeextract",{"2":{"19":1,"177":18}}],["marks",{"2":{"177":1,"181":1}}],["markup",{"2":{"177":1}}],["marked",{"2":{"118":1,"177":3}}],["markdown",{"2":{"20":3,"150":1,"151":1,"152":1,"158":1,"162":2,"177":20}}],["marsaglia",{"2":{"178":1}}],["mars",{"2":{"17":1,"177":2}}],["margin=",{"2":{"181":1}}],["margin",{"2":{"2":1,"181":4}}],["manner",{"2":{"150":1,"181":3}}],["manage",{"2":{"178":1}}],["managed",{"2":{"177":4,"178":1}}],["management",{"2":{"177":1}}],["manages",{"2":{"106":1,"177":1,"178":1}}],["manageable",{"2":{"63":1,"67":1,"177":1,"178":1}}],["managing",{"2":{"60":1}}],["manually",{"2":{"27":1,"28":1,"73":1}}],["manymeasurements",{"2":{"19":1,"177":2}}],["many",{"0":{"75":1},"2":{"19":1,"23":1,"27":1,"49":2,"66":1,"69":1,"70":1,"83":1,"86":1,"87":1,"100":1,"106":1,"122":1,"123":1,"177":5}}],["mandarin",{"2":{"14":1}}],["manipulations",{"2":{"157":1}}],["manipulation",{"2":{"2":1,"64":1,"65":1,"181":1}}],["matrices",{"2":{"181":5}}],["matrix",{"2":{"22":1,"41":2,"42":1,"63":1,"177":4,"181":29}}],["mat",{"2":{"181":2}}],["matlab",{"2":{"58":1}}],["matter",{"2":{"47":1}}],["materialized",{"2":{"181":1}}],["materialize",{"2":{"40":1,"177":1}}],["material",{"2":{"12":1}}],["matches",{"2":{"177":5,"181":2}}],["matched",{"2":{"122":1,"123":1,"126":1,"181":2}}],["match",{"2":{"7":2,"11":1,"24":3,"58":5,"63":1,"64":9,"67":7,"177":9,"181":16}}],["matching",{"2":{"7":5,"58":1,"64":3,"67":1,"177":1,"181":9}}],["maximize",{"2":{"181":1}}],["maximum",{"2":{"18":1,"21":2,"52":4,"55":1,"67":4,"74":1,"112":1,"177":13,"178":6,"179":1,"181":3}}],["maxes",{"2":{"74":1}}],["max",{"2":{"8":1,"20":1,"21":4,"51":2,"52":21,"55":1,"64":3,"66":1,"67":21,"86":1,"88":1,"106":1,"177":45,"178":29,"179":1,"181":14}}],["makie",{"2":{"64":1,"181":1}}],["making",{"2":{"0":1,"98":1,"103":1}}],["makes",{"2":{"32":1,"104":1,"150":1}}],["make",{"2":{"4":1,"6":1,"7":1,"8":2,"11":1,"29":1,"32":2,"52":2,"64":3,"65":1,"74":1,"78":2,"87":1,"93":2,"106":2,"108":1,"115":1,"116":1,"136":1,"150":3,"151":1,"160":1,"162":1,"177":8,"178":2,"181":7}}],["mention",{"2":{"150":1}}],["mentioning",{"2":{"140":1,"169":1}}],["mentioned",{"2":{"119":1,"124":1,"140":1,"169":1}}],["merely",{"2":{"90":1,"177":1}}],["merged",{"2":{"181":2}}],["merges",{"2":{"181":3}}],["merge",{"2":{"64":2,"177":1,"181":5}}],["melody",{"2":{"67":1,"177":1}}],["memory`",{"2":{"106":1}}],["memory",{"2":{"58":1,"128":1,"157":1,"181":2}}],["memories",{"2":{"12":1,"67":1,"177":1}}],["meetings",{"2":{"150":2,"151":2}}],["meeting",{"2":{"140":1}}],["meets",{"2":{"138":2,"140":1}}],["meet",{"2":{"34":1,"35":1,"37":1,"140":1}}],["messaging",{"2":{"138":1,"177":3}}],["message",{"0":{"34":1,"45":1},"2":{"21":1,"49":2,"51":1,"52":18,"58":1,"64":1,"75":1,"83":2,"85":2,"87":2,"91":3,"95":2,"100":3,"105":2,"106":3,"128":1,"129":2,"132":1,"138":1,"147":1,"177":105,"178":21,"181":4}}],["message`",{"2":{"21":1,"51":1,"52":1,"178":1}}],["messagese",{"2":{"177":1}}],["messages",{"0":{"102":1},"2":{"12":2,"23":1,"24":1,"27":1,"47":1,"52":1,"85":1,"86":1,"87":1,"89":1,"90":5,"91":1,"98":1,"101":1,"102":2,"105":6,"106":1,"177":52,"178":4}}],["mesages",{"2":{"24":1}}],["mechanisms",{"2":{"104":1}}],["mechanism",{"2":{"23":1,"26":1,"67":1,"106":1,"177":1}}],["medium",{"2":{"23":1,"26":1,"181":4}}],["measuring",{"2":{"181":4}}],["measurement",{"2":{"177":1}}],["measurements",{"2":{"19":2,"177":16}}],["measures",{"2":{"64":1,"67":2,"177":2,"181":1}}],["meantime",{"2":{"177":1}}],["meant",{"2":{"128":1,"129":1,"177":2}}],["meaningful",{"2":{"150":1}}],["meaning",{"2":{"125":1,"181":1}}],["means",{"2":{"18":1,"32":1,"43":1,"58":1,"64":2,"66":2,"74":1,"177":2,"181":3}}],["mean",{"2":{"1":1,"7":2,"181":2}}],["me",{"2":{"16":2,"22":3,"23":1,"26":1,"30":2,"31":2,"34":1,"37":1,"40":2,"41":4,"42":2,"45":1,"67":1,"81":1,"86":2,"87":4,"169":1,"177":10}}],["meticulously",{"2":{"142":1,"143":1,"145":1,"151":1}}],["meta",{"2":{"91":1,"177":12}}],["metaprogramming",{"2":{"58":1}}],["metadatamessage",{"2":{"177":2}}],["metadata=true",{"2":{"2":1,"8":1}}],["metadata",{"0":{"111":1},"1":{"112":1,"113":1},"2":{"2":4,"8":1,"63":1,"64":1,"91":5,"112":2,"113":1,"124":1,"177":37,"181":14}}],["met",{"2":{"52":12,"86":2,"106":1,"178":16}}],["methoderror",{"2":{"106":1}}],["methods",{"2":{"52":3,"63":1,"64":1,"98":1,"106":1,"177":5,"178":3,"181":3}}],["method",{"2":{"10":1,"49":2,"52":1,"60":2,"64":14,"67":1,"98":1,"99":1,"104":1,"177":81,"178":39,"179":2,"181":142}}],["metrics",{"2":{"6":1}}],["mock",{"2":{"178":1}}],["move",{"2":{"177":1,"181":1}}],["moved",{"2":{"1":1,"178":1,"180":1,"181":1}}],["monitoring",{"2":{"177":2}}],["month",{"2":{"76":1}}],["monte",{"2":{"21":1,"49":1,"52":1,"178":3}}],["money",{"2":{"76":1,"177":1}}],["moonlight",{"2":{"67":2,"177":2}}],["mouse",{"2":{"67":1,"177":1}}],["modified",{"2":{"181":1}}],["modify",{"2":{"24":1}}],["modal",{"2":{"177":2}}],["modality",{"2":{"65":1}}],["modular",{"2":{"57":1,"178":1}}],["modules",{"2":{"66":1}}],["module",{"0":{"180":1},"2":{"1":1,"10":1,"21":1,"24":1,"48":2,"49":1,"52":4,"53":2,"54":1,"56":2,"58":1,"66":1,"104":1,"177":4,"178":3,"180":4,"181":2}}],["modes",{"2":{"181":1}}],["modern",{"2":{"118":2}}],["moderation",{"2":{"17":1}}],["mode",{"2":{"24":2,"64":1,"106":2,"177":2,"181":1}}],["model3",{"2":{"177":1}}],["model2",{"2":{"177":1}}],["model1",{"2":{"177":3}}],["modeling",{"2":{"58":1}}],["model>",{"2":{"27":1}}],["model=pt",{"2":{"64":1,"181":1}}],["model=",{"2":{"20":2,"21":1,"22":3,"23":3,"26":2,"27":1,"30":2,"31":3,"32":1,"38":1,"46":1,"51":1,"52":3,"62":1,"91":3,"104":2,"105":1,"177":40,"178":3,"181":1}}],["modelspec",{"2":{"177":3}}],["models",{"0":{"22":1,"29":1,"32":1,"37":1},"1":{"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1},"2":{"0":1,"10":1,"15":1,"17":1,"22":1,"23":4,"26":3,"28":2,"29":2,"32":4,"34":1,"37":1,"43":1,"47":1,"52":1,"53":1,"64":2,"67":2,"69":2,"70":1,"71":5,"75":1,"83":3,"84":1,"91":1,"96":1,"98":1,"99":1,"101":1,"104":1,"106":1,"142":1,"143":1,"166":1,"167":1,"171":1,"172":1,"173":1,"177":33,"178":2,"181":7}}],["model",{"0":{"0":1,"15":1,"84":1,"89":1,"99":1},"2":{"0":3,"6":2,"7":2,"10":8,"15":8,"16":1,"17":1,"18":1,"21":3,"22":1,"23":2,"26":1,"27":2,"28":4,"29":5,"30":4,"31":6,"32":3,"34":2,"35":2,"36":1,"37":6,"40":2,"41":3,"42":1,"43":2,"44":1,"45":2,"46":1,"49":8,"51":3,"52":16,"56":1,"57":3,"58":2,"60":2,"62":4,"64":43,"77":1,"82":1,"83":1,"84":6,"85":2,"86":1,"89":1,"90":2,"91":3,"95":3,"98":3,"99":1,"100":1,"101":1,"102":3,"104":8,"105":4,"106":17,"115":2,"116":4,"142":1,"148":1,"165":1,"169":5,"173":1,"177":258,"178":19,"181":123}}],["moment",{"2":{"1":1,"23":1,"27":1,"38":1,"43":1,"177":1}}],["mostly",{"2":{"89":1}}],["most",{"2":{"1":1,"8":1,"23":1,"26":1,"52":2,"58":1,"60":1,"63":2,"64":3,"82":1,"110":1,"112":2,"113":2,"123":1,"124":1,"134":1,"136":1,"148":1,"152":1,"156":1,"169":1,"177":11,"178":4,"181":10}}],["moreover",{"2":{"24":1}}],["more",{"2":{"0":2,"2":1,"5":3,"6":4,"7":4,"8":1,"10":1,"12":2,"13":3,"15":2,"16":1,"17":3,"19":2,"20":1,"21":2,"23":1,"24":3,"26":1,"28":1,"29":1,"32":1,"38":1,"52":4,"55":1,"58":4,"63":1,"64":6,"65":1,"66":1,"67":1,"74":1,"75":1,"76":1,"79":1,"80":1,"82":1,"83":1,"84":1,"86":1,"88":1,"90":1,"93":1,"96":2,"103":1,"104":2,"105":1,"106":5,"115":1,"124":1,"125":1,"128":1,"177":55,"178":11,"179":1,"181":33}}],["❌",{"2":{"0":26}}],["✅",{"2":{"0":46}}],["w",{"2":{"181":3}}],["wp",{"2":{"20":1,"177":2}}],["www",{"2":{"20":1,"177":2}}],["wraps",{"2":{"66":1,"177":7,"181":1}}],["wrap",{"2":{"66":2,"67":2,"91":6,"177":12,"181":1}}],["wrapped",{"2":{"91":1,"177":1,"178":1}}],["wrapper",{"2":{"19":1,"49":1,"52":3,"64":1,"67":2,"95":1,"177":17,"178":3,"181":2}}],["wrapping",{"2":{"53":1,"66":1}}],["wrong",{"2":{"51":1,"52":1,"86":1,"178":1}}],["written",{"2":{"20":1,"138":3,"140":1,"177":2}}],["writing",{"2":{"13":1,"31":1,"47":1,"71":1,"160":1,"162":1,"164":1,"165":3,"172":1,"173":3,"177":2}}],["writer",{"2":{"138":2,"160":2,"162":1}}],["write",{"2":{"4":1,"11":1,"24":2,"102":1,"103":1,"106":4,"123":1,"128":2,"129":1,"158":3,"160":2,"162":3,"164":1,"165":2,"172":1,"173":2,"177":1,"178":2}}],["walk",{"2":{"97":1}}],["walkthrough",{"0":{"105":1,"106":1},"2":{"90":1}}],["wave",{"2":{"67":1,"177":1}}],["wake",{"2":{"67":1,"177":1}}],["warning",{"2":{"177":2,"181":1}}],["warnings",{"2":{"52":1,"178":1}}],["wars",{"2":{"12":1,"36":1,"46":1,"177":5}}],["waiting",{"2":{"106":1}}],["wait",{"2":{"21":1,"51":1,"52":2,"177":2,"178":2}}],["way",{"2":{"21":1,"24":1,"29":1,"49":1,"52":1,"60":1,"77":1,"78":1,"85":1,"103":1,"123":1,"165":1,"173":1,"177":3,"178":1,"181":1}}],["ways",{"2":{"12":1,"36":1,"84":1,"90":1,"177":1}}],["was",{"2":{"7":1,"8":1,"10":1,"24":2,"42":1,"52":2,"60":1,"64":1,"67":1,"73":1,"77":1,"86":1,"104":1,"106":1,"118":1,"120":1,"128":1,"169":2,"177":11,"178":4,"181":5}}],["wanted",{"2":{"52":1,"177":2,"178":1}}],["wants",{"2":{"15":1}}],["want",{"2":{"2":1,"3":1,"7":2,"10":3,"11":1,"19":1,"21":1,"24":1,"51":1,"52":2,"58":2,"60":1,"63":2,"64":3,"74":2,"82":1,"86":2,"87":3,"95":1,"98":1,"101":1,"103":1,"104":3,"105":1,"177":32,"178":2,"181":7}}],["won",{"2":{"27":1,"28":1,"84":1}}],["wonders",{"2":{"8":1}}],["worth",{"0":{"77":1},"2":{"77":1}}],["worst",{"2":{"67":1,"177":1}}],["worry",{"2":{"32":1}}],["words",{"2":{"58":1,"64":1,"66":5,"67":13,"88":2,"112":1,"113":1,"122":1,"123":1,"124":1,"156":2,"158":3,"162":1,"175":1,"177":14,"181":2}}],["word",{"2":{"20":1,"21":4,"51":4,"52":3,"64":2,"66":1,"77":1,"108":1,"110":2,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":3,"129":3,"130":1,"132":1,"134":2,"135":1,"136":2,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":2,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":2,"178":3,"181":9}}],["wordcount",{"2":{"13":1,"24":1,"87":1,"177":3}}],["world",{"2":{"12":1,"13":1,"14":1,"24":4,"52":3,"67":3,"102":1,"103":1,"105":2,"106":1,"108":1,"112":2,"115":1,"116":1,"118":1,"122":1,"123":1,"125":1,"134":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1,"177":21,"178":1}}],["workaround",{"2":{"106":1}}],["workload",{"2":{"58":1}}],["workflow",{"0":{"11":1},"2":{"49":1,"52":1,"138":2,"139":2,"140":2,"177":1}}],["workflows",{"0":{"21":1},"2":{"0":1,"16":1,"21":1,"48":1,"84":1,"104":1,"180":1}}],["working",{"0":{"43":1},"1":{"44":1,"45":1,"46":1,"47":1},"2":{"10":1,"22":1,"53":1,"62":1,"65":1,"76":1,"83":1,"84":1,"104":1,"128":1,"129":1,"130":1,"177":2,"181":1}}],["work",{"2":{"7":1,"11":1,"24":1,"32":1,"43":1,"52":1,"60":1,"86":1,"90":1,"91":1,"93":1,"101":1,"138":1,"178":1,"181":2}}],["workspace",{"2":{"177":2}}],["works",{"0":{"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":1,"23":2,"26":1,"67":1,"78":1,"97":1,"105":1,"106":2,"177":6,"181":1}}],["would",{"0":{"8":1,"89":1},"2":{"3":1,"4":1,"7":2,"13":1,"24":3,"34":1,"58":1,"60":1,"62":2,"73":1,"74":2,"85":1,"86":2,"87":1,"91":3,"106":1,"122":1,"123":1,"177":3,"181":3}}],["welcome",{"2":{"181":1}}],["well",{"2":{"2":1,"21":1,"29":1,"31":1,"51":1,"52":1,"67":1,"106":4,"119":1,"138":3,"140":1,"166":1,"167":1,"177":4,"178":2,"181":5}}],["weaker",{"2":{"177":1}}],["weaving",{"2":{"169":1}}],["weather",{"2":{"19":3}}],["web",{"2":{"58":2,"115":1,"116":9,"161":1,"181":10}}],["websearch",{"2":{"54":1,"55":4,"177":1,"179":5}}],["website",{"2":{"11":1,"72":1}}],["were",{"2":{"20":1,"32":1,"62":1,"151":1,"177":1,"181":1}}],["weighs",{"2":{"19":1,"177":6}}],["weight",{"2":{"19":2,"177":14}}],["went",{"2":{"10":1,"104":1}}],["we",{"0":{"8":1,"88":1},"2":{"2":1,"3":3,"4":1,"5":3,"6":4,"7":8,"8":1,"10":6,"11":2,"12":1,"13":1,"15":1,"17":1,"18":2,"19":1,"20":1,"21":13,"22":2,"23":5,"24":3,"26":3,"27":1,"30":1,"31":1,"32":1,"37":1,"40":1,"43":2,"47":2,"51":13,"52":24,"56":1,"58":5,"60":1,"62":2,"63":2,"64":4,"67":1,"71":2,"74":5,"85":2,"86":14,"87":2,"88":1,"94":1,"97":1,"100":2,"101":1,"103":4,"104":4,"105":9,"106":23,"177":52,"178":22,"181":24}}],["wise",{"2":{"181":1}}],["wisp",{"2":{"67":1,"177":1}}],["wiki",{"2":{"178":2}}],["wikipedia",{"2":{"178":2,"181":3}}],["width",{"2":{"66":1,"67":3,"177":12,"181":5}}],["wide",{"2":{"30":1,"31":1,"52":1,"175":1,"178":1}}],["wins",{"2":{"178":9}}],["winning",{"2":{"52":2,"178":2}}],["winks",{"2":{"36":2}}],["win",{"2":{"11":1}}],["windows",{"2":{"58":1,"67":2,"78":1,"177":2}}],["window",{"2":{"2":1,"67":2,"78":1,"93":1,"177":3,"178":1,"181":12}}],["will",{"2":{"1":2,"2":2,"4":1,"10":1,"13":2,"18":2,"19":1,"21":2,"24":1,"28":1,"36":2,"46":1,"49":1,"51":1,"52":24,"58":1,"60":1,"62":1,"64":21,"67":5,"69":1,"74":1,"76":1,"77":2,"78":1,"85":2,"87":4,"90":3,"91":1,"93":2,"94":1,"95":1,"100":4,"104":1,"106":1,"110":1,"113":1,"128":1,"134":1,"136":1,"138":1,"140":1,"164":1,"165":1,"166":2,"167":2,"172":1,"173":1,"175":1,"177":59,"178":36,"181":40}}],["without",{"2":{"36":1,"52":1,"60":1,"67":1,"73":1,"90":1,"103":1,"116":1,"118":1,"147":1,"151":1,"169":1,"177":4,"181":3}}],["within",{"2":{"10":1,"64":1,"67":2,"104":1,"118":1,"177":14,"178":2,"181":7}}],["with",{"0":{"1":1,"21":1,"32":1,"33":1,"38":1,"39":1,"43":1,"44":1,"95":1,"96":1},"1":{"2":1,"33":1,"34":2,"35":2,"36":2,"37":2,"38":1,"39":1,"40":2,"41":2,"42":2,"44":1,"45":2,"46":2,"47":2},"2":{"0":4,"1":3,"2":1,"6":2,"7":4,"8":1,"10":12,"11":2,"12":2,"13":4,"14":1,"15":1,"18":1,"19":5,"20":2,"21":5,"22":2,"23":5,"24":11,"26":2,"27":4,"28":2,"29":1,"30":3,"31":4,"32":2,"34":2,"35":1,"36":1,"37":4,"40":1,"41":1,"43":1,"45":2,"46":1,"47":1,"49":5,"51":6,"52":27,"53":1,"56":3,"57":1,"58":10,"60":3,"61":4,"62":1,"63":2,"64":24,"65":2,"67":8,"69":1,"71":1,"72":2,"73":1,"74":2,"77":4,"78":1,"83":3,"84":2,"85":4,"86":5,"87":2,"89":3,"90":2,"91":7,"93":3,"95":2,"97":1,"98":2,"99":1,"102":3,"103":7,"104":11,"105":2,"106":9,"108":1,"110":2,"112":1,"115":2,"116":2,"119":2,"120":1,"122":1,"123":1,"124":3,"125":2,"126":1,"128":3,"129":2,"130":1,"132":1,"134":3,"136":2,"138":6,"139":4,"140":3,"142":2,"143":1,"145":1,"148":1,"150":2,"151":3,"152":2,"158":5,"159":2,"161":1,"163":1,"165":2,"166":1,"167":1,"168":1,"169":4,"171":1,"173":2,"177":118,"178":50,"181":69}}],["whose",{"2":{"177":2}}],["who",{"2":{"27":1,"55":2,"152":1,"179":2}}],["whole",{"0":{"7":1},"2":{"10":1,"32":1,"85":2,"101":1,"104":1,"165":1,"173":1,"177":5,"178":1}}],["while",{"2":{"128":1,"165":1,"173":1,"177":1,"178":1}}],["whispered",{"2":{"67":4,"177":4}}],["white",{"2":{"21":1,"51":1,"52":1,"67":1,"177":6,"178":1}}],["whichever",{"2":{"41":1}}],["which",{"2":{"0":1,"7":3,"10":3,"17":1,"21":1,"24":1,"28":1,"32":2,"37":1,"45":1,"49":4,"52":4,"57":2,"58":2,"60":1,"63":1,"64":5,"67":2,"74":1,"82":1,"87":1,"88":1,"89":1,"90":1,"98":1,"99":1,"104":3,"105":1,"106":2,"118":2,"138":1,"150":1,"165":1,"173":1,"177":37,"178":5,"181":23}}],["why",{"0":{"69":1},"1":{"70":1},"2":{"13":1,"19":1,"52":2,"106":1,"128":1,"129":1,"177":3,"178":1}}],["whatever",{"2":{"52":1,"82":1,"177":1,"178":1}}],["what",{"0":{"8":1,"70":1,"90":1},"2":{"2":3,"5":1,"6":1,"7":5,"11":1,"12":2,"13":3,"15":1,"19":1,"21":1,"24":1,"35":1,"36":1,"46":1,"51":1,"52":2,"58":4,"64":4,"67":1,"85":3,"86":1,"90":3,"95":4,"96":1,"98":1,"105":3,"118":1,"128":4,"139":1,"148":1,"160":4,"177":21,"178":2,"181":13}}],["whether",{"2":{"7":4,"10":3,"17":1,"52":2,"55":3,"64":4,"104":3,"106":1,"135":2,"177":18,"178":8,"179":3,"181":12}}],["whenever",{"2":{"181":3}}],["when",{"2":{"0":1,"10":4,"11":1,"17":1,"21":2,"22":1,"24":4,"28":1,"49":5,"51":1,"52":2,"58":1,"60":3,"63":1,"64":1,"73":1,"83":1,"84":1,"86":1,"87":1,"98":1,"102":2,"103":2,"104":4,"105":2,"106":3,"148":1,"150":2,"151":1,"155":1,"159":1,"161":1,"163":1,"164":3,"168":1,"171":1,"172":1,"175":1,"177":29,"178":8,"181":5}}],["whereas",{"2":{"7":1,"106":1}}],["where",{"2":{"0":1,"7":1,"10":1,"12":1,"37":1,"49":1,"52":4,"58":1,"64":3,"66":1,"67":1,"73":1,"74":1,"78":1,"86":1,"90":1,"93":1,"103":1,"104":1,"106":1,"122":1,"123":1,"151":2,"158":1,"177":23,"178":7,"181":22}}],["b64",{"2":{"177":4}}],["b",{"2":{"165":2,"173":2,"178":1,"181":3}}],["b>",{"2":{"67":2,"177":12,"181":2}}],["br",{"2":{"181":1}}],["broader",{"2":{"177":2}}],["browser",{"2":{"83":1}}],["br>",{"2":{"67":1,"177":6,"181":1}}],["brand",{"2":{"106":4}}],["branching",{"2":{"52":1,"178":1}}],["branch",{"2":{"52":1,"178":1}}],["branches",{"2":{"52":4,"67":1,"177":1,"178":4}}],["brackets",{"2":{"58":1,"64":2,"151":1,"181":3}}],["breath",{"2":{"129":1,"172":1}}],["breaks",{"2":{"67":1,"177":1,"181":1}}],["break",{"2":{"58":1,"129":1,"130":1}}],["bread",{"2":{"31":2,"106":2}}],["bright",{"2":{"177":2}}],["bring",{"2":{"94":1}}],["brings",{"2":{"12":1}}],["briefly",{"2":{"151":1}}],["brief",{"2":{"24":3,"66":1,"102":1,"103":1,"105":2,"108":1,"115":1,"116":1,"122":1,"128":1,"150":3,"155":1,"156":1,"157":1,"158":7,"159":1,"161":1,"162":1,"163":1,"164":1,"165":1,"168":1,"169":1,"171":1,"172":1,"173":1}}],["bge",{"2":{"30":1}}],["binx",{"2":{"181":4}}],["bin",{"2":{"181":4}}],["binint",{"2":{"181":4}}],["binary",{"2":{"181":18}}],["binarycosinesimilarity",{"2":{"177":1,"181":5}}],["binarybatchembedder",{"2":{"177":1,"181":5}}],["biology",{"2":{"156":1}}],["billing",{"2":{"75":2,"76":1,"93":1}}],["bigger",{"2":{"106":1}}],["big",{"2":{"58":1,"62":1,"64":1,"67":1,"177":1,"181":1}}],["bitmatrix",{"2":{"181":3}}],["bits",{"2":{"177":1,"181":13}}],["bitpackedcosinesimilarity",{"2":{"177":1,"181":5}}],["bitpackedbatchembedder",{"2":{"177":1,"181":5}}],["bit",{"2":{"28":1,"34":1,"63":1,"106":1,"156":1,"181":4}}],["biases",{"2":{"177":1}}],["bias",{"2":{"10":1,"18":1,"104":1,"177":12}}],["blank",{"2":{"147":1}}],["blanksystemuser",{"0":{"147":1},"2":{"90":2,"91":1,"177":3,"178":1}}],["black",{"2":{"21":1,"51":1,"52":1,"67":1,"106":1,"177":6,"178":1,"181":1}}],["blogtitleimagegenerator",{"0":{"175":1}}],["blog",{"2":{"138":1,"162":4,"175":4}}],["blob",{"2":{"67":1,"177":7,"181":1}}],["block",{"2":{"52":15,"64":3,"128":1,"158":1,"177":27,"178":3,"181":7}}],["blocks",{"2":{"52":6,"64":2,"165":2,"173":2,"177":25,"178":3,"181":2}}],["blocking",{"2":{"11":1,"96":1}}],["blue",{"2":{"21":1,"51":1,"52":3,"58":1,"177":2,"178":3,"181":3}}],["bang",{"2":{"95":1}}],["bandit",{"2":{"52":1,"178":2}}],["barplot",{"2":{"64":1,"181":1}}],["bad",{"2":{"52":1,"67":1,"177":1,"178":1}}],["bakllava",{"2":{"37":1,"38":1,"177":3}}],["balance",{"2":{"36":2,"46":1,"75":2}}],["baai",{"2":{"30":1}}],["backpropagate",{"2":{"177":1,"178":5}}],["backticks",{"2":{"128":1,"129":1,"152":1,"177":1}}],["back",{"2":{"52":4,"85":1,"86":1,"105":1,"177":5,"178":5}}],["backspace",{"2":{"24":1}}],["background",{"2":{"11":1,"22":1,"83":1}}],["batched",{"2":{"181":3}}],["batchembedder",{"2":{"64":1,"177":1,"181":11}}],["batch",{"2":{"14":1,"64":3,"181":21}}],["bash",{"2":{"28":1,"168":1}}],["basename",{"2":{"87":1,"177":1}}],["base",{"2":{"23":2,"26":1,"27":1,"52":1,"56":1,"151":1,"177":11,"181":1}}],["base64decode",{"2":{"177":1}}],["base64",{"2":{"10":1,"102":1,"104":1,"177":2}}],["based",{"2":{"7":2,"52":3,"58":2,"60":1,"63":6,"64":8,"108":2,"110":4,"115":1,"116":1,"118":1,"119":1,"120":1,"124":1,"128":2,"129":2,"130":1,"135":1,"136":1,"139":1,"156":2,"166":1,"167":1,"175":1,"177":16,"178":10,"181":27}}],["basic",{"0":{"107":1},"1":{"108":1},"2":{"10":1,"55":3,"98":1,"102":1,"104":1,"179":3}}],["bold",{"2":{"181":4}}],["body",{"2":{"158":2,"177":1}}],["bodies",{"2":{"67":1,"177":1}}],["border",{"2":{"67":4,"177":24,"181":4}}],["boundary",{"2":{"181":1}}],["boundaries",{"2":{"177":1,"181":3}}],["bound",{"2":{"52":7,"178":9}}],["bounds",{"2":{"52":1,"118":1,"178":1}}],["bool=isnothing",{"2":{"177":1}}],["bool=true",{"2":{"52":4,"64":1,"177":5,"178":1,"181":1}}],["bool=false",{"2":{"52":12,"177":31,"178":6,"181":1}}],["boolean",{"2":{"52":2,"86":1,"177":17,"178":4,"181":13}}],["bool",{"2":{"10":2,"21":1,"51":1,"52":14,"55":3,"64":15,"86":3,"104":2,"106":2,"177":67,"178":16,"179":3,"181":63}}],["both",{"2":{"7":4,"21":2,"36":1,"51":2,"52":2,"64":1,"129":1,"177":2,"178":2,"181":9}}],["bm25similarity",{"2":{"64":1,"177":1,"181":6}}],["bm25",{"2":{"8":1,"64":2,"181":15}}],["business",{"2":{"158":1}}],["bullets",{"2":{"181":1}}],["bullet",{"2":{"128":5,"150":7,"151":5,"158":3}}],["bundle",{"2":{"89":1}}],["buy",{"2":{"77":1,"93":1}}],["bug",{"2":{"73":2}}],["but",{"2":{"5":1,"6":2,"7":2,"10":3,"11":2,"12":2,"13":1,"18":1,"19":2,"23":1,"24":2,"28":2,"29":1,"30":1,"31":1,"36":2,"55":1,"58":1,"64":2,"67":3,"73":1,"74":1,"78":1,"85":1,"90":1,"96":1,"97":1,"102":1,"104":3,"106":2,"140":1,"151":1,"171":1,"177":21,"178":1,"179":1,"181":11}}],["built",{"2":{"4":1,"57":1,"60":1,"112":1,"177":1,"178":1,"181":1}}],["builds",{"2":{"64":1,"177":6,"181":4}}],["build",{"2":{"1":1,"2":6,"4":1,"8":2,"10":2,"12":1,"49":1,"56":1,"57":4,"58":4,"60":3,"61":3,"63":4,"64":12,"106":1,"177":9,"181":40}}],["building",{"0":{"1":1},"1":{"2":1},"2":{"21":1,"48":1,"52":1,"56":1,"57":1,"58":1,"64":2,"161":1,"178":2,"180":1,"181":6}}],["berlin",{"2":{"181":1}}],["bearer",{"2":{"177":3}}],["belong",{"2":{"151":1,"152":1,"177":1}}],["below",{"2":{"0":1,"22":1,"52":2,"69":1,"73":1,"74":1,"82":1,"106":1,"113":1,"115":1,"123":1,"158":1,"164":1,"172":1,"177":5,"178":2,"181":1}}],["believe",{"2":{"128":1,"129":1,"130":1}}],["beneath",{"2":{"67":2,"177":2}}],["benefits",{"2":{"106":1}}],["benefit",{"2":{"52":1,"178":1}}],["behave",{"2":{"102":1}}],["behavior",{"2":{"49":1,"60":2,"67":2,"91":1,"106":1,"177":2}}],["behavioural",{"2":{"152":1,"156":1}}],["behaviours",{"2":{"52":1,"178":1}}],["behaviour",{"2":{"21":1,"51":1,"52":1,"106":1,"178":1}}],["behind",{"2":{"67":1,"169":1,"177":1}}],["begin",{"2":{"128":1,"138":1,"165":3,"173":3,"177":1}}],["beginning",{"2":{"85":1,"118":1,"177":3}}],["beginners",{"2":{"58":1}}],["begins",{"2":{"63":1,"169":1}}],["before",{"2":{"52":3,"66":1,"67":1,"74":1,"78":1,"85":1,"93":2,"128":1,"142":2,"150":1,"151":1,"177":7,"181":1}}],["besides",{"2":{"177":2}}],["bespoke",{"2":{"52":1,"177":2}}],["best",{"2":{"5":1,"21":1,"23":2,"26":2,"30":1,"31":1,"45":1,"49":1,"51":1,"52":3,"58":7,"64":1,"87":2,"134":2,"136":2,"140":1,"152":1,"153":1,"154":1,"158":1,"177":5,"178":12,"181":7}}],["been",{"2":{"23":1,"26":1,"37":1,"52":3,"90":1,"103":1,"129":1,"139":1,"140":1,"177":3,"178":4}}],["becoming",{"2":{"12":1}}],["become",{"2":{"12":3,"24":1,"36":2,"46":1,"177":7}}],["because",{"2":{"7":1,"11":1,"21":1,"23":1,"26":1,"28":2,"47":1,"51":1,"52":1,"64":1,"104":1,"106":3,"177":5,"178":3,"181":2}}],["beta",{"2":{"177":3,"178":3}}],["betwee",{"2":{"52":1,"178":1}}],["between",{"2":{"6":1,"7":2,"10":1,"16":2,"21":1,"51":1,"52":5,"58":2,"66":4,"67":5,"98":1,"102":1,"119":1,"138":2,"139":2,"156":1,"177":12,"178":6,"181":11}}],["better",{"2":{"8":1,"49":1,"55":1,"64":1,"67":2,"78":1,"106":3,"115":3,"116":3,"138":1,"140":2,"177":4,"179":1,"181":5}}],["be",{"0":{"73":2},"2":{"1":1,"2":1,"7":2,"10":5,"12":1,"15":4,"16":1,"17":1,"18":1,"21":3,"22":1,"23":1,"24":1,"26":1,"28":1,"36":1,"46":1,"49":2,"51":3,"52":22,"55":1,"56":1,"57":1,"58":3,"60":2,"62":3,"63":1,"64":39,"66":1,"67":7,"69":1,"74":1,"75":1,"76":1,"81":1,"83":1,"84":1,"86":2,"87":3,"88":1,"90":2,"91":2,"94":1,"95":2,"97":1,"98":1,"99":1,"100":1,"101":1,"104":4,"106":2,"108":1,"110":3,"113":1,"115":1,"116":1,"118":1,"119":1,"122":1,"123":1,"124":1,"128":6,"129":4,"134":1,"136":2,"138":3,"139":1,"140":1,"148":1,"150":5,"151":4,"152":8,"156":1,"158":2,"162":1,"165":4,"166":2,"167":2,"169":3,"173":4,"175":3,"177":165,"178":32,"179":1,"180":2,"181":90}}],["being",{"2":{"0":1,"5":1,"7":1,"36":1,"52":1,"150":1,"177":6,"178":1}}],["by",{"2":{"0":3,"6":2,"10":2,"13":1,"21":2,"23":1,"24":6,"27":1,"49":3,"52":5,"56":1,"57":2,"58":4,"60":2,"62":1,"64":6,"66":1,"67":5,"71":1,"72":1,"73":1,"88":2,"90":2,"91":1,"104":1,"105":2,"106":2,"110":2,"112":1,"118":1,"119":1,"122":1,"123":1,"126":1,"128":4,"129":3,"130":1,"138":5,"140":2,"142":1,"150":1,"151":1,"153":1,"154":2,"160":1,"162":1,"164":1,"169":1,"172":1,"177":56,"178":12,"181":40}}],["europe",{"2":{"181":4}}],["eyes",{"2":{"177":1}}],["educator",{"2":{"162":1}}],["educational",{"2":{"105":1,"162":1}}],["editor",{"2":{"138":4}}],["editing",{"2":{"11":1}}],["et",{"2":{"181":3}}],["ethos",{"2":{"82":1}}],["ethereal",{"2":{"67":1,"177":1}}],["etc",{"2":{"0":1,"2":1,"15":1,"21":1,"24":1,"51":1,"52":2,"64":1,"69":1,"90":1,"102":1,"104":1,"112":2,"115":1,"157":1,"176":1,"177":10,"178":2,"181":13}}],["echoes",{"2":{"177":5}}],["echoing",{"2":{"67":1,"177":1}}],["ecosystem",{"2":{"122":1}}],["econometrics",{"2":{"58":1}}],["e2e",{"2":{"61":1}}],["equality",{"2":{"86":1}}],["equal",{"2":{"52":1,"55":1,"64":1,"67":2,"177":2,"178":1,"179":1,"181":3}}],["equivalent",{"2":{"2":2,"13":1,"58":1,"104":1,"177":1}}],["essence",{"2":{"151":1}}],["essential",{"2":{"119":1,"178":2}}],["estimated",{"2":{"96":1}}],["estimate",{"2":{"47":1,"177":1}}],["especially",{"2":{"22":1,"52":1,"66":1,"83":1,"84":1,"105":1,"152":1,"178":2}}],["elapsed",{"2":{"177":22,"181":1}}],["elaboration",{"2":{"118":1}}],["elicit",{"2":{"148":1}}],["else`",{"2":{"166":1,"167":1}}],["elseif",{"2":{"166":1,"167":1}}],["else",{"2":{"18":2,"36":1,"52":2,"86":2,"115":2,"116":2,"156":1,"177":5,"178":2}}],["elementwise",{"2":{"181":1}}],["element",{"2":{"13":2,"16":1,"19":1,"22":1,"24":3,"42":1,"85":1,"87":2,"90":3,"105":2,"177":13,"181":1}}],["evolving",{"2":{"178":1}}],["evolved",{"2":{"151":1}}],["ever",{"2":{"177":2}}],["everyone",{"2":{"162":1}}],["every",{"2":{"60":1,"74":1,"77":1,"78":1,"84":1,"101":1,"176":1,"178":1,"181":1}}],["everything",{"2":{"18":2,"86":1,"91":1,"177":3}}],["eventmessage",{"2":{"177":1}}],["even",{"2":{"19":2,"29":1,"30":1,"51":1,"52":2,"55":1,"62":1,"67":1,"150":1,"177":5,"178":1,"179":1,"181":1}}],["eval=false",{"2":{"52":2,"177":2}}],["evalutes",{"2":{"178":1}}],["evaluted",{"2":{"52":1,"178":1}}],["evaluator",{"2":{"132":2,"178":3}}],["evaluating",{"2":{"17":1,"52":2,"118":1,"135":1,"138":1,"177":2,"181":1}}],["evaluation",{"0":{"117":1},"1":{"118":1,"119":1,"120":1},"2":{"4":1,"6":2,"8":1,"10":1,"49":2,"52":10,"57":1,"104":1,"119":1,"120":1,"177":10,"178":10,"181":9}}],["evaluations",{"0":{"3":1},"1":{"4":1,"5":1,"6":1,"7":1},"2":{"52":3,"64":2,"178":5,"181":4}}],["evaluated",{"2":{"52":8,"128":1,"129":1,"177":9,"178":3}}],["evaluates",{"2":{"21":1,"51":1,"52":3,"177":3,"178":2,"181":2}}],["evaluate",{"0":{"6":1,"7":1},"2":{"3":1,"6":2,"7":2,"21":1,"51":1,"52":11,"119":2,"139":1,"140":1,"177":4,"178":22}}],["eval",{"2":{"7":2,"24":1,"52":9,"177":13,"181":1}}],["evals",{"2":{"4":6,"5":1,"6":3,"7":7,"57":1,"64":4,"177":3,"181":18}}],["effectiveness",{"2":{"138":1,"140":1}}],["effective",{"2":{"123":1,"125":1,"148":1}}],["effectively",{"2":{"12":1,"62":2,"66":1,"101":1,"105":2,"177":7,"178":1}}],["efficiently",{"2":{"58":1,"140":1,"178":1}}],["efficient",{"2":{"52":2,"58":1,"65":1,"158":2,"178":2,"181":4}}],["effort",{"2":{"13":1,"56":1}}],["emails",{"2":{"158":3}}],["email",{"2":{"158":10}}],["emphasize",{"2":{"138":1,"166":1,"167":1}}],["empty",{"0":{"73":2},"2":{"52":2,"55":2,"64":2,"67":6,"177":38,"178":1,"179":2,"181":4}}],["emotions",{"2":{"67":2,"177":2}}],["emotional",{"2":{"12":1}}],["emb",{"2":{"58":1,"181":21}}],["embedder",{"2":{"64":17,"181":29}}],["embedded",{"2":{"41":1,"64":1,"181":6}}],["embedding",{"0":{"40":1,"41":1},"2":{"2":1,"8":2,"16":1,"30":1,"31":1,"41":2,"63":1,"64":8,"177":9,"181":54}}],["embeddings",{"0":{"16":1,"39":1},"1":{"40":1,"41":1,"42":1},"2":{"2":1,"10":2,"16":3,"42":1,"61":2,"63":4,"64":8,"102":1,"104":2,"177":20,"181":60}}],["embeds",{"2":{"2":1,"64":1,"181":4}}],["embed",{"2":{"2":3,"16":3,"22":3,"23":1,"26":1,"30":1,"31":2,"40":2,"41":4,"42":1,"177":4}}],["either",{"2":{"10":1,"19":1,"23":1,"26":1,"37":1,"55":1,"60":1,"74":1,"86":1,"104":1,"177":7,"178":1,"179":1}}],["e",{"2":{"10":1,"19":1,"52":4,"104":1,"106":2,"110":1,"134":1,"136":1,"139":1,"177":9,"178":2,"181":1}}],["errorexception",{"2":{"52":1,"178":1}}],["errors",{"2":{"19":1,"21":1,"22":1,"49":1,"51":1,"52":7,"64":1,"75":1,"106":1,"128":2,"130":1,"140":3,"177":3,"178":10,"181":5}}],["error",{"0":{"73":2,"74":1,"75":1},"2":{"7":2,"49":2,"52":13,"73":2,"74":3,"75":4,"86":1,"106":4,"128":2,"129":1,"177":22,"178":14}}],["earlier",{"2":{"73":1}}],["eating",{"2":{"31":1,"106":1}}],["easiest",{"2":{"82":1,"95":1}}],["easier",{"2":{"0":1,"7":1,"29":1,"64":1,"65":1,"67":1,"104":1,"150":1,"177":1,"181":2}}],["easily",{"2":{"15":1,"57":1,"64":1,"86":1,"89":1,"95":1,"177":2,"181":2}}],["easy",{"2":{"6":1,"42":1,"78":1,"81":1,"83":1,"90":1,"93":1,"106":1,"147":1,"151":1,"162":1,"177":5}}],["each",{"2":{"2":2,"4":1,"7":4,"10":2,"12":1,"15":1,"21":2,"51":2,"52":3,"58":1,"60":2,"62":1,"63":2,"64":21,"67":12,"77":1,"104":1,"110":1,"112":1,"113":1,"119":1,"124":1,"128":1,"139":1,"140":1,"150":3,"151":6,"152":4,"158":1,"162":1,"165":2,"169":2,"173":2,"177":24,"178":6,"181":59}}],["exit",{"2":{"24":1}}],["existing",{"2":{"24":1,"60":1,"64":2,"91":1,"115":1,"116":1,"177":3,"181":3}}],["existent",{"2":{"21":1,"51":1,"52":1,"178":1}}],["exists",{"2":{"7":2,"181":1}}],["exist",{"2":{"6":1,"7":6,"90":4}}],["exclamation",{"2":{"181":1}}],["exclude",{"2":{"55":2,"151":1,"177":1,"179":2,"181":3}}],["exciting",{"2":{"23":1,"27":1}}],["exceed",{"2":{"74":1,"177":2}}],["exceeds",{"2":{"67":1,"177":1}}],["exceeding",{"2":{"64":1,"67":1,"177":1,"181":7}}],["exceeded",{"0":{"74":1},"2":{"21":1,"51":1,"74":2,"75":1}}],["excessive",{"2":{"58":1}}],["exception",{"2":{"52":4,"60":1,"106":1,"177":3,"178":2}}],["except",{"2":{"21":1,"177":1,"178":1}}],["external",{"2":{"118":1,"177":1}}],["extension",{"2":{"177":2,"181":1}}],["extensions",{"2":{"49":1,"56":1}}],["extensively",{"2":{"160":1,"162":1}}],["extensive",{"2":{"159":1,"166":1}}],["extensible",{"2":{"52":1,"57":1,"60":1,"178":1}}],["extended",{"2":{"52":1,"177":1,"178":1}}],["extend",{"2":{"15":1,"23":1,"56":1}}],["extremely",{"2":{"75":1,"119":2,"129":1,"138":1,"160":1,"162":1}}],["extras",{"2":{"64":3,"181":8}}],["extra",{"2":{"28":1,"64":1,"67":2,"86":1,"90":1,"95":1,"151":1,"177":1,"181":1}}],["extractdata",{"0":{"145":1}}],["extractdataxml",{"0":{"143":1}}],["extractdatacotxml",{"0":{"142":1},"2":{"177":1}}],["extracted",{"2":{"112":3,"177":19}}],["extractor",{"2":{"106":1,"177":1}}],["extraction",{"0":{"19":1,"144":1},"1":{"145":1},"2":{"31":1,"64":4,"106":1,"112":2,"142":2,"143":2,"145":2,"177":14,"181":6}}],["extracting",{"2":{"2":1,"19":3,"64":1,"177":2,"181":1}}],["extracts",{"2":{"2":1,"49":1,"52":1,"63":2,"64":2,"112":1,"113":1,"177":4,"178":1,"181":7}}],["extract",{"2":{"2":2,"8":1,"10":2,"19":3,"31":2,"52":5,"91":2,"104":2,"105":1,"106":10,"112":4,"142":1,"143":1,"145":1,"177":52,"178":5,"181":9}}],["executing",{"2":{"181":2}}],["execution",{"0":{"14":1},"2":{"10":1,"49":2,"52":11,"104":1,"129":1,"130":1,"177":13,"178":6}}],["executor",{"2":{"52":1,"177":1}}],["execute",{"2":{"52":3,"177":2,"178":1}}],["executed",{"2":{"49":1,"52":4,"129":1,"177":5,"178":2}}],["executes",{"2":{"10":1,"49":2,"52":2,"104":1,"177":2,"178":4}}],["examine",{"2":{"140":1}}],["example>",{"2":{"173":2}}],["examples",{"0":{"9":1,"50":1,"58":1},"1":{"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"51":1},"2":{"2":5,"4":2,"5":1,"6":1,"13":2,"21":1,"24":1,"32":1,"43":1,"52":2,"58":2,"64":9,"67":3,"70":1,"89":1,"90":1,"96":2,"112":1,"152":2,"159":1,"161":1,"164":1,"168":1,"172":1,"177":20,"178":1,"181":20}}],["example",{"0":{"105":1,"106":1},"2":{"0":1,"1":1,"2":1,"5":1,"7":1,"10":1,"13":1,"15":1,"17":1,"18":1,"21":1,"24":3,"31":1,"32":1,"37":1,"49":1,"52":6,"55":1,"58":1,"62":1,"64":5,"67":3,"77":2,"86":3,"88":1,"89":1,"90":2,"91":1,"97":1,"100":1,"103":1,"104":2,"106":4,"112":1,"118":1,"152":4,"156":1,"165":1,"177":45,"178":10,"179":1,"181":20}}],["exact",{"2":{"64":2,"177":5,"181":10}}],["exactly",{"2":{"10":2,"21":1,"24":1,"49":1,"52":1,"64":1,"104":2,"177":1,"178":5,"181":2}}],["expr",{"2":{"177":4}}],["expression",{"2":{"52":6,"138":1,"177":8}}],["export",{"2":{"78":1,"93":1}}],["exported",{"2":{"24":1,"32":1,"52":1,"178":1}}],["expanded",{"2":{"177":2}}],["expanding",{"2":{"124":1}}],["expand",{"2":{"90":1,"105":1,"124":1,"177":1,"178":8}}],["expands",{"2":{"17":1,"90":1,"178":2}}],["expanse",{"2":{"67":1,"177":1}}],["expected",{"2":{"177":2}}],["expectations",{"2":{"140":1}}],["expects",{"2":{"134":1,"136":1,"165":1,"173":1,"177":1}}],["expertise",{"2":{"159":1}}],["expert",{"2":{"123":1,"125":1,"140":4,"142":1,"143":1,"145":1,"158":1,"159":2,"162":1,"165":1,"168":1,"173":1,"177":1}}],["experiencing",{"2":{"73":1}}],["experience",{"2":{"12":1}}],["experiences",{"2":{"12":1}}],["experiment",{"2":{"52":1,"89":1,"177":1,"178":1}}],["experimental",{"0":{"21":1,"180":1},"2":{"1":3,"10":4,"21":2,"48":3,"52":6,"53":2,"55":1,"56":3,"60":1,"63":1,"64":6,"66":1,"86":1,"104":2,"177":177,"178":70,"179":4,"180":5,"181":281}}],["expensive",{"2":{"3":1,"52":3,"178":6}}],["exploitation",{"2":{"178":1}}],["exploits",{"2":{"177":2}}],["exploration",{"2":{"178":1}}],["explorer",{"2":{"73":1}}],["explore",{"0":{"5":1},"2":{"5":1,"8":1,"36":1,"52":2,"58":1,"86":1,"177":1,"178":2}}],["explanatory",{"2":{"177":1}}],["explanations",{"2":{"0":1,"19":1,"139":1,"140":1}}],["explaining",{"2":{"165":1,"173":1}}],["explain",{"2":{"110":1,"128":1,"129":1,"142":1,"169":1,"181":1}}],["explains",{"2":{"97":1,"169":1}}],["explicit",{"2":{"64":2,"142":1,"143":1,"145":1,"177":8,"181":2}}],["explicitly",{"2":{"2":1,"13":1,"21":1,"23":1,"26":1,"37":1,"52":3,"84":1,"87":1,"122":1,"158":2,"166":1,"167":1,"177":5,"178":3,"180":1}}],["enforces",{"2":{"177":2}}],["enforce",{"2":{"177":7}}],["encapsulates",{"2":{"178":1}}],["encapsulated",{"2":{"178":1}}],["encouraging",{"2":{"158":1}}],["encode",{"2":{"106":2,"177":7}}],["encoded",{"2":{"10":1,"102":1,"104":1,"177":3}}],["enclosed",{"2":{"129":1}}],["enclose",{"2":{"128":1}}],["enhance",{"2":{"125":1,"138":2,"148":1,"181":2}}],["enhancing",{"2":{"53":1,"138":1,"151":1,"177":1}}],["enigmatic",{"2":{"67":2,"177":2}}],["enough",{"2":{"67":2,"177":2}}],["ensuring",{"2":{"67":1,"148":1,"176":1,"177":1}}],["ensure",{"2":{"0":1,"52":2,"86":3,"106":1,"125":2,"128":2,"140":2,"142":1,"143":1,"145":1,"150":1,"151":1,"158":1,"177":4,"178":2,"181":4}}],["ensures",{"2":{"0":1,"67":1,"177":1}}],["enabling",{"2":{"63":1,"177":1,"178":1}}],["enable",{"2":{"91":1,"106":1,"177":1,"181":1}}],["enables",{"2":{"10":1,"49":1,"64":2,"104":1,"181":8}}],["enabled",{"2":{"10":1,"64":1,"104":1,"181":2}}],["enjoy",{"2":{"36":1}}],["en",{"2":{"30":1,"178":2}}],["engaging",{"2":{"169":1}}],["engagement",{"2":{"138":3}}],["engage",{"2":{"30":1}}],["english",{"2":{"64":1,"181":5}}],["engineer",{"2":{"148":1}}],["engineering",{"2":{"17":1,"148":1}}],["engine",{"2":{"54":1,"106":1,"112":2,"124":1,"176":1}}],["enumerates",{"2":{"181":4}}],["enumerated",{"2":{"177":2}}],["enumerate",{"2":{"64":1,"181":1}}],["enum",{"2":{"19":1,"86":2}}],["entire",{"2":{"177":13}}],["entity",{"2":{"124":1}}],["entities",{"2":{"12":1,"19":1,"67":1,"112":1,"124":1,"177":3}}],["entry",{"2":{"60":1,"64":1,"147":1,"181":1}}],["entries",{"2":{"6":1,"106":2,"177":2}}],["enter",{"2":{"24":2}}],["end=25",{"2":{"181":1}}],["ended",{"2":{"177":1,"181":1}}],["end|>",{"2":{"177":2}}],["end>",{"2":{"177":1}}],["ending",{"2":{"177":1}}],["end`",{"2":{"128":1,"165":2,"166":1,"167":1,"173":2}}],["end",{"2":{"7":1,"19":3,"21":1,"31":1,"41":1,"45":1,"51":1,"52":11,"58":2,"60":1,"64":4,"67":1,"74":1,"86":6,"89":2,"106":5,"165":1,"173":1,"177":18,"178":15,"181":12}}],["endpoints",{"2":{"0":1,"177":1}}],["endpoint",{"2":{"0":2,"64":2,"136":5,"177":9,"179":1,"181":6}}],["environments",{"2":{"52":1,"178":1}}],["environment",{"0":{"78":1},"2":{"43":1,"54":1,"58":1,"73":1,"78":2,"91":1,"93":2,"177":8}}],["env",{"2":{"0":1,"23":1,"26":1,"29":2,"30":1,"31":1,"73":3,"78":1,"93":2,"177":7,"181":1}}],["eg",{"2":{"0":1,"2":1,"6":1,"7":2,"8":1,"10":9,"12":2,"13":1,"15":2,"21":6,"23":2,"24":1,"25":1,"27":2,"28":1,"32":1,"37":1,"51":5,"52":10,"57":1,"58":3,"60":6,"61":1,"62":1,"63":3,"64":15,"66":4,"67":3,"69":3,"74":3,"75":1,"77":2,"78":2,"83":1,"84":2,"86":2,"87":1,"95":2,"96":1,"98":3,"99":3,"100":1,"101":1,"102":3,"103":2,"104":10,"106":3,"112":1,"158":2,"165":1,"173":1,"177":52,"178":15,"180":2,"181":40}}],["hd",{"2":{"177":3}}],["hh",{"2":{"150":2,"151":3}}],["huggingface",{"2":{"181":6}}],["hundred",{"2":{"177":2}}],["hundredth",{"2":{"77":1}}],["hundreds",{"2":{"75":2}}],["humans",{"2":{"177":1}}],["human",{"2":{"17":1,"150":1,"151":1,"177":4}}],["href=",{"2":{"67":1,"177":6,"181":1}}],["htmlstyler",{"2":{"177":1,"181":13}}],["html",{"2":{"58":2,"177":1,"181":15}}],["https",{"2":{"20":1,"32":1,"67":2,"75":1,"106":2,"110":1,"177":14,"178":2,"179":1,"181":7}}],["http",{"2":{"10":2,"23":1,"28":1,"62":3,"64":2,"74":1,"104":2,"177":53,"179":1,"181":5}}],["hcat",{"2":{"41":1,"177":3,"181":4}}],["hit",{"2":{"177":1,"181":2}}],["his",{"2":{"87":2,"177":2}}],["history",{"2":{"52":1,"86":1,"101":1,"177":89,"178":5,"181":1}}],["hint",{"2":{"52":2,"178":2}}],["hints",{"2":{"52":1,"178":1}}],["hi",{"2":{"21":2,"22":1,"23":3,"26":2,"27":1,"28":1,"29":3,"30":1,"31":1,"32":1,"34":1,"35":1,"37":2,"45":3,"51":2,"52":2,"85":3,"87":3,"90":6,"91":3,"96":1,"158":1,"177":24,"178":12}}],["highly",{"2":{"119":2,"125":1,"136":1}}],["highlevel",{"2":{"52":2,"178":2}}],["highlighted",{"2":{"177":1}}],["highlights",{"0":{"49":1,"54":1,"57":1,"66":1}}],["highlighting",{"2":{"20":1,"58":1,"139":1,"140":1,"177":2,"181":1}}],["highlight",{"2":{"10":1,"57":1,"64":1,"128":1,"139":1,"150":1,"181":1}}],["higher",{"2":{"17":1,"52":1,"60":1,"64":2,"67":1,"177":4,"178":3,"181":5}}],["highest",{"2":{"7":1,"58":1,"181":1}}],["high",{"2":{"3":1,"24":3,"58":2,"60":2,"64":2,"103":1,"105":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"177":5,"181":6}}],["hmm",{"2":{"12":1,"36":1,"177":1}}],["hyderephraser",{"2":{"177":1,"181":3}}],["hyde",{"2":{"63":1,"122":1,"123":1,"181":3}}],["hypothetical",{"2":{"8":1,"122":3,"123":2,"181":2}}],["hybrid",{"2":{"8":1,"63":1,"64":2,"181":4}}],["her",{"2":{"112":1}}],["here>",{"2":{"165":1,"173":1}}],["here",{"2":{"23":1,"24":1,"26":1,"29":1,"30":1,"31":2,"36":1,"37":1,"43":1,"45":1,"52":1,"60":1,"67":1,"83":1,"105":1,"177":23,"178":1}}],["hence",{"2":{"98":1,"177":3}}],["heals",{"2":{"181":1}}],["healing",{"2":{"86":1,"104":1}}],["heavily",{"2":{"112":1}}],["heavy",{"2":{"106":1}}],["heavens",{"2":{"67":1,"177":1}}],["hear",{"2":{"67":2,"177":2}}],["hearty",{"2":{"87":2,"177":2}}],["heart",{"2":{"46":1}}],["header",{"2":{"177":3}}],["headers",{"2":{"2":1,"74":1,"177":3}}],["headings",{"2":{"162":1}}],["headlines",{"2":{"158":1}}],["head",{"2":{"36":1}}],["he",{"2":{"19":1,"177":6}}],["height",{"2":{"19":2,"177":14}}],["held",{"2":{"64":1,"181":1}}],["hello",{"2":{"12":1,"14":1,"22":1,"23":1,"26":1,"30":1,"31":1,"34":1,"35":1,"37":1,"52":3,"67":3,"85":1,"177":30,"178":1}}],["helping",{"2":{"181":1}}],["helpful",{"2":{"19":1,"23":1,"26":1,"45":1,"52":4,"53":1,"85":1,"90":1,"97":1,"119":3,"120":1,"128":1,"139":2,"155":1,"159":1,"161":1,"168":1,"177":6,"178":2}}],["helpfulness",{"2":{"6":1,"119":1}}],["helps",{"2":{"19":1,"177":1}}],["help",{"2":{"12":1,"19":1,"21":1,"23":3,"26":3,"30":1,"31":1,"34":1,"35":1,"36":2,"37":1,"45":1,"46":1,"51":1,"64":1,"81":1,"106":1,"150":1,"177":7,"181":1}}],["helper",{"2":{"10":1,"24":1,"32":1,"104":1,"177":2}}],["haiku",{"2":{"177":3}}],["hamming",{"2":{"177":1,"181":9}}],["happened",{"2":{"129":1}}],["happens",{"2":{"98":1,"150":1}}],["happening",{"2":{"58":1}}],["half",{"2":{"64":1,"89":1,"181":1}}],["hallucination",{"2":{"17":1}}],["hackable",{"2":{"60":1}}],["had",{"2":{"24":1,"177":1}}],["hash",{"2":{"177":2,"181":1}}],["hashed",{"2":{"64":5,"177":1,"181":9}}],["hasn",{"2":{"52":2,"178":2}}],["has",{"2":{"15":1,"21":1,"28":1,"37":1,"52":4,"62":1,"74":2,"86":1,"115":1,"116":1,"128":1,"129":1,"140":1,"150":1,"177":13,"178":2,"181":3}}],["harder",{"2":{"64":2,"181":2}}],["hard",{"2":{"13":1,"19":1,"36":1,"76":2,"95":1,"178":1}}],["handling",{"2":{"52":2,"86":1,"177":2,"178":1}}],["handles",{"2":{"86":1,"181":1}}],["handlebars",{"2":{"96":1}}],["handlebar",{"2":{"12":1,"177":1}}],["handle",{"2":{"7":1,"58":1,"64":2,"86":2,"100":1,"106":1,"177":6,"181":5}}],["handcraft",{"2":{"3":1}}],["having",{"0":{"73":2},"2":{"0":1,"67":1,"103":1,"177":1}}],["have",{"0":{"85":1,"86":1,"88":1},"2":{"0":1,"5":1,"6":1,"7":6,"10":2,"11":1,"12":5,"13":1,"15":1,"19":1,"21":2,"22":1,"23":5,"24":3,"26":4,"27":1,"28":2,"30":1,"31":2,"32":1,"36":4,"37":1,"45":1,"46":2,"47":1,"49":2,"51":1,"52":1,"57":1,"58":1,"60":3,"64":4,"66":1,"74":2,"75":1,"77":1,"84":1,"86":1,"87":2,"90":2,"93":1,"94":2,"100":2,"101":1,"103":3,"104":3,"106":4,"112":1,"113":1,"115":1,"116":1,"118":1,"123":1,"139":1,"157":1,"160":1,"162":2,"166":1,"167":1,"175":1,"177":27,"178":3,"181":17}}],["horizontal",{"2":{"181":1}}],["holding",{"2":{"181":3}}],["hold",{"2":{"178":1}}],["holds",{"2":{"2":1,"64":1,"106":1,"181":3}}],["hope",{"2":{"56":1,"57":1,"86":1,"105":1,"115":1,"116":1}}],["honor",{"2":{"52":1,"178":1}}],["hosting",{"2":{"29":1,"83":1}}],["host",{"2":{"29":2,"177":6}}],["hosted",{"2":{"25":1,"64":4,"70":1,"98":1,"99":1,"106":2,"177":2,"181":4}}],["hood",{"2":{"2":1,"18":1,"23":1,"26":1,"28":1,"49":1,"58":1,"97":1,"105":2,"106":1,"177":2}}],["however",{"2":{"3":2,"15":1,"24":1,"75":1,"177":1,"181":1}}],["how",{"0":{"77":1,"85":1,"86":1,"87":1,"89":1,"90":1,"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":2,"7":1,"8":1,"10":1,"11":1,"13":4,"21":1,"22":1,"23":2,"24":4,"26":2,"30":1,"32":1,"43":1,"47":1,"51":1,"52":4,"58":7,"60":1,"64":2,"67":2,"71":4,"74":1,"84":1,"85":2,"86":3,"97":2,"101":1,"102":1,"105":1,"106":3,"119":4,"120":1,"138":3,"140":2,"165":1,"173":1,"177":30,"178":5,"181":6}}],["omit",{"2":{"152":1}}],["observability",{"2":{"177":2}}],["observe",{"2":{"60":1}}],["obj",{"2":{"106":3}}],["objective",{"2":{"123":1,"125":1}}],["objects",{"2":{"87":1,"98":1,"147":1,"177":27,"181":2}}],["object>",{"2":{"86":1}}],["object",{"2":{"6":1,"12":4,"21":2,"46":1,"51":2,"52":10,"63":1,"64":6,"86":1,"91":1,"95":1,"98":1,"99":1,"105":1,"106":12,"177":55,"178":15,"181":10}}],["obtained",{"2":{"177":1}}],["obtain",{"2":{"52":1,"64":2,"105":1,"178":1,"181":2}}],["ocean",{"2":{"67":4,"177":4}}],["occur",{"2":{"151":1}}],["occurrences",{"2":{"67":1,"177":1}}],["occurred",{"2":{"52":2,"178":3}}],["occursin",{"2":{"178":2}}],["occurs",{"2":{"52":1,"177":1}}],["ocrtask",{"0":{"176":1},"2":{"20":2,"177":4}}],["ocr",{"0":{"20":1},"2":{"20":1,"176":1,"177":4}}],["overwrite",{"2":{"177":1,"181":1}}],["overwritten",{"2":{"52":1,"178":1}}],["overrules",{"2":{"177":2}}],["overriden",{"2":{"177":1}}],["overrides",{"2":{"177":4}}],["override",{"2":{"52":2,"84":1,"178":2}}],["overall",{"2":{"119":2,"138":1,"140":1,"177":1}}],["overarching",{"2":{"60":1}}],["overload",{"2":{"181":1}}],["overloaded",{"2":{"91":1}}],["overlaps",{"2":{"181":2}}],["overlapping",{"2":{"181":1}}],["overlap",{"2":{"64":1,"181":1}}],["overhead",{"2":{"28":1}}],["over",{"2":{"19":1,"112":1,"118":1,"150":1,"151":1,"154":1,"165":1,"166":1,"167":1,"173":1,"177":7,"180":1}}],["overview",{"0":{"10":1,"60":1,"104":1},"2":{"0":1,"75":1}}],["o",{"2":{"18":2,"86":4,"177":5}}],["olama",{"2":{"177":1}}],["oldest",{"2":{"177":1}}],["old",{"2":{"12":3}}],["ollamamanagedschema",{"2":{"22":1,"37":2,"177":12}}],["ollama",{"0":{"22":1,"32":1,"83":1},"1":{"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1},"2":{"0":2,"22":4,"28":1,"32":4,"37":1,"69":3,"70":1,"77":1,"82":1,"83":8,"84":2,"98":1,"99":1,"177":22}}],["ollamaschema",{"2":{"0":1,"32":1,"37":5,"42":1,"84":3,"177":3}}],["origin",{"2":{"177":1}}],["originated",{"2":{"177":3}}],["originally",{"2":{"177":2}}],["original",{"2":{"63":1,"67":4,"91":1,"115":6,"116":8,"119":1,"125":1,"126":1,"128":1,"176":1,"177":9,"178":1,"181":11}}],["oriented",{"2":{"157":2}}],["orientation",{"2":{"142":1,"143":1,"145":1}}],["organization",{"2":{"138":1,"177":2}}],["organize",{"2":{"128":1,"150":2,"151":1}}],["org",{"2":{"67":1,"177":1,"178":2}}],["ordered",{"2":{"67":1,"177":1}}],["ordering",{"2":{"63":1,"178":4}}],["orders",{"2":{"20":1,"177":2}}],["order",{"2":{"6":1,"64":1,"67":1,"71":1,"110":1,"177":1,"181":3}}],["or",{"0":{"84":1},"2":{"5":3,"6":3,"7":6,"8":1,"10":8,"11":3,"13":1,"17":2,"18":4,"19":1,"20":1,"21":4,"23":3,"24":3,"26":3,"29":1,"30":1,"31":1,"32":2,"34":1,"36":1,"37":2,"38":1,"41":1,"45":1,"49":2,"51":3,"52":23,"55":1,"56":1,"57":1,"60":5,"61":3,"63":2,"64":20,"66":1,"67":8,"69":2,"71":1,"73":2,"83":1,"84":1,"86":3,"87":2,"91":1,"93":1,"95":1,"98":2,"99":2,"101":2,"102":2,"103":2,"104":8,"110":1,"112":1,"115":1,"116":1,"118":2,"124":3,"125":2,"128":4,"129":1,"135":1,"136":1,"138":2,"139":5,"140":6,"150":2,"151":4,"156":3,"158":3,"162":1,"165":2,"166":1,"167":1,"169":1,"173":2,"175":1,"177":150,"178":24,"179":1,"181":51}}],["our",{"2":{"3":1,"6":1,"7":2,"21":1,"32":1,"51":1,"52":3,"71":4,"74":2,"86":6,"89":1,"105":2,"106":3,"124":2,"169":1,"177":6,"178":3,"181":3}}],["outside",{"2":{"169":1}}],["outlined",{"2":{"142":1,"143":1,"145":1}}],["outline",{"2":{"128":1,"160":2,"162":2}}],["outcomes",{"2":{"52":1,"86":1,"178":2}}],["outcome",{"2":{"49":1,"138":6,"139":6,"140":6,"169":5,"177":2,"178":3}}],["outer",{"2":{"6":1,"7":4}}],["outerjoin",{"2":{"6":1}}],["output`",{"2":{"21":1,"51":1,"52":1,"178":1}}],["outputs",{"2":{"7":1,"20":1,"21":2,"24":1,"51":1,"52":3,"106":1,"177":21}}],["output",{"0":{"21":1},"2":{"6":2,"7":8,"10":3,"21":4,"31":1,"49":4,"51":9,"52":43,"58":2,"64":1,"67":4,"86":7,"87":2,"91":1,"102":3,"104":3,"105":1,"106":17,"110":1,"142":1,"143":1,"145":1,"148":1,"152":2,"156":1,"162":1,"177":46,"178":32,"181":11}}],["out",{"2":{"2":1,"10":1,"21":9,"51":5,"52":36,"56":1,"64":4,"71":1,"74":1,"89":1,"104":1,"105":1,"124":1,"126":1,"177":3,"178":35,"181":7}}],["own",{"2":{"2":1,"15":1,"52":1,"56":1,"64":3,"177":3,"178":1,"181":4}}],["otherwise",{"2":{"52":2,"74":1,"177":20,"178":4,"181":1}}],["others",{"2":{"46":1,"106":1,"150":1}}],["other",{"0":{"23":1,"27":1},"2":{"2":1,"23":2,"27":1,"43":1,"46":1,"47":1,"49":1,"52":4,"58":1,"64":3,"67":1,"69":1,"70":1,"73":1,"78":1,"84":1,"87":2,"91":1,"93":1,"99":1,"112":1,"136":1,"138":1,"151":2,"152":1,"164":1,"172":1,"177":11,"178":4,"181":5}}],["ops",{"2":{"181":1}}],["op",{"2":{"181":10}}],["opposite",{"2":{"181":1}}],["opposed",{"2":{"11":1}}],["opportunity",{"2":{"115":1,"116":1}}],["opt",{"2":{"71":1}}],["option",{"2":{"136":2,"177":2,"181":3}}],["options",{"2":{"52":1,"60":1,"64":1,"74":1,"84":1,"93":1,"178":1,"181":2}}],["options=",{"2":{"32":2}}],["optional",{"2":{"2":2,"10":3,"52":2,"58":1,"63":1,"64":1,"104":3,"177":37,"178":2,"181":2}}],["optionally",{"2":{"2":1,"64":1,"67":1,"87":1,"106":1,"177":4,"181":2}}],["optimized",{"2":{"125":2,"178":1}}],["optimizes",{"2":{"122":1}}],["optimize",{"2":{"21":1,"178":1}}],["operate",{"2":{"21":1,"51":1,"52":1,"64":1,"178":1,"181":1}}],["operations",{"2":{"14":1,"52":2,"64":2,"177":3,"181":2}}],["operation",{"2":{"7":7,"177":1,"178":1,"181":4}}],["opens",{"2":{"181":2}}],["opened",{"2":{"74":1}}],["opentagger",{"2":{"64":1,"177":1,"181":4}}],["opening",{"2":{"24":1}}],["openhermes2",{"2":{"22":3,"32":1,"35":1,"42":1,"83":2,"177":10}}],["open",{"0":{"82":1},"2":{"11":1,"23":1,"26":1,"52":1,"57":1,"58":1,"66":1,"73":1,"82":1,"83":1,"106":2,"177":1,"178":1,"181":1}}],["openaiapi",{"0":{"73":1}}],["openaischema",{"2":{"0":2,"91":5,"99":1,"100":3,"105":3,"177":41}}],["openai",{"0":{"23":1,"27":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"76":1},"1":{"70":1},"2":{"0":4,"10":1,"16":1,"21":1,"23":3,"25":1,"26":1,"27":2,"37":1,"51":1,"52":1,"69":1,"71":6,"72":4,"73":3,"74":2,"75":2,"76":3,"77":2,"78":6,"79":2,"80":1,"90":1,"93":9,"98":2,"99":3,"100":3,"104":1,"105":6,"106":1,"112":1,"177":61,"178":1,"181":1}}],["ongoing",{"2":{"177":1}}],["online",{"2":{"72":1,"93":1,"177":4}}],["only",{"2":{"2":1,"7":8,"8":1,"10":3,"12":1,"18":1,"21":6,"23":2,"24":5,"27":2,"37":1,"43":1,"49":2,"51":5,"52":15,"54":1,"58":1,"63":1,"64":2,"67":2,"74":1,"84":1,"87":1,"90":2,"103":1,"104":4,"105":3,"106":2,"108":1,"110":1,"112":1,"115":3,"116":3,"118":1,"125":1,"128":1,"134":1,"136":1,"150":3,"151":1,"152":1,"155":1,"158":1,"159":1,"161":1,"163":1,"168":1,"169":1,"171":1,"177":63,"178":23,"181":10}}],["once",{"2":{"6":1,"7":1,"56":1,"83":1,"89":1,"105":1,"160":1,"162":1,"177":7}}],["ones",{"2":{"23":1,"24":1,"27":1,"64":2,"70":1,"112":1,"177":1,"181":2}}],["one",{"0":{"5":1,"40":1},"2":{"5":1,"6":2,"10":1,"12":1,"13":1,"15":1,"21":1,"24":1,"25":1,"30":1,"31":1,"36":1,"37":1,"38":1,"40":1,"51":1,"52":4,"54":1,"58":1,"60":1,"62":1,"63":1,"64":1,"74":1,"77":2,"78":1,"86":2,"87":1,"103":1,"104":1,"129":1,"134":2,"136":2,"152":2,"158":1,"165":1,"173":1,"177":32,"178":5,"181":10}}],["on",{"2":{"0":1,"7":4,"10":1,"11":1,"13":3,"17":2,"19":1,"21":3,"22":1,"23":2,"24":2,"26":1,"30":1,"32":1,"37":1,"42":1,"51":3,"52":12,"57":1,"58":7,"60":1,"63":5,"64":8,"67":4,"71":1,"72":1,"73":2,"74":1,"75":2,"76":1,"78":2,"87":3,"93":1,"103":1,"104":1,"106":6,"108":2,"110":4,"112":1,"115":2,"116":2,"118":1,"119":3,"120":3,"124":1,"128":3,"129":2,"130":1,"136":1,"138":3,"139":3,"140":3,"151":2,"156":2,"158":2,"162":1,"166":1,"167":1,"169":2,"175":1,"177":43,"178":23,"181":18}}],["office",{"2":{"158":1}}],["offloaded",{"2":{"32":1}}],["offload",{"2":{"28":1}}],["off",{"2":{"15":1,"78":1,"177":1}}],["offering",{"2":{"71":1}}],["offers",{"2":{"21":1}}],["offer",{"2":{"13":1,"15":1,"138":1,"140":1}}],["often",{"2":{"5":1,"6":1,"7":2,"11":1,"29":1,"64":2,"177":19,"181":5}}],["of",{"0":{"0":1,"51":1},"2":{"0":5,"2":5,"3":3,"4":1,"5":4,"6":5,"7":28,"8":1,"10":7,"11":2,"12":3,"13":4,"14":1,"15":2,"16":1,"18":1,"19":4,"20":4,"21":5,"23":4,"24":15,"26":4,"28":1,"29":1,"30":1,"31":3,"32":1,"36":1,"37":1,"40":2,"41":1,"42":1,"43":1,"46":1,"47":2,"48":1,"49":8,"51":5,"52":34,"55":4,"56":3,"57":7,"58":13,"60":7,"63":4,"64":59,"65":2,"66":4,"67":29,"69":2,"71":2,"72":1,"73":2,"74":6,"75":3,"76":2,"77":4,"82":1,"86":5,"87":2,"89":5,"90":5,"91":2,"94":2,"95":7,"96":6,"97":2,"98":3,"99":2,"100":3,"101":1,"102":2,"103":4,"104":6,"105":8,"106":15,"112":1,"118":4,"119":3,"124":1,"125":1,"128":10,"129":2,"134":2,"136":4,"138":3,"139":4,"140":3,"142":1,"150":8,"151":6,"152":2,"155":1,"156":2,"158":2,"159":1,"161":2,"163":2,"164":1,"165":7,"166":2,"167":1,"168":2,"169":4,"171":2,"172":1,"173":7,"175":3,"177":348,"178":75,"179":4,"181":249}}],["ss",{"2":{"150":2,"151":3}}],["sk",{"2":{"177":1}}],["skilled",{"2":{"158":1}}],["skips",{"2":{"87":1,"103":1,"177":10,"181":2}}],["skipped",{"2":{"52":1,"177":1}}],["skip",{"2":{"52":9,"64":5,"169":1,"177":7,"178":2,"181":8}}],["sky",{"2":{"67":1,"177":3}}],["svilupp",{"2":{"67":1,"177":6,"181":1}}],["snippet",{"2":{"81":1,"122":1}}],["snippets",{"2":{"52":1,"166":1,"167":1,"177":1,"181":7}}],["snowball",{"2":{"181":1}}],["snow",{"2":{"67":1,"177":1}}],["slice",{"2":{"181":4}}],["slicing",{"2":{"166":1,"167":1}}],["sliding",{"2":{"177":1,"181":3}}],["slightly",{"2":{"67":1,"177":1}}],["slots",{"2":{"162":1}}],["slot",{"2":{"106":1}}],["slowly",{"2":{"96":1}}],["slow",{"2":{"96":1,"177":1}}],["sleep",{"2":{"74":1,"177":1}}],["slack",{"2":{"57":1,"66":1}}],["swiftly",{"2":{"67":1,"177":1}}],["switching",{"2":{"52":1,"178":1}}],["switch",{"2":{"11":2,"51":1}}],["swap",{"2":{"64":1,"181":2}}],["src",{"2":{"63":1,"67":1,"177":7,"181":1}}],["sqrt",{"2":{"178":1}}],["square",{"2":{"58":1,"64":2,"181":2}}],["sqlcoder",{"2":{"83":1}}],["sqlservercentral",{"2":{"20":1,"177":2}}],["sql",{"2":{"20":3,"177":6}}],["smoke",{"2":{"67":1,"177":1}}],["smith",{"2":{"112":2}}],["smiling",{"2":{"37":1}}],["smiles",{"2":{"35":1,"36":1}}],["smirks",{"2":{"36":1}}],["smallint",{"2":{"86":5}}],["small",{"2":{"7":1,"11":1,"23":1,"26":1,"63":1,"150":1,"164":1,"167":1,"172":1,"177":2,"178":2}}],["smaller",{"2":{"2":1,"67":6,"106":1,"177":7,"178":1}}],["shift",{"2":{"181":1}}],["shiny",{"2":{"177":1}}],["shimmering",{"2":{"67":2,"177":2}}],["shell",{"2":{"168":1}}],["shapley",{"2":{"169":1}}],["shap",{"2":{"169":10}}],["sharegptschema",{"2":{"177":3}}],["sharegpt",{"2":{"89":1}}],["share",{"2":{"71":1,"72":1,"93":1}}],["shared",{"2":{"62":2,"64":2,"67":1,"90":1,"165":1,"173":1,"177":2,"181":2}}],["sharing",{"2":{"24":1}}],["shallow",{"2":{"52":1,"178":1}}],["shall",{"2":{"12":1}}],["shot",{"2":{"178":1}}],["shortcut",{"2":{"181":1}}],["shortcuts",{"2":{"128":1,"129":1,"130":1}}],["short",{"2":{"52":1,"58":1,"67":1,"112":1,"118":1,"120":1,"150":2,"156":1,"158":1,"177":5,"178":1}}],["shorter",{"2":{"29":1}}],["should",{"2":{"2":1,"7":1,"12":1,"22":1,"36":1,"46":1,"52":1,"60":1,"64":2,"67":1,"78":1,"79":1,"83":2,"86":2,"91":1,"93":1,"102":1,"106":2,"110":3,"118":1,"136":2,"150":4,"151":4,"152":7,"158":2,"162":1,"169":2,"175":2,"177":35,"178":6,"181":2}}],["showcase",{"2":{"148":1}}],["shows",{"2":{"20":1,"24":1,"60":1,"89":1,"177":4}}],["show",{"2":{"2":1,"7":1,"52":2,"83":1,"86":1,"90":1,"177":1,"178":3}}],["side",{"2":{"105":1}}],["sister",{"2":{"89":1}}],["since",{"2":{"87":1,"105":1,"150":1}}],["singletons",{"2":{"177":3}}],["single",{"2":{"67":2,"89":1,"177":9,"181":4}}],["situations",{"2":{"69":1}}],["silent",{"2":{"67":2,"177":2}}],["sibblings",{"2":{"52":2,"178":2}}],["size=8",{"2":{"181":1}}],["size`",{"2":{"177":1}}],["size",{"2":{"40":2,"41":2,"42":1,"64":2,"177":5,"181":15}}],["sizes",{"2":{"8":1,"64":2,"181":11}}],["sig",{"2":{"106":3}}],["significant",{"2":{"118":1,"151":2}}],["signing",{"2":{"72":1}}],["sign",{"2":{"54":1}}],["signatures",{"2":{"52":1,"178":1}}],["signature",{"2":{"21":1,"51":1,"60":1,"61":4,"106":7,"177":9}}],["sigh",{"2":{"36":1}}],["simultaneously",{"2":{"21":1,"51":1,"52":1,"178":1}}],["similarly",{"2":{"96":1,"177":1}}],["similarity",{"2":{"2":2,"8":1,"42":2,"63":2,"64":5,"66":1,"67":1,"177":1,"181":33}}],["similar",{"2":{"2":1,"10":2,"52":1,"64":3,"67":1,"101":1,"104":2,"177":6,"178":2,"181":6}}],["simplistic",{"2":{"177":1}}],["simplification",{"2":{"105":1}}],["simply",{"2":{"2":1,"10":1,"20":1,"24":1,"28":1,"29":1,"47":1,"52":1,"64":1,"66":1,"86":2,"87":2,"93":1,"95":2,"104":1,"115":1,"116":1,"147":1,"177":1,"178":1,"181":10}}],["simplebm25retriever",{"2":{"177":1,"181":4}}],["simpleanswerer",{"2":{"64":2,"177":1,"181":8}}],["simplegenerator",{"2":{"64":2,"177":1,"181":5}}],["simplerefiner",{"2":{"64":1,"177":1,"181":6}}],["simpleretriever",{"2":{"64":5,"177":1,"181":11}}],["simplerephraser",{"2":{"62":1,"177":1,"181":4}}],["simplest",{"2":{"60":1,"64":1,"85":1,"181":1}}],["simpleindexer",{"2":{"58":2,"64":3,"177":1,"181":9}}],["simple",{"0":{"1":1,"34":1,"40":1,"45":1},"1":{"2":1},"2":{"7":1,"8":1,"10":1,"16":1,"22":1,"38":1,"42":1,"49":1,"52":1,"58":1,"74":2,"77":2,"83":1,"87":2,"120":1,"132":1,"175":1,"177":14,"178":1,"181":10}}],["scene",{"2":{"177":1}}],["scenarios",{"2":{"52":1,"178":2,"181":1}}],["science",{"2":{"162":1,"169":1}}],["scientific",{"2":{"58":1}}],["scientist",{"2":{"24":2}}],["scans",{"2":{"177":3}}],["scanned",{"2":{"176":1}}],["scan",{"2":{"150":1,"151":1,"177":4}}],["scaled",{"2":{"181":1}}],["scale",{"2":{"58":1,"119":2,"120":2,"177":1,"181":6}}],["scoring=thompsonsampling",{"2":{"52":1,"178":1}}],["scoring",{"2":{"52":1,"119":1,"178":10,"181":1}}],["score==nothing",{"2":{"181":1}}],["scores2",{"2":{"181":3}}],["scores1",{"2":{"181":3}}],["scores=false",{"2":{"181":1}}],["scores",{"2":{"52":1,"58":1,"64":5,"119":1,"178":7,"181":28}}],["scored",{"2":{"21":1,"51":1,"52":1,"178":1}}],["scoreparametersstringstringstringsubstrin",{"2":{"7":1}}],["scoreretrieval",{"2":{"7":1}}],["score",{"2":{"6":3,"7":10,"10":2,"52":20,"58":1,"64":12,"119":2,"177":5,"178":32,"181":35}}],["scope",{"2":{"52":1,"178":1}}],["script",{"2":{"177":2}}],["scripting",{"2":{"168":2}}],["scratch",{"2":{"52":1,"177":2}}],["scratches",{"2":{"36":1}}],["scrollable",{"2":{"24":1}}],["screenshot",{"2":{"20":3,"176":1,"177":4}}],["schema=myschema",{"2":{"178":1}}],["schema=json3",{"2":{"106":2}}],["schema=openaischema",{"2":{"91":1,"177":1}}],["schema=pt",{"2":{"84":1}}],["schema",{"0":{"37":1,"84":1},"2":{"0":5,"10":2,"22":5,"23":2,"26":1,"27":1,"29":1,"30":1,"31":1,"32":1,"34":1,"37":7,"40":2,"41":2,"42":2,"52":4,"84":5,"90":2,"91":7,"99":1,"100":1,"104":2,"105":7,"106":5,"177":177,"178":5}}],["schemas",{"0":{"100":1},"2":{"0":1,"91":1,"98":1,"100":2,"177":2}}],["satisfactory",{"2":{"139":2}}],["satisfy",{"2":{"128":1,"140":1}}],["saving",{"2":{"64":1,"177":2,"181":2}}],["saverschema",{"2":{"91":7,"177":16}}],["saves",{"2":{"52":1,"177":4,"178":2,"181":1}}],["saved",{"2":{"11":1,"24":2,"52":2,"64":1,"87":1,"91":1,"93":1,"103":1,"177":7,"178":2,"181":4}}],["save",{"2":{"2":2,"4":1,"7":1,"13":1,"24":4,"43":1,"52":2,"63":2,"72":1,"77":2,"87":3,"89":3,"91":2,"93":1,"106":1,"177":27,"178":1}}],["safety",{"2":{"67":1,"177":1}}],["safely",{"2":{"52":1,"177":1}}],["safe",{"2":{"52":4,"177":6}}],["sampling",{"2":{"177":1,"178":5}}],["samplenode",{"2":{"52":25,"177":1,"178":45}}],["sample",{"2":{"52":23,"177":11,"178":58,"181":1}}],["samples=1",{"2":{"52":2,"178":2}}],["samples=2`",{"2":{"21":1,"51":1,"52":1,"178":1}}],["samples",{"2":{"21":3,"49":3,"51":3,"52":33,"177":4,"178":55}}],["same",{"2":{"6":1,"10":2,"11":1,"21":2,"45":1,"49":3,"51":1,"52":2,"64":3,"67":2,"74":1,"78":1,"86":2,"87":1,"93":1,"102":1,"104":2,"105":1,"128":1,"129":1,"177":18,"178":9,"181":18}}],["salty",{"2":{"87":2,"177":2}}],["salt",{"2":{"19":2}}],["san",{"2":{"19":1}}],["says",{"2":{"75":1,"138":2,"139":2,"140":2}}],["say",{"2":{"12":1,"21":2,"22":1,"23":3,"26":2,"27":1,"28":1,"29":3,"30":1,"31":1,"32":1,"34":1,"35":1,"37":2,"45":2,"51":2,"52":2,"85":1,"87":3,"90":6,"91":3,"96":1,"105":1,"108":1,"110":1,"115":1,"116":1,"177":22,"178":11}}],["said",{"2":{"10":1,"49":1,"104":1,"177":2}}],["sorted",{"2":{"181":1}}],["sorry",{"2":{"177":3}}],["soft",{"2":{"76":2}}],["solve",{"2":{"164":1,"166":1,"167":1,"172":2}}],["solving",{"2":{"140":1,"164":2,"166":2,"167":2,"172":1}}],["solutions",{"2":{"93":1}}],["solution",{"2":{"73":1,"128":2,"164":1,"166":1,"167":1,"172":1,"177":2}}],["solid",{"2":{"67":1,"177":6,"181":1}}],["source=",{"2":{"181":1}}],["source2",{"2":{"64":1,"181":1}}],["source1",{"2":{"64":1,"181":1}}],["sourced",{"2":{"10":1}}],["source",{"0":{"82":1},"2":{"5":1,"6":1,"10":1,"13":1,"23":1,"24":1,"26":1,"52":14,"55":1,"58":1,"64":17,"67":7,"82":1,"87":1,"106":2,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":2,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":2,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":2,"175":1,"176":1,"177":152,"178":38,"179":2,"180":1,"181":159}}],["sources=false",{"2":{"181":1}}],["sources=map",{"2":{"58":1}}],["sources",{"2":{"4":2,"6":1,"58":3,"64":17,"181":50}}],["so",{"2":{"4":1,"7":1,"15":2,"18":1,"21":4,"23":2,"24":1,"26":2,"30":1,"31":2,"37":1,"47":1,"51":1,"52":1,"60":1,"64":3,"67":1,"73":1,"74":2,"75":1,"79":1,"87":2,"101":1,"103":1,"105":3,"106":5,"112":1,"128":1,"129":1,"150":1,"177":21,"178":3,"180":1,"181":4}}],["sometimes",{"2":{"106":1,"116":1}}],["something",{"2":{"30":1,"31":1,"36":1,"37":1,"105":1,"158":2}}],["somewhere",{"2":{"103":1}}],["some",{"2":{"2":2,"7":1,"8":1,"10":1,"20":2,"21":2,"22":1,"24":2,"27":1,"28":1,"32":1,"37":2,"51":1,"52":1,"58":4,"60":3,"63":1,"64":2,"66":2,"67":1,"83":1,"86":1,"93":1,"101":1,"103":2,"104":1,"106":3,"115":2,"151":1,"160":1,"162":1,"164":1,"172":1,"175":1,"177":24,"178":1,"181":12}}],["synthetic",{"2":{"181":2}}],["syntactically",{"2":{"140":1}}],["syntax",{"2":{"2":1,"13":1,"20":1,"21":1,"24":4,"51":1,"52":1,"74":1,"86":1,"87":1,"89":1,"106":1,"140":3,"158":1,"163":1,"166":3,"167":3,"171":1,"177":4,"178":2}}],["sync",{"2":{"177":1}}],["synced",{"2":{"72":1,"93":1}}],["synonyms",{"2":{"124":2}}],["symphony",{"2":{"67":1,"177":1}}],["symbols",{"2":{"177":1,"181":3}}],["symbolic",{"2":{"90":1}}],["symbol=",{"2":{"64":1,"178":1,"181":1}}],["symbol",{"2":{"6":1,"13":2,"24":3,"58":1,"64":3,"87":2,"103":1,"177":34,"178":6,"181":32}}],["system+user",{"2":{"178":1}}],["systematic",{"2":{"164":1,"166":1,"167":1,"172":1}}],["system=",{"2":{"87":1,"91":1,"103":1,"177":3}}],["systemmessage",{"2":{"12":3,"24":3,"36":1,"46":1,"85":1,"87":2,"90":3,"102":1,"103":2,"105":1,"177":11}}],["systems",{"2":{"10":1,"67":2,"104":1,"118":1,"177":5}}],["system",{"0":{"1":1,"60":1},"1":{"2":1},"2":{"3":1,"12":1,"13":2,"17":2,"24":2,"47":2,"52":1,"58":2,"60":2,"78":1,"87":3,"90":3,"100":1,"102":1,"103":3,"105":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":5,"148":2,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":51,"178":2}}],["stemmer",{"2":{"181":2}}],["stemmer=nothing",{"2":{"181":1}}],["stemming",{"2":{"181":1}}],["steroids",{"2":{"106":1}}],["step=4",{"2":{"181":1}}],["steps`",{"2":{"151":1}}],["steps",{"2":{"24":1,"58":3,"60":1,"63":1,"64":4,"104":1,"105":1,"128":4,"150":1,"151":14,"158":1,"164":1,"166":1,"167":1,"177":2,"181":9}}],["step",{"2":{"2":1,"8":1,"21":2,"51":2,"52":3,"56":1,"58":4,"60":7,"62":3,"63":2,"64":10,"86":1,"87":1,"90":2,"103":1,"105":4,"106":1,"115":1,"116":1,"122":1,"123":1,"125":1,"126":1,"128":6,"129":4,"130":2,"138":2,"139":2,"140":2,"142":2,"160":2,"162":2,"164":2,"172":2,"177":2,"178":3,"181":21}}],["stop",{"2":{"76":1,"177":2,"181":1}}],["stopwords",{"2":{"66":2,"181":4}}],["stood",{"2":{"67":1,"177":1}}],["storage",{"2":{"177":1,"181":2}}],["storyteller",{"2":{"169":1}}],["storytellerexplainshap",{"0":{"169":1}}],["storytelling",{"2":{"169":1}}],["story",{"2":{"67":4,"169":6,"177":4}}],["storing",{"2":{"64":1,"181":8}}],["store",{"2":{"85":1,"87":3,"177":17}}],["stored",{"2":{"52":2,"64":1,"178":2,"181":1}}],["stores",{"2":{"10":1,"49":1,"52":2,"104":1,"177":3,"178":2,"181":3}}],["stipple",{"2":{"58":1}}],["still",{"2":{"1":1,"58":1,"73":1,"177":2}}],["stylistic",{"2":{"138":2}}],["styling",{"2":{"58":1,"181":5}}],["styled",{"2":{"181":1}}],["styles=",{"2":{"181":3}}],["styles",{"2":{"177":2,"181":10}}],["styler=rt",{"2":{"181":4}}],["styler",{"2":{"177":1,"181":21}}],["style=",{"2":{"67":1,"177":6,"181":1}}],["style",{"2":{"2":1,"5":2,"6":1,"7":11,"64":1,"67":1,"90":1,"96":1,"138":2,"142":1,"143":1,"145":1,"148":1,"165":1,"169":1,"173":1,"177":11,"181":12}}],["stdout",{"2":{"52":12,"177":17,"178":1}}],["stub",{"2":{"177":1}}],["stumbled",{"2":{"46":1,"177":1}}],["study",{"2":{"150":1}}],["studying",{"2":{"5":1,"7":1,"151":1}}],["studies",{"2":{"58":1}}],["studied",{"2":{"5":1,"7":1}}],["studio",{"0":{"43":1},"1":{"44":1,"45":1,"46":1,"47":1},"2":{"43":2,"47":1,"177":2}}],["strength",{"2":{"181":2}}],["stream",{"2":{"177":9,"181":3}}],["strong",{"2":{"177":4}}],["strongly",{"2":{"10":1}}],["stranger",{"2":{"67":1,"177":1}}],["strategies",{"2":{"63":1}}],["strategy",{"2":{"2":1,"63":5,"64":2,"181":5}}],["strict",{"2":{"138":1,"142":1,"143":1,"145":1}}],["strictly",{"2":{"63":1,"118":1,"151":1,"165":1,"173":1}}],["strin",{"2":{"106":1}}],["string=",{"2":{"67":2,"177":4}}],["strings",{"2":{"7":1,"64":3,"66":3,"67":5,"177":19,"181":16}}],["string",{"0":{"35":1},"2":{"7":4,"10":1,"13":5,"19":1,"21":1,"24":8,"31":2,"37":1,"45":1,"51":1,"52":17,"58":6,"64":4,"66":6,"67":29,"86":4,"87":5,"90":1,"91":1,"95":2,"104":1,"105":2,"106":15,"157":1,"165":1,"166":1,"167":1,"173":1,"177":216,"178":16,"179":1,"181":34}}],["stripping",{"2":{"126":1}}],["strip",{"2":{"67":1,"124":1,"126":1,"177":1}}],["struggle",{"2":{"52":1,"178":1}}],["structural",{"2":{"138":1}}],["structures",{"2":{"148":1,"166":1,"167":1,"178":1}}],["structured",{"2":{"10":1,"19":1,"31":1,"60":1,"104":1,"106":1,"142":1,"143":1,"145":1,"177":4}}],["structure",{"2":{"10":1,"19":1,"52":4,"67":3,"104":1,"150":2,"151":3,"152":1,"176":1,"177":9,"178":3,"181":2}}],["structtypes",{"2":{"106":1}}],["structs",{"2":{"64":1,"102":1,"106":1,"177":1,"181":1}}],["struct",{"2":{"10":2,"19":4,"31":1,"49":2,"52":4,"58":1,"60":3,"64":1,"86":5,"104":2,"106":7,"112":1,"177":32,"178":4,"181":8}}],["str",{"0":{"95":1},"2":{"15":1,"67":1,"95":2,"96":4,"177":29,"181":1}}],["stands",{"2":{"177":1}}],["standards",{"2":{"138":1}}],["standard",{"0":{"35":1},"2":{"52":2,"64":1,"166":1,"167":1,"177":5,"181":7}}],["stays",{"2":{"74":1,"118":1,"178":1}}],["stage",{"2":{"64":1,"90":1,"181":13}}],["stabilizes",{"2":{"56":1,"178":1}}],["stark",{"2":{"177":1}}],["stars",{"2":{"67":3,"177":3}}],["star",{"2":{"12":1,"36":1,"46":1,"177":5}}],["start=1",{"2":{"181":1}}],["start|>assistant",{"2":{"177":1}}],["start|>user",{"2":{"177":1}}],["start>system",{"2":{"177":1}}],["startup",{"2":{"81":2,"177":1}}],["starter",{"2":{"58":1}}],["started",{"0":{"92":1},"1":{"93":1,"94":1,"95":1,"96":1},"2":{"56":1,"69":1}}],["starting",{"2":{"52":1,"134":1,"136":1,"177":3,"178":2}}],["starts",{"2":{"52":1,"177":2,"178":2}}],["startswith",{"2":{"52":1,"178":1}}],["start",{"0":{"95":1},"2":{"1":1,"19":1,"24":2,"28":2,"76":1,"78":1,"93":2,"95":1,"97":1,"158":1,"177":2,"178":1,"181":8}}],["status",{"2":{"177":23,"178":2}}],["statistical",{"2":{"58":1}}],["statistics",{"2":{"1":1}}],["stats",{"2":{"52":23,"178":33}}],["stated",{"2":{"140":1}}],["stateless",{"2":{"101":1}}],["state",{"2":{"19":1,"52":2,"69":1,"106":1,"177":1,"178":2}}],["statements",{"2":{"86":1,"165":1,"173":1,"177":1}}],["statement",{"2":{"17":2,"77":1,"101":1,"102":1,"135":4,"136":1,"177":6}}],["states",{"2":{"6":1}}],["splatting",{"2":{"181":1}}],["spliter",{"2":{"88":1}}],["splitters",{"2":{"67":1,"177":1}}],["splitter",{"2":{"66":2,"67":10,"88":2,"177":13,"181":1}}],["splitting",{"2":{"64":2,"67":11,"177":12,"181":3}}],["splits",{"2":{"64":1,"67":1,"177":1,"181":7}}],["split",{"2":{"8":1,"21":2,"51":2,"52":1,"64":1,"66":3,"67":14,"88":3,"150":1,"158":1,"177":16,"178":4,"181":4}}],["speaking",{"2":{"91":1,"177":3}}],["speak",{"2":{"87":3,"169":1,"177":4}}],["spend",{"2":{"76":1}}],["spending",{"0":{"76":1},"2":{"72":1,"76":1,"95":1}}],["speeds",{"2":{"181":3}}],["speed",{"2":{"41":1}}],["spec",{"2":{"177":2}}],["specs",{"2":{"177":1}}],["specialist",{"2":{"134":1,"136":1}}],["specializes",{"2":{"152":1}}],["specialized",{"2":{"52":1,"122":1,"138":1,"139":1,"178":2}}],["specializing",{"2":{"123":1,"125":1}}],["special",{"2":{"112":4,"113":2,"118":3,"150":2,"151":2,"154":2,"165":2,"166":2,"167":2,"169":2,"173":5,"181":2}}],["specifying",{"2":{"64":1,"177":1,"181":1}}],["specify",{"2":{"15":1,"45":1,"62":1,"64":2,"67":1,"84":2,"106":1,"128":1,"177":14,"181":4}}],["specified",{"2":{"63":1,"64":1,"67":2,"91":1,"138":1,"152":2,"177":10,"178":3,"181":6}}],["specifies",{"2":{"11":1,"52":1,"178":1}}],["specification",{"2":{"100":1,"106":1,"177":1}}],["specifications",{"2":{"67":1,"106":1,"177":1}}],["specifically",{"2":{"0":1,"112":1,"177":2}}],["specific",{"2":{"0":2,"6":1,"10":1,"13":2,"23":2,"24":1,"26":2,"30":1,"31":1,"37":1,"57":1,"66":1,"67":2,"89":1,"103":1,"104":1,"106":2,"118":1,"122":2,"124":3,"128":2,"129":1,"138":1,"139":2,"140":3,"142":1,"143":1,"145":1,"151":2,"166":1,"167":1,"169":1,"177":10,"181":1}}],["spectacles",{"2":{"36":1}}],["spiders",{"2":{"177":1}}],["spider",{"2":{"18":1,"86":1,"177":1}}],["span",{"2":{"181":1}}],["spanish",{"2":{"14":1}}],["spain",{"2":{"95":2,"96":2}}],["sparrow",{"2":{"87":4,"177":5}}],["sparse",{"2":{"63":1,"181":5}}],["sparsearrays",{"2":{"1":2,"56":1,"181":4}}],["spawn",{"2":{"41":1,"177":1}}],["spaces",{"2":{"181":3}}],["space",{"2":{"23":1,"26":1,"67":1,"177":1}}],["s",{"2":{"1":1,"2":2,"3":1,"4":1,"5":2,"6":2,"7":2,"10":2,"11":2,"13":1,"15":1,"18":1,"19":4,"20":1,"21":1,"22":3,"24":6,"32":1,"34":1,"35":1,"37":1,"38":1,"43":2,"47":1,"49":1,"51":1,"52":12,"56":1,"58":5,"60":2,"62":1,"64":8,"67":7,"69":1,"71":3,"74":1,"77":1,"78":2,"83":3,"85":5,"86":4,"87":3,"88":1,"90":1,"98":1,"100":2,"103":1,"104":2,"105":3,"106":14,"115":1,"116":1,"119":3,"120":2,"128":2,"129":1,"136":1,"138":8,"139":5,"140":11,"142":2,"143":2,"145":3,"148":1,"150":2,"151":1,"158":2,"160":2,"162":2,"165":3,"169":2,"173":1,"177":77,"178":19,"181":24}}],["seq",{"2":{"177":5}}],["sequentially",{"2":{"41":1,"52":2,"177":1,"178":2}}],["sequences",{"2":{"67":1,"177":1,"181":1}}],["sequence",{"2":{"21":2,"67":2,"101":1,"177":6}}],["sedan",{"2":{"177":1}}],["segments",{"2":{"67":2,"177":2}}],["segment",{"2":{"64":1,"181":1}}],["separator=",{"2":{"67":1,"177":1}}],["separator",{"2":{"67":9,"177":9,"178":1}}],["separators",{"2":{"64":1,"67":19,"88":4,"177":20,"181":7}}],["separators=",{"2":{"60":1,"64":1,"67":4,"177":4,"181":1}}],["separated",{"2":{"177":1,"178":1,"181":1}}],["separate",{"2":{"2":1,"17":1,"56":1,"158":1,"162":1,"177":3,"178":2,"180":1,"181":2}}],["selects",{"2":{"178":1}}],["selection",{"2":{"178":2}}],["selecting",{"2":{"177":1}}],["selectively",{"2":{"52":1,"178":1}}],["select",{"2":{"58":1,"95":1,"112":1,"134":1,"136":3,"156":1,"177":1,"178":7}}],["selected",{"2":{"13":1,"28":1,"64":1,"90":1,"156":5,"177":3,"181":1}}],["self",{"2":{"48":1,"86":1,"104":1,"128":1,"177":1,"178":1}}],["sessions",{"2":{"79":1,"177":2,"178":1}}],["session",{"2":{"37":1,"52":1,"81":1,"177":1,"178":7}}],["sense",{"2":{"106":1,"177":1}}],["sensitive",{"2":{"22":1,"66":1,"83":1,"177":1}}],["sender",{"2":{"177":4}}],["sends",{"2":{"64":1,"179":1,"181":1}}],["send",{"2":{"52":1,"74":1,"85":1,"86":1,"100":1,"101":1,"105":1,"177":3,"178":1}}],["sending",{"2":{"23":1,"27":1,"66":1,"85":1,"87":2,"177":12}}],["senior",{"2":{"24":2}}],["sentences",{"2":{"58":3,"64":3,"66":3,"67":3,"88":1,"158":1,"169":1,"177":4,"181":11}}],["sentence",{"2":{"31":1,"58":1,"64":4,"66":1,"67":6,"77":1,"88":2,"106":3,"177":6,"181":6}}],["sentiment",{"2":{"17":1}}],["sent",{"0":{"90":1},"2":{"0":1,"22":1,"75":1,"83":1,"90":3,"100":1,"106":1,"177":6,"181":3}}],["several",{"2":{"22":1,"32":1,"106":1,"128":1,"152":1,"158":2,"177":3}}],["seven",{"2":{"7":1}}],["secret",{"2":{"72":1,"93":1,"169":1}}],["secrets",{"2":{"67":4,"177":4}}],["sections",{"2":{"151":2,"158":4,"162":1,"177":2}}],["section",{"2":{"17":1,"22":1,"32":1,"56":1,"69":1,"72":1,"93":1,"96":1,"97":1,"150":2,"151":2,"158":1,"162":1}}],["seconds",{"2":{"10":1,"11":1,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"52":3,"74":1,"85":1,"95":2,"96":1,"104":1,"177":18,"178":2}}],["second",{"2":{"7":4,"64":1,"67":3,"85":1,"105":3,"177":5,"178":1,"181":4}}],["seas",{"2":{"87":2,"177":2}}],["seats",{"2":{"86":2}}],["sea",{"2":{"67":1,"177":1}}],["searches",{"2":{"177":3}}],["searching",{"2":{"177":2,"181":1}}],["search",{"2":{"11":1,"13":1,"16":1,"21":2,"24":3,"49":1,"52":2,"54":1,"55":11,"58":4,"63":2,"64":4,"87":1,"110":2,"112":2,"113":2,"115":1,"116":12,"123":2,"124":3,"125":5,"177":8,"178":4,"179":12,"180":1,"181":32}}],["seamless",{"0":{"11":1},"2":{"0":1}}],["semantic",{"2":{"8":1,"16":1,"125":1,"181":3}}],["semi",{"2":{"6":1,"7":4}}],["semijoin",{"2":{"6":1}}],["setter",{"2":{"181":1}}],["settings",{"2":{"78":1,"178":1}}],["setting",{"0":{"76":1,"79":1},"2":{"52":1,"62":1,"88":1,"177":1,"178":1}}],["setpropertynested",{"2":{"64":2,"177":1,"181":7}}],["setup",{"0":{"83":1},"2":{"22":1,"69":1,"78":1,"82":1,"93":1,"165":1,"173":1,"178":1}}],["sets",{"2":{"4":1,"5":4,"6":2,"7":5,"64":1,"106":1,"118":1,"177":1,"178":1,"181":5}}],["set",{"0":{"7":1,"73":2},"2":{"3":2,"4":1,"7":5,"8":1,"10":2,"12":1,"15":1,"18":1,"21":2,"23":1,"24":1,"27":1,"29":2,"30":2,"31":2,"37":2,"48":1,"51":2,"52":20,"54":1,"56":1,"57":2,"58":1,"60":2,"64":5,"65":1,"66":1,"67":1,"72":1,"73":2,"74":1,"76":2,"78":5,"79":2,"84":1,"85":1,"86":1,"93":5,"104":1,"106":2,"112":1,"125":1,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"177":51,"178":13,"181":18}}],["seem",{"2":{"177":1}}],["seems",{"2":{"177":2}}],["seel",{"2":{"52":1,"178":1}}],["seek",{"2":{"12":1,"36":1,"46":1}}],["see",{"0":{"90":1},"2":{"2":3,"7":1,"8":3,"10":4,"13":3,"17":1,"19":1,"21":1,"22":1,"23":3,"24":4,"26":2,"32":2,"43":1,"49":2,"52":11,"55":1,"56":1,"58":4,"63":1,"64":9,"69":1,"70":1,"74":2,"75":1,"78":2,"79":2,"80":1,"82":1,"83":2,"84":1,"85":1,"86":1,"88":1,"90":4,"91":1,"93":2,"96":1,"97":1,"100":1,"103":2,"104":4,"106":8,"110":1,"177":74,"178":17,"179":1,"181":39}}],["serializable",{"2":{"177":2}}],["serialization",{"2":{"1":1,"87":1,"103":1}}],["serialized",{"2":{"91":1}}],["serializes",{"2":{"91":1}}],["series",{"2":{"67":1,"177":2}}],["serves",{"2":{"58":1}}],["serve",{"2":{"46":1,"83":1}}],["serverpreference",{"2":{"177":1}}],["server`",{"2":{"177":1}}],["servers",{"2":{"177":1}}],["server",{"0":{"28":1},"2":{"0":2,"25":1,"28":4,"32":1,"177":16}}],["services",{"2":{"71":1}}],["service",{"2":{"23":1,"26":1,"71":1,"83":1}}],["sun",{"2":{"181":3}}],["sunnweiwei",{"2":{"110":1,"181":1}}],["sum",{"2":{"177":2}}],["summarizing",{"2":{"150":1,"151":1,"152":1}}],["summarize",{"2":{"128":1,"150":2,"151":1}}],["summary",{"2":{"67":1,"150":1,"151":5,"166":1,"167":1,"169":1,"175":1,"177":1}}],["suitability",{"2":{"140":1}}],["suitable",{"2":{"22":1,"67":1,"136":1,"142":1,"143":1,"145":1,"156":1,"158":2,"177":2}}],["suggesting",{"2":{"177":1}}],["suggestion",{"2":{"139":1,"140":1}}],["suggestions",{"2":{"24":1,"138":5,"139":5,"140":5}}],["suggests",{"2":{"148":1}}],["suggested",{"2":{"128":1}}],["suggest",{"2":{"128":1,"129":1}}],["suffix",{"2":{"52":3,"177":5}}],["suffering",{"2":{"46":1,"177":2}}],["super",{"2":{"150":1,"151":1}}],["supertype",{"2":{"99":1}}],["superseded",{"2":{"37":1}}],["supplied",{"2":{"10":1,"49":1,"52":1,"104":1,"178":1}}],["suppose",{"2":{"5":1,"7":1}}],["support",{"2":{"23":2,"27":1,"43":1,"57":1,"58":2,"64":11,"71":1,"177":7,"181":22}}],["supports",{"2":{"0":1,"177":2,"181":2}}],["supported",{"2":{"0":1,"10":1,"38":1,"57":1,"64":2,"106":2,"177":5,"181":4}}],["survey",{"2":{"152":5,"154":1}}],["surrounding",{"2":{"64":1,"181":7}}],["surface",{"2":{"13":1,"60":1,"156":1,"177":2}}],["sure",{"2":{"4":1,"7":1,"8":1,"32":2,"52":1,"64":1,"78":2,"93":2,"106":1,"136":1,"160":1,"162":1,"177":4,"178":1,"181":5}}],["subdocumenttermmatrix",{"2":{"177":1,"181":2}}],["subchunkindex",{"2":{"177":1,"181":5}}],["subcomponents",{"2":{"64":1,"181":1}}],["subject",{"2":{"158":2}}],["subheadings",{"2":{"150":2}}],["subheading",{"2":{"150":1}}],["submitted",{"2":{"71":1,"138":1}}],["sub",{"2":{"58":1,"60":1,"64":6,"77":1,"105":1,"152":1,"177":4,"181":18}}],["subseq",{"2":{"177":5}}],["subsequence",{"2":{"66":6,"67":17,"177":25}}],["subsequent",{"2":{"52":1,"67":1,"86":1,"177":3,"178":3}}],["subset",{"2":{"165":1,"173":1,"181":5}}],["substantial",{"2":{"151":1}}],["substring",{"2":{"58":2,"177":5,"181":2}}],["subarray",{"2":{"40":1}}],["subfolder",{"2":{"11":3}}],["subfolders",{"2":{"11":1}}],["subtype",{"2":{"0":1,"99":1}}],["subtypes",{"2":{"0":1,"52":2,"61":2,"64":3,"100":2,"178":2,"181":4}}],["suceeding",{"2":{"181":1}}],["succinct",{"2":{"122":1}}],["successfully",{"2":{"52":2,"124":1,"177":3,"178":1}}],["successful",{"2":{"52":5,"86":1,"106":1,"113":1,"177":2,"178":8}}],["success",{"2":{"4":1,"52":7,"86":2,"177":9,"178":13}}],["succeeding",{"2":{"2":1}}],["such",{"2":{"0":1,"52":1,"91":1,"112":1,"138":3,"140":1,"156":1,"177":9,"178":1,"181":2}}],["iobuffer",{"2":{"181":1}}],["io",{"2":{"177":22,"181":17}}],["illustrated",{"2":{"153":1,"154":1}}],["illustrate",{"2":{"152":1,"159":1,"161":1,"168":1}}],["i>macro",{"2":{"177":1}}],["i>method",{"2":{"177":5,"181":1}}],["i>",{"2":{"67":1,"177":6,"181":1}}],["i>function",{"2":{"67":1}}],["iphone",{"2":{"12":4,"36":2,"46":1,"177":7}}],["ignored",{"2":{"177":1}}],["ignore",{"2":{"11":4,"169":1}}],["immediate",{"2":{"177":1}}],["immediately",{"2":{"87":1,"175":1,"177":1,"181":2}}],["im",{"2":{"177":2}}],["imagine",{"2":{"11":1,"77":1}}],["image",{"0":{"20":1},"2":{"10":2,"20":7,"38":6,"104":2,"175":7,"176":1,"177":88}}],["images",{"0":{"38":1},"2":{"10":2,"20":1,"37":1,"38":1,"55":2,"102":2,"104":2,"177":17,"179":2}}],["improper",{"2":{"140":1}}],["improving",{"2":{"14":1,"52":1,"139":1,"140":1,"178":1}}],["improved",{"2":{"128":1,"129":1}}],["improvements",{"2":{"128":2,"129":2,"138":1,"140":1}}],["improvement",{"2":{"71":1,"128":4,"138":1,"139":1}}],["improves",{"2":{"19":1}}],["improve",{"2":{"8":1,"21":1,"51":1,"52":1,"63":2,"71":3,"116":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":6,"130":1,"139":1,"177":2,"178":2,"181":2}}],["imprints",{"2":{"67":1,"177":1}}],["impact",{"2":{"58":1,"118":1,"138":2}}],["impartial",{"2":{"17":1,"119":2,"120":1,"135":1}}],["impermanence",{"2":{"12":1}}],["imported",{"2":{"180":1}}],["imports",{"2":{"52":2,"177":7}}],["important",{"2":{"8":1,"64":2,"112":2,"124":1,"150":2,"152":1,"160":1,"162":1,"177":3,"181":2}}],["import",{"2":{"1":1,"21":1,"24":2,"32":1,"43":1,"48":1,"53":1,"56":1,"66":1,"84":1,"177":2,"181":1}}],["implementing",{"2":{"177":1}}],["implement",{"2":{"51":1,"52":1,"58":1,"178":1}}],["implements",{"2":{"49":1,"178":2}}],["implemented",{"2":{"0":1,"104":1,"181":4}}],["implementations",{"2":{"58":1,"61":1}}],["implementation",{"2":{"0":1,"58":1,"110":1,"128":1,"129":2,"177":7,"181":12}}],["ie",{"2":{"10":3,"24":1,"52":4,"56":1,"63":1,"64":2,"66":1,"67":2,"74":1,"77":1,"87":2,"88":1,"102":1,"104":3,"106":1,"177":17,"178":7,"181":16}}],["irrelevant",{"2":{"8":1,"116":1}}],["idx",{"2":{"181":3}}],["idiomatic",{"2":{"128":1}}],["idempotent",{"2":{"177":10}}],["identity",{"2":{"177":5,"181":1}}],["identifies",{"2":{"177":2}}],["identified",{"2":{"124":1,"152":1,"181":2}}],["identifiers",{"2":{"64":1,"110":1,"112":1,"177":2,"181":1}}],["identifier",{"2":{"64":1,"110":1,"112":1,"177":11,"178":1,"181":6}}],["identifying",{"2":{"177":2}}],["identify",{"2":{"112":1,"128":1,"139":1,"140":1,"151":1,"152":1}}],["identical",{"2":{"66":1,"106":1,"181":1}}],["ideal",{"2":{"160":1}}],["ideally",{"2":{"1":1,"2":1,"3":1,"156":2,"177":2}}],["ideas",{"2":{"8":1,"175":1}}],["idea",{"2":{"5":1,"13":1,"177":3}}],["id`",{"2":{"52":1,"178":1}}],["ids",{"2":{"7":2,"134":1,"136":1,"177":11,"181":3}}],["id",{"2":{"7":11,"52":53,"58":1,"64":3,"91":2,"134":1,"177":70,"178":69,"181":19}}],["id=",{"2":{"7":2,"67":1,"177":6,"181":1}}],["i",{"0":{"70":1,"89":1,"90":1},"2":{"2":1,"11":1,"12":5,"13":4,"21":2,"22":1,"23":5,"24":1,"26":5,"30":3,"31":5,"34":1,"35":1,"36":5,"37":1,"45":2,"46":2,"51":2,"52":3,"58":1,"67":2,"85":4,"86":2,"88":1,"90":5,"105":1,"106":7,"113":1,"128":2,"129":2,"130":2,"177":47,"178":10,"181":6}}],["if",{"0":{"70":1},"2":{"1":1,"2":1,"10":5,"13":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":2,"22":1,"23":2,"24":4,"26":2,"27":1,"28":1,"32":1,"34":1,"37":2,"43":1,"49":2,"51":3,"52":40,"57":2,"58":2,"60":1,"62":2,"63":3,"64":21,"66":1,"67":8,"73":5,"74":5,"75":2,"77":2,"83":1,"84":1,"85":1,"86":6,"87":5,"91":3,"95":1,"96":1,"100":1,"104":4,"106":6,"108":1,"112":2,"113":2,"115":5,"116":6,"118":2,"128":3,"129":1,"135":1,"136":2,"138":2,"139":3,"140":3,"150":4,"151":2,"152":1,"154":1,"158":2,"165":3,"166":1,"167":2,"169":2,"172":1,"173":3,"177":186,"178":47,"181":60}}],["inherit",{"2":{"181":1}}],["inactive",{"2":{"177":2}}],["inactived",{"2":{"177":1}}],["inanimate",{"2":{"46":1}}],["inefficiencies",{"2":{"140":1}}],["inline",{"2":{"128":3}}],["initializes",{"2":{"177":1}}],["initialized",{"2":{"177":11}}],["initialize",{"2":{"177":13}}],["initialisms",{"2":{"124":1}}],["initiate",{"2":{"52":1,"177":1,"178":1}}],["injects",{"2":{"124":1}}],["injected",{"2":{"110":1,"181":1}}],["inject",{"2":{"95":1,"177":1}}],["inverse",{"2":{"181":2}}],["investigating",{"2":{"181":3}}],["investigate",{"2":{"58":1}}],["involve",{"2":{"177":2}}],["involved",{"2":{"0":1}}],["invalid",{"2":{"52":2,"64":2,"177":2,"181":2}}],["inferred",{"2":{"177":1}}],["inferfaces",{"2":{"177":1}}],["influential",{"2":{"169":1}}],["influence",{"2":{"52":1,"106":1,"178":1}}],["informal",{"2":{"158":1}}],["informative",{"2":{"150":1,"151":1,"162":1}}],["information",{"2":{"0":2,"6":1,"10":1,"17":1,"19":1,"23":3,"26":3,"29":1,"30":1,"49":1,"52":2,"55":1,"56":1,"60":1,"64":4,"71":1,"74":1,"75":1,"80":1,"82":1,"83":1,"84":1,"88":1,"90":1,"98":1,"101":1,"102":2,"104":1,"106":1,"108":2,"115":2,"116":1,"118":4,"119":1,"120":1,"124":2,"126":1,"142":1,"143":1,"145":1,"150":1,"151":1,"158":1,"166":1,"167":1,"169":1,"177":59,"178":5,"179":1,"181":6}}],["informed",{"2":{"6":1}}],["info",{"2":{"4":1,"7":2,"10":1,"11":2,"20":2,"22":1,"23":1,"26":1,"30":1,"31":1,"52":10,"58":1,"67":2,"85":2,"86":2,"95":2,"96":1,"104":1,"106":1,"177":13,"178":10}}],["inplace",{"2":{"178":6}}],["inplace=true",{"2":{"52":1,"178":1}}],["input=",{"2":{"106":2}}],["input2",{"2":{"67":3,"177":3}}],["input1",{"2":{"67":3,"177":3}}],["inputclassifier",{"0":{"134":1},"2":{"18":1,"86":1,"177":3}}],["inputs",{"2":{"10":2,"21":1,"49":3,"51":1,"87":1,"98":1,"100":1,"103":1,"104":2,"106":1,"165":1,"173":1,"177":6,"181":3}}],["input",{"2":{"10":2,"18":4,"64":1,"86":2,"104":2,"106":3,"125":1,"134":7,"136":3,"169":1,"177":20,"181":18}}],["inches",{"2":{"177":1}}],["incredible",{"2":{"150":1}}],["increase",{"2":{"49":1,"76":1,"177":3,"178":1}}],["incorporating",{"2":{"181":2}}],["incorrect",{"2":{"140":1}}],["inconsistencies",{"2":{"139":1}}],["inconsistent",{"2":{"119":1}}],["incomplete",{"2":{"119":1,"177":1}}],["including",{"2":{"10":1,"17":1,"25":1,"49":1,"83":1,"106":1,"169":1,"177":18,"178":2,"181":3}}],["includes",{"2":{"7":1,"64":2,"82":1,"177":1,"178":2,"181":6}}],["included",{"2":{"7":1,"129":1,"151":1,"177":2,"180":1,"181":2}}],["include",{"2":{"2":1,"7":1,"10":1,"55":9,"58":2,"64":1,"104":1,"122":1,"123":1,"124":1,"140":1,"150":2,"151":1,"165":1,"173":1,"177":7,"179":9,"181":9}}],["indentation",{"2":{"181":1}}],["independent",{"2":{"178":1}}],["index>",{"2":{"181":1}}],["indexing",{"2":{"64":1,"166":1,"167":1,"181":1}}],["indexes",{"2":{"181":7}}],["indexed",{"2":{"63":2,"64":1,"181":1}}],["indexer",{"2":{"61":1,"64":12,"181":13}}],["index",{"2":{"2":16,"3":1,"4":2,"6":1,"7":1,"8":3,"10":1,"57":5,"58":11,"60":5,"61":5,"62":2,"63":5,"64":54,"177":2,"181":205}}],["industry",{"2":{"124":1}}],["indifferent",{"2":{"67":1,"177":1}}],["individual",{"2":{"52":2,"75":1,"119":1,"177":1,"178":2,"181":2}}],["indication",{"2":{"152":1}}],["indicating",{"2":{"64":1,"136":2,"177":15,"178":1,"181":13}}],["indicate",{"2":{"138":1,"140":1,"178":2}}],["indicated",{"2":{"110":1}}],["indicates",{"2":{"52":3,"169":1,"177":1,"178":4}}],["indices",{"2":{"8":1,"64":1,"177":2,"181":23}}],["inserting",{"2":{"181":1}}],["insert",{"2":{"177":1}}],["insufficient",{"2":{"75":1}}],["inside",{"2":{"52":2,"177":3}}],["insights",{"2":{"6":1,"150":5}}],["inspired",{"2":{"21":1,"52":1,"122":1,"123":1,"169":1,"177":3,"178":1}}],["inspect",{"2":{"13":1,"52":2,"177":2,"178":1}}],["instructor",{"2":{"177":3}}],["instruction",{"2":{"177":1,"181":3}}],["instructions>",{"2":{"173":4}}],["instructions=",{"2":{"64":1,"112":1,"113":1,"118":1,"150":1,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"181":2}}],["instructions",{"2":{"4":1,"47":1,"64":2,"101":1,"103":1,"108":1,"112":9,"113":5,"115":1,"116":1,"118":9,"119":1,"128":3,"134":1,"136":1,"138":6,"139":1,"140":2,"142":1,"143":1,"145":1,"150":7,"151":6,"152":3,"154":4,"156":2,"158":2,"162":1,"165":7,"166":4,"167":6,"169":9,"173":6,"175":1,"177":1,"181":2}}],["instruct",{"2":{"28":1,"106":1}}],["installation",{"0":{"94":1},"2":{"83":1}}],["installated",{"2":{"32":1}}],["installing",{"2":{"52":1,"177":2}}],["installed",{"2":{"22":1,"83":1,"94":2}}],["instant",{"0":{"81":1}}],["instantiating",{"2":{"181":1}}],["instantiation",{"2":{"52":2,"177":2}}],["instantiated",{"2":{"10":1,"49":1,"104":1,"177":1}}],["instance",{"2":{"10":2,"19":1,"49":2,"52":2,"60":1,"104":2,"169":3,"177":4,"178":18}}],["instead",{"2":{"15":1,"24":1,"67":1,"88":1,"128":1,"129":1,"169":1,"177":8,"181":2}}],["innerjoin",{"2":{"7":2}}],["inner",{"2":{"6":1,"7":5,"91":1}}],["int16",{"2":{"177":1}}],["intricate",{"2":{"177":5}}],["intro",{"2":{"67":2}}],["introduced",{"2":{"37":1}}],["introduction",{"0":{"48":1,"53":1,"56":1},"1":{"49":1,"50":1,"51":1,"52":1,"54":1,"55":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1},"2":{"5":1,"129":1}}],["int=60",{"2":{"181":1}}],["int=3",{"2":{"181":1}}],["int=32000",{"2":{"178":1}}],["int=35000",{"2":{"67":4,"177":4}}],["int=1",{"2":{"178":1}}],["int=512",{"2":{"52":1,"178":1}}],["int64",{"2":{"7":3,"13":1,"24":1,"40":1,"58":4,"87":1,"177":3}}],["int",{"2":{"7":1,"19":2,"52":18,"64":2,"67":2,"86":5,"177":40,"178":31,"181":38}}],["into",{"0":{"11":1},"2":{"2":3,"10":1,"17":1,"18":1,"40":1,"46":1,"52":1,"56":1,"58":1,"63":1,"64":7,"66":6,"67":6,"81":1,"87":1,"90":2,"94":1,"104":1,"106":4,"124":1,"126":1,"150":2,"151":2,"152":2,"177":27,"178":2,"181":25}}],["intelligent",{"2":{"110":1}}],["intelligence",{"2":{"16":1}}],["intent",{"2":{"125":1}}],["intention",{"2":{"60":1,"180":1}}],["intended",{"2":{"52":1,"63":2,"123":1,"125":1,"138":4,"177":2,"178":2,"181":1}}],["intends",{"2":{"47":1}}],["integrity",{"2":{"138":1}}],["integrates",{"2":{"58":1,"178":1}}],["integration",{"0":{"11":1},"2":{"0":2,"165":1,"173":1}}],["integer",{"2":{"55":1,"64":10,"86":1,"177":9,"179":1,"181":33}}],["integer=1",{"2":{"52":1,"178":2}}],["integers",{"2":{"7":1,"177":3,"181":1}}],["intersection",{"2":{"181":1}}],["interpolate",{"2":{"177":1}}],["interpolated",{"2":{"177":1}}],["interpolation",{"0":{"35":1},"2":{"95":1,"166":1,"167":1,"177":6}}],["interprets",{"2":{"148":1}}],["interested",{"2":{"106":1,"177":1}}],["interesting",{"2":{"36":1}}],["internally",{"2":{"64":1,"181":1}}],["internal",{"2":{"60":1,"64":1,"158":3,"177":1,"181":1}}],["interface",{"0":{"59":1},"1":{"60":1,"61":1,"62":1,"63":1},"2":{"56":1,"63":1,"177":2}}],["intermediate",{"2":{"6":1,"58":2}}],["interaction",{"2":{"178":2}}],["interactions",{"2":{"169":1,"177":2,"178":5}}],["interactive",{"2":{"52":1,"58":1,"178":2}}],["interact",{"2":{"1":1,"10":1,"20":1,"49":1,"52":2,"99":1,"104":1,"178":2}}],["in",{"0":{"2":1,"80":1},"2":{"0":1,"1":2,"2":9,"3":1,"4":2,"6":3,"7":24,"8":4,"10":8,"11":6,"12":1,"13":3,"14":1,"15":3,"17":1,"18":1,"19":4,"20":4,"21":5,"22":2,"23":3,"24":15,"26":2,"28":3,"30":2,"31":2,"32":1,"34":1,"36":1,"37":2,"43":3,"46":1,"47":1,"49":1,"51":3,"52":54,"54":1,"55":4,"57":4,"58":15,"60":6,"62":1,"63":3,"64":23,"65":1,"66":4,"67":7,"69":1,"71":2,"73":6,"74":3,"75":1,"76":1,"77":1,"78":4,"79":2,"81":1,"83":2,"85":4,"86":4,"87":7,"89":2,"90":1,"91":1,"93":4,"95":4,"96":1,"103":2,"104":8,"105":7,"106":16,"110":2,"112":3,"118":4,"119":3,"122":1,"123":2,"124":4,"125":1,"126":1,"128":7,"129":4,"130":1,"134":1,"136":1,"138":4,"139":2,"140":4,"142":4,"143":3,"145":2,"150":2,"151":2,"152":3,"155":1,"156":1,"158":7,"159":3,"161":2,"162":2,"163":1,"164":2,"165":1,"168":3,"171":1,"172":5,"173":3,"176":1,"177":191,"178":65,"179":4,"180":2,"181":133}}],["itr2",{"2":{"67":2,"177":2}}],["itr1",{"2":{"67":2,"177":2}}],["iters",{"2":{"177":1}}],["iterating",{"2":{"178":1}}],["iterative",{"2":{"177":1,"178":1}}],["iteratively",{"2":{"67":2,"130":1,"177":2,"178":2}}],["iterations",{"2":{"129":1}}],["iteration",{"2":{"67":1,"177":1,"178":2}}],["iterates",{"2":{"177":1}}],["iterate",{"2":{"52":1,"178":1}}],["itemsextract",{"2":{"177":10}}],["items",{"2":{"7":2,"8":1,"60":1,"64":2,"106":1,"112":2,"124":1,"177":11,"181":10}}],["item",{"2":{"4":1,"5":1,"6":1,"7":3,"52":1,"64":1,"177":1,"178":1,"181":11}}],["itself",{"2":{"19":1,"51":1,"64":1,"67":1,"177":4,"181":3}}],["its",{"2":{"10":2,"12":1,"21":2,"24":1,"43":1,"49":3,"51":2,"52":2,"58":2,"62":1,"64":4,"67":4,"84":1,"87":1,"88":1,"91":1,"99":1,"102":1,"104":2,"115":1,"116":1,"118":1,"125":1,"138":2,"139":1,"151":3,"162":1,"166":1,"167":1,"169":3,"175":1,"177":13,"178":6,"181":11}}],["it",{"0":{"77":2,"97":1},"1":{"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1},"2":{"0":3,"2":4,"4":2,"5":1,"7":1,"8":2,"10":14,"11":4,"12":4,"13":4,"15":1,"17":1,"18":3,"19":2,"21":8,"22":3,"23":2,"24":11,"26":1,"28":5,"29":3,"30":3,"31":4,"32":1,"34":1,"35":1,"36":3,"37":4,"38":1,"43":3,"47":1,"49":5,"51":6,"52":33,"54":1,"56":2,"57":1,"58":2,"60":1,"64":17,"66":1,"67":14,"69":1,"72":2,"73":4,"74":3,"75":2,"76":1,"77":2,"78":6,"79":1,"83":4,"84":2,"85":4,"86":8,"87":13,"88":1,"89":2,"90":2,"91":2,"93":6,"95":1,"97":3,"98":1,"99":1,"100":3,"101":2,"102":1,"103":4,"104":13,"105":8,"106":17,"115":2,"116":2,"118":1,"119":1,"122":1,"123":2,"124":1,"125":2,"126":2,"128":5,"129":5,"130":1,"134":1,"135":3,"136":2,"138":3,"140":2,"142":1,"148":1,"150":3,"152":2,"154":1,"158":3,"160":2,"162":2,"164":1,"165":4,"166":1,"167":1,"169":2,"172":1,"173":4,"175":1,"177":195,"178":63,"180":2,"181":82}}],["isolate",{"2":{"177":1}}],["istracermessage",{"2":{"177":2}}],["isn",{"2":{"106":1,"115":2,"177":3}}],["isnothing",{"2":{"7":1,"52":1,"86":1,"177":1,"178":1,"181":1}}],["issues",{"2":{"128":2,"140":1}}],["issue",{"2":{"57":1,"64":1,"66":1,"73":1,"128":2,"181":4}}],["islowercase",{"2":{"52":1,"178":1}}],["isvalid",{"2":{"21":1,"51":1,"52":4,"177":4,"178":1}}],["isa",{"2":{"10":4,"52":2,"86":1,"91":3,"104":4,"106":1,"177":4,"178":2}}],["is",{"0":{"77":1,"90":2},"2":{"0":7,"1":2,"2":4,"3":1,"5":2,"6":5,"7":18,"8":1,"10":11,"11":3,"12":1,"13":4,"15":1,"17":4,"19":4,"21":9,"22":2,"24":5,"28":5,"29":1,"30":3,"31":5,"32":2,"34":1,"35":2,"36":4,"37":2,"38":1,"42":1,"43":1,"46":1,"47":1,"48":1,"49":6,"51":8,"52":44,"53":1,"54":1,"55":9,"56":2,"57":2,"58":2,"60":4,"62":2,"63":7,"64":53,"67":21,"71":2,"73":5,"74":3,"75":1,"77":3,"78":1,"82":2,"83":2,"85":4,"86":5,"87":1,"89":1,"90":2,"91":1,"95":8,"96":5,"97":2,"99":3,"101":1,"102":2,"103":3,"104":12,"105":14,"106":16,"113":1,"115":3,"116":2,"118":3,"119":5,"122":1,"123":1,"124":3,"125":4,"126":2,"128":2,"129":2,"134":1,"135":3,"136":1,"138":1,"139":3,"140":2,"142":1,"143":1,"148":1,"150":1,"151":3,"155":1,"156":1,"157":1,"158":3,"159":1,"160":2,"161":1,"162":3,"163":1,"164":3,"165":2,"166":1,"167":1,"168":1,"169":1,"171":2,"172":4,"173":3,"175":1,"177":231,"178":66,"179":9,"180":5,"181":173}}],["dtm",{"2":{"181":2}}],["dynamic",{"2":{"178":1}}],["dynamically",{"2":{"177":1}}],["duplicates",{"2":{"181":1}}],["duplication",{"2":{"64":1,"181":1}}],["due",{"2":{"52":1,"177":2}}],["during",{"2":{"7":1,"52":3,"177":3,"178":2,"181":1}}],["drawn",{"2":{"181":5}}],["draft",{"2":{"158":1}}],["drafts",{"2":{"158":1}}],["drafteremailbrief",{"0":{"158":1}}],["drives",{"2":{"178":1}}],["driven",{"2":{"177":1}}],["drive",{"2":{"106":1}}],["dry",{"2":{"90":4,"177":22}}],["drops",{"2":{"52":1,"178":1}}],["dr",{"2":{"34":1,"112":2}}],["d",{"2":{"30":1,"31":1,"77":1,"88":1,"181":2}}],["dllama",{"2":{"29":3}}],["dspy",{"2":{"21":1,"52":1,"178":1}}],["datetime",{"2":{"177":4}}],["date",{"2":{"112":1}}],["dates",{"2":{"112":1}}],["datadeps",{"2":{"181":2}}],["datastructtype",{"2":{"177":1}}],["dataset",{"2":{"6":1,"89":2,"169":1}}],["data=",{"2":{"177":1}}],["data>",{"2":{"142":4,"143":4,"172":4}}],["datamessage",{"2":{"10":2,"40":2,"41":1,"42":1,"102":1,"104":2,"177":13}}],["dataframerowsourcecontextquestionanswerretrieval",{"2":{"7":1}}],["dataframe",{"2":{"7":11,"13":1,"24":1,"177":2}}],["dataframeswhat",{"2":{"7":1}}],["dataframesmeta",{"2":{"1":1,"2":1}}],["dataframes",{"2":{"1":1,"2":3,"5":1,"13":1,"24":1,"112":2,"177":2,"181":1}}],["database",{"2":{"2":1,"5":2,"6":1,"7":11,"124":2}}],["databricks",{"0":{"29":1},"2":{"0":1,"29":9,"64":1,"177":16,"181":1}}],["databricksopenaischema",{"2":{"0":1,"29":2,"177":3}}],["data",{"0":{"19":1,"71":1},"2":{"0":2,"2":4,"5":5,"6":4,"7":34,"8":2,"10":1,"19":3,"22":1,"24":6,"40":1,"52":9,"58":4,"60":3,"63":1,"71":7,"83":1,"102":1,"104":1,"106":2,"112":1,"142":6,"143":6,"145":6,"147":1,"157":5,"162":1,"164":6,"166":1,"169":1,"172":4,"177":17,"178":18,"181":3}}],["damaging",{"2":{"88":1}}],["day",{"2":{"77":1}}],["dashboard",{"2":{"76":1,"181":1}}],["dashboards",{"2":{"58":1}}],["dance",{"2":{"67":1,"177":1}}],["danced",{"2":{"67":1,"177":1}}],["dangerous",{"2":{"46":1,"177":1}}],["darkness",{"2":{"46":1}}],["daphodil",{"2":{"18":1,"177":1}}],["dall",{"2":{"10":1,"104":1,"177":5}}],["diagnostics",{"2":{"181":1}}],["diagram",{"0":{"61":1},"1":{"62":1},"2":{"60":1}}],["dimensionality",{"2":{"181":4}}],["dimension",{"2":{"181":10}}],["diligent",{"2":{"157":1}}],["dilemma",{"2":{"12":1}}],["dir",{"2":{"91":2,"177":19}}],["direct",{"2":{"152":1}}],["directly",{"2":{"52":1,"62":2,"64":4,"67":1,"76":1,"87":2,"103":1,"118":2,"123":1,"125":1,"177":8,"181":8}}],["directory",{"2":{"24":3,"91":1,"177":11}}],["diverse",{"2":{"125":1}}],["divisible",{"2":{"181":1}}],["division",{"2":{"67":1,"177":1}}],["divides",{"2":{"63":1}}],["div",{"2":{"67":1,"177":6,"181":1}}],["div>",{"2":{"67":1,"177":6,"181":1}}],["digits",{"2":{"52":2,"86":1,"178":2}}],["digits=1",{"2":{"7":1}}],["didn",{"2":{"178":1}}],["did",{"2":{"24":1,"106":1}}],["disables",{"2":{"177":1}}],["disable",{"2":{"177":1}}],["disabled",{"2":{"64":1,"181":1}}],["disney",{"2":{"67":2,"177":2}}],["disk",{"2":{"63":1,"87":2,"103":1,"177":4,"181":1}}],["displayed",{"2":{"177":1}}],["displaysize",{"2":{"177":1,"181":2}}],["display",{"2":{"13":1,"24":1,"58":1,"64":1,"85":1,"177":2,"181":1}}],["dispatching",{"2":{"60":1,"67":1,"177":1,"181":32}}],["dispatches",{"2":{"52":1,"58":1,"64":1,"178":1,"181":1}}],["dispatched",{"2":{"52":1,"178":1}}],["dispatch",{"2":{"13":1,"24":1,"37":1,"60":2,"61":4,"62":2,"64":1,"67":2,"100":1,"103":1,"166":2,"167":2,"177":6,"178":1,"181":3}}],["distinct",{"2":{"151":1,"152":1}}],["distinguished",{"2":{"166":1,"167":1}}],["distinguish",{"2":{"67":1,"177":1}}],["dist",{"2":{"67":6,"177":6}}],["distributed",{"2":{"178":1}}],["distributing",{"2":{"169":1}}],["distributions",{"2":{"168":1}}],["distribution",{"2":{"58":1,"178":2}}],["distract",{"2":{"36":1}}],["distraction",{"2":{"11":1}}],["distances",{"2":{"67":1,"177":1}}],["distance",{"2":{"8":1,"16":2,"66":3,"67":12,"177":15,"181":10}}],["discounted",{"2":{"181":2}}],["discovery",{"2":{"118":1}}],["discovered",{"2":{"118":2}}],["discover",{"2":{"10":1,"36":1,"58":3,"61":1,"64":2,"103":1,"104":1,"178":1,"181":2}}],["discrimination",{"2":{"177":2}}],["discrepancies",{"2":{"138":1}}],["discrete",{"2":{"10":1,"104":1}}],["discussed",{"2":{"151":2}}],["discuss",{"2":{"30":1,"31":1}}],["discussions",{"2":{"151":1}}],["discussion",{"2":{"11":1,"177":1}}],["differs",{"2":{"106":1}}],["differ",{"2":{"10":1,"104":1}}],["differences",{"2":{"177":1}}],["difference",{"2":{"6":1,"7":2,"67":1,"104":1,"177":1,"181":1}}],["differently",{"2":{"10":1,"49":1,"86":1,"104":1,"177":1}}],["different",{"2":{"6":1,"7":2,"22":1,"52":4,"64":1,"66":1,"87":1,"128":2,"158":2,"165":1,"166":1,"167":1,"173":1,"177":9,"178":5,"181":8}}],["dict=parameters",{"2":{"181":1}}],["dict=dict",{"2":{"181":1}}],["dicts",{"2":{"177":1}}],["dictates",{"2":{"64":1,"181":3}}],["dictionaries",{"2":{"37":1,"100":1}}],["dictionary",{"2":{"15":1,"52":1,"58":1,"166":1,"167":1,"177":9,"181":1}}],["dict",{"2":{"6":4,"7":2,"58":1,"86":1,"90":3,"91":1,"105":3,"106":9,"177":25,"181":13}}],["doing",{"2":{"177":1}}],["dollar",{"2":{"89":1}}],["dolphin",{"2":{"32":1}}],["domluna",{"2":{"181":1}}],["domain",{"2":{"124":1,"139":1}}],["domains",{"2":{"55":4,"179":4,"181":6}}],["dominating",{"2":{"23":1,"26":1}}],["dot",{"2":{"16":1,"177":2}}],["double",{"2":{"11":1,"71":1,"79":1,"166":1,"167":1,"177":1}}],["doewhat",{"2":{"7":1}}],["doe",{"2":{"7":6}}],["does",{"0":{"77":1},"2":{"2":1,"7":1,"10":1,"36":1,"47":1,"49":1,"52":2,"64":1,"71":2,"86":1,"88":1,"90":1,"104":1,"119":2,"128":1,"129":1,"177":13,"178":1,"181":7}}],["don",{"2":{"6":1,"8":1,"24":1,"32":1,"34":1,"101":1,"106":1,"108":3,"112":1,"113":1,"115":3,"116":3,"118":1,"150":2,"151":1,"152":1,"165":1,"167":1,"169":1,"173":1,"177":6,"181":2}}],["done",{"2":{"2":1,"7":1,"52":1,"58":1,"64":1,"84":1,"105":1,"106":1,"138":3,"139":3,"140":3,"177":4,"178":2,"181":1}}],["downstream",{"2":{"86":1,"95":1}}],["downloads",{"2":{"38":1,"177":6}}],["downloaded",{"2":{"22":1}}],["download",{"2":{"10":1,"24":1,"32":1,"38":2,"83":2,"104":1,"177":10,"181":1}}],["down",{"2":{"2":1,"60":1,"67":1,"129":1,"177":1}}],["do",{"0":{"8":1,"88":1},"2":{"2":1,"6":1,"7":4,"10":1,"11":2,"12":3,"13":3,"19":2,"20":1,"21":2,"23":1,"24":1,"26":1,"36":1,"41":1,"45":1,"46":1,"47":1,"51":2,"52":6,"60":2,"67":1,"72":2,"73":2,"74":1,"81":1,"85":1,"86":2,"87":1,"88":1,"93":2,"104":1,"106":6,"110":1,"116":1,"128":2,"129":2,"130":1,"150":3,"151":1,"165":1,"169":1,"173":1,"177":27,"178":6,"181":2}}],["doc9",{"2":{"58":1}}],["doc2",{"2":{"58":1}}],["doc5",{"2":{"58":1}}],["doc15",{"2":{"58":1}}],["doc8",{"2":{"58":1}}],["doc$i",{"2":{"58":1}}],["doc",{"2":{"41":2,"64":4,"177":5,"181":4}}],["doctor1",{"2":{"7":1}}],["doctorwhat",{"2":{"7":2}}],["doctor",{"2":{"7":2}}],["documenttermmatrix",{"2":{"177":1,"181":6}}],["documented",{"2":{"60":1}}],["document",{"0":{"40":1},"2":{"2":1,"7":1,"10":1,"40":1,"61":1,"64":9,"112":1,"177":5,"181":21}}],["documents",{"0":{"41":1},"2":{"2":1,"7":1,"41":1,"57":2,"58":2,"64":3,"67":2,"138":1,"177":6,"181":16}}],["documentation",{"2":{"1":1,"19":1,"43":1,"55":1,"58":1,"64":1,"72":1,"93":1,"100":1,"106":1,"112":1,"122":1,"177":8,"179":1,"181":1}}],["docstring",{"2":{"79":1,"88":1,"106":1,"177":7}}],["docstrings",{"2":{"19":1,"60":1,"145":1,"177":1}}],["docs",{"2":{"2":2,"21":1,"24":1,"41":1,"61":1,"64":6,"70":1,"75":2,"106":6,"177":8,"181":33}}],["dplyr",{"2":{"2":3}}],["denote",{"2":{"150":1}}],["declaration",{"2":{"177":4}}],["declarations",{"2":{"140":1}}],["decoded",{"2":{"177":1}}],["decodes",{"2":{"177":1}}],["decode",{"2":{"106":1,"177":4}}],["decision",{"2":{"151":9}}],["decisions",{"2":{"6":1,"151":5}}],["decides",{"2":{"181":1}}],["decide",{"2":{"17":1,"18":1,"135":1}}],["deduplicate",{"2":{"64":1,"181":1}}],["dedicated",{"2":{"1":1,"23":1,"26":1,"104":1,"151":1}}],["deviations",{"2":{"140":1}}],["device",{"2":{"36":1}}],["dev",{"2":{"67":1,"177":1}}],["developers",{"2":{"177":1}}],["developing",{"2":{"58":1}}],["development",{"2":{"58":1,"118":1}}],["depot",{"2":{"73":1}}],["depth",{"2":{"55":3,"179":3}}],["depend",{"2":{"177":1}}],["dependencies",{"2":{"24":1,"56":1}}],["depends",{"2":{"13":1}}],["depending",{"2":{"10":1,"64":2,"75":1,"104":1,"162":1,"177":1,"181":2}}],["deem",{"2":{"124":1}}],["deemed",{"2":{"52":1,"177":1}}],["deepseek",{"2":{"177":6}}],["deepseekopenaischema",{"2":{"177":2}}],["deepdive",{"0":{"63":1}}],["deeper",{"2":{"62":2}}],["deep",{"2":{"36":1,"129":1,"130":1,"159":1,"161":1,"168":1,"172":1}}],["democards",{"2":{"67":1,"177":1}}],["demonstrate",{"2":{"52":1,"178":1}}],["demanding",{"2":{"28":1}}],["delim",{"2":{"177":2}}],["delicious",{"2":{"31":2,"106":8}}],["dels",{"2":{"63":1}}],["delay=2",{"2":{"52":1,"178":1}}],["delay",{"2":{"21":1,"51":1,"52":5,"177":1,"178":7}}],["delete",{"2":{"2":1,"4":1,"73":1}}],["def2",{"2":{"181":1}}],["def",{"2":{"181":7}}],["defauls",{"2":{"177":1}}],["defaults",{"2":{"52":10,"56":1,"60":1,"63":1,"64":19,"67":4,"177":75,"178":17,"181":30}}],["default",{"0":{"84":1},"2":{"16":1,"32":1,"37":1,"52":2,"55":7,"58":3,"60":1,"64":41,"67":1,"84":2,"95":1,"104":1,"105":1,"106":1,"177":58,"178":1,"179":7,"181":103}}],["defining",{"2":{"60":3}}],["definition",{"2":{"52":1,"128":1,"169":7,"177":2}}],["defines",{"2":{"177":5,"181":2}}],["defined",{"0":{"18":1},"2":{"18":1,"52":1,"62":1,"63":1,"102":1,"103":2,"151":1,"160":1,"177":17,"178":1,"181":3}}],["define",{"2":{"2":1,"10":1,"19":2,"24":1,"32":1,"37":1,"52":1,"64":3,"86":2,"104":1,"105":1,"106":2,"138":1,"177":12,"178":1,"181":3}}],["deferring",{"2":{"52":1,"178":1}}],["deferred",{"2":{"10":1,"49":2,"52":2,"104":1,"178":3}}],["defer",{"2":{"17":1}}],["destination",{"2":{"177":1}}],["descending",{"2":{"110":1}}],["descriptive",{"2":{"150":2,"151":1}}],["description=sig",{"2":{"106":2}}],["descriptions",{"2":{"18":1,"177":5}}],["description",{"0":{"153":1,"154":1},"1":{"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1},"2":{"13":1,"18":1,"24":4,"37":1,"87":2,"106":10,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":2,"143":2,"145":1,"147":1,"148":1,"150":3,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":5,"171":1,"172":1,"173":1,"175":1,"176":1,"177":25}}],["describes",{"2":{"134":1,"136":1,"156":1}}],["described",{"2":{"124":1,"138":1}}],["describe",{"2":{"20":2,"38":1,"150":1,"151":2,"164":1,"166":1,"172":1,"177":6}}],["despite",{"0":{"73":2},"2":{"177":1}}],["desired",{"2":{"66":2,"138":1,"140":1,"178":1}}],["designed",{"2":{"0":1,"10":4,"49":1,"52":2,"56":1,"60":2,"87":1,"104":4,"106":1,"177":5,"178":2}}],["deserialize",{"2":{"2":1,"177":1}}],["debugging",{"2":{"97":1,"177":15,"181":1}}],["debug",{"2":{"2":1,"64":1,"181":1}}],["determining",{"2":{"177":1}}],["determines",{"2":{"98":1,"177":1}}],["determine",{"2":{"0":1,"4":1,"7":1,"156":1}}],["detects",{"2":{"177":3}}],["detect",{"2":{"177":2}}],["detachment",{"2":{"12":2}}],["detail=",{"2":{"177":1}}],["detailorientedtask",{"0":{"157":1}}],["detail",{"2":{"64":1,"79":1,"128":1,"129":1,"142":1,"143":1,"145":1,"157":2,"177":14,"181":1}}],["details",{"2":{"2":1,"10":2,"24":1,"32":1,"49":1,"52":2,"63":1,"64":9,"75":1,"103":2,"104":2,"106":2,"122":1,"123":1,"126":1,"142":1,"143":1,"145":1,"169":1,"177":5,"178":8,"181":29}}],["detailed",{"2":{"0":1,"52":2,"118":1,"138":1,"178":4}}],["aaazzam",{"2":{"177":1}}],["aai",{"2":{"11":2,"96":3,"177":11}}],["axolotl",{"2":{"89":1}}],["a>",{"2":{"67":1,"177":6,"181":1}}],["away",{"2":{"52":1,"67":1,"73":1,"177":1,"178":1}}],["awareness",{"2":{"64":1,"181":2}}],["aware",{"2":{"49":1,"57":1,"66":1}}],["acronyms",{"2":{"124":1}}],["across",{"2":{"52":1,"62":2,"64":2,"79":1,"106":1,"177":2,"178":2,"181":5}}],["achievable",{"2":{"67":1,"177":1}}],["achieve",{"2":{"45":1,"67":3,"81":1,"86":1,"177":3,"178":1}}],["acts",{"2":{"177":1}}],["action",{"2":{"151":1,"178":2}}],["actionable",{"2":{"138":1,"139":1,"140":1,"148":1,"151":1}}],["active",{"2":{"52":13,"178":17}}],["act",{"2":{"85":1,"90":1,"152":1,"177":1}}],["actually",{"2":{"28":1,"47":2,"128":1,"129":1,"169":1,"177":1}}],["actual",{"2":{"24":2,"52":1,"128":1,"129":1,"130":1,"169":1,"178":2}}],["accumulate",{"2":{"181":1}}],["accuracy",{"2":{"58":1,"138":1,"142":1,"143":1,"145":1,"181":5}}],["accurately",{"2":{"140":1,"148":1,"156":1,"176":1}}],["accurate",{"2":{"23":1,"26":1,"177":1}}],["account",{"2":{"72":2,"74":1,"75":2,"76":1,"93":3}}],["according",{"2":{"67":1,"177":2}}],["accesor",{"2":{"181":1}}],["accesses",{"2":{"177":1}}],["accessed",{"2":{"87":1,"177":1}}],["accessible",{"2":{"162":1,"177":1}}],["accessing",{"2":{"72":1,"177":9}}],["accessors",{"2":{"181":1}}],["accessor",{"2":{"52":4,"177":2,"178":2}}],["access",{"0":{"70":1,"81":1},"2":{"21":1,"28":1,"31":1,"40":1,"48":1,"49":1,"51":1,"52":3,"56":1,"73":1,"81":2,"83":1,"86":1,"93":1,"98":1,"99":1,"108":1,"115":1,"116":1,"177":25,"178":5,"181":7}}],["accepts",{"2":{"52":3,"106":1,"178":4}}],["accept",{"2":{"52":3,"178":4,"181":1}}],["affection",{"2":{"177":1}}],["affects",{"2":{"8":1}}],["after",{"2":{"24":1,"52":5,"64":2,"67":3,"74":1,"86":1,"87":1,"95":1,"150":1,"151":1,"165":1,"173":1,"177":11,"178":3,"181":4}}],["amount",{"2":{"177":1}}],["among",{"2":{"169":1}}],["ambiguities",{"2":{"139":1}}],["amazing",{"2":{"100":1}}],["amazingly",{"2":{"22":1}}],["am",{"2":{"31":1,"36":1,"106":1,"177":6}}],["amp",{"0":{"4":1,"5":1,"6":1},"2":{"2":1,"3":1,"6":1,"7":1,"64":4,"181":4}}],["ah",{"2":{"12":1,"177":1}}],["administrator",{"2":{"168":1}}],["adhere",{"2":{"177":2}}],["adheres",{"2":{"140":1}}],["adherence",{"2":{"138":2,"142":1,"143":1,"145":1}}],["adapted",{"2":{"115":1,"116":1,"123":1,"125":1,"126":1}}],["adapt",{"2":{"89":1}}],["advisable",{"2":{"181":1}}],["advice",{"2":{"32":1,"67":2,"177":2}}],["advantages",{"2":{"58":1}}],["advancements",{"2":{"58":1}}],["advance",{"2":{"52":1,"178":1}}],["advancedgenerator",{"2":{"64":1,"177":1,"181":3}}],["advancedretriever",{"2":{"62":3,"64":4,"177":1,"181":7}}],["advanced",{"0":{"12":1,"36":1,"46":1},"2":{"48":1,"55":2,"64":3,"97":1,"112":1,"177":1,"179":2,"181":4}}],["adjectives",{"2":{"31":2,"106":8}}],["adjustments",{"2":{"138":2,"140":1}}],["adjusts",{"2":{"34":1,"36":1}}],["adjust",{"2":{"24":1,"49":1,"169":1}}],["addresses",{"2":{"140":1}}],["addressed",{"2":{"128":1,"139":1}}],["address",{"2":{"128":1,"138":1,"169":1,"177":4}}],["addded",{"2":{"64":1,"181":1}}],["adding",{"2":{"64":1,"66":1,"106":1,"140":1,"151":1,"177":1,"181":1}}],["additional",{"2":{"52":1,"54":1,"60":1,"64":13,"95":1,"115":1,"116":1,"124":2,"150":1,"177":37,"178":4,"181":22}}],["addition",{"2":{"10":2,"18":1,"31":1,"60":1,"64":1,"104":1,"165":4,"173":4,"177":2,"181":2}}],["added",{"2":{"24":1,"32":1,"52":1,"64":1,"67":2,"177":5,"178":1,"181":5}}],["adds",{"2":{"11":1,"177":1,"178":1,"181":3}}],["add",{"2":{"8":3,"11":1,"13":2,"20":1,"24":7,"34":1,"37":1,"42":1,"43":1,"51":1,"52":3,"64":9,"78":1,"81":2,"87":2,"90":1,"94":1,"106":2,"124":1,"150":1,"177":15,"178":9,"181":34}}],["agreements",{"2":{"158":1}}],["agreed",{"2":{"151":2}}],["agnostic",{"2":{"90":1}}],["agents",{"2":{"48":1,"181":3}}],["agentic",{"2":{"48":1,"52":1,"178":2,"180":1}}],["agent",{"0":{"21":1,"48":1},"1":{"49":1,"50":1,"51":1,"52":1},"2":{"21":1,"52":1,"177":1,"178":2}}],["agenttools",{"0":{"178":1},"2":{"10":3,"21":1,"48":3,"52":6,"66":1,"86":1,"104":2,"177":35,"178":69,"180":2}}],["age",{"2":{"19":2,"177":14}}],["against",{"2":{"58":1,"64":1,"177":1,"181":1}}],["again",{"2":{"11":1,"87":1,"177":2}}],["auditing",{"2":{"177":2}}],["audience",{"2":{"138":5,"160":5,"162":2,"169":2}}],["authorization",{"2":{"177":2}}],["authentication",{"2":{"177":3}}],["auth",{"2":{"177":2}}],["auto",{"2":{"52":5,"138":1,"139":1,"140":1,"177":11,"178":1}}],["automatically",{"2":{"17":1,"24":1,"49":2,"52":2,"57":1,"58":1,"63":1,"73":1,"78":1,"91":6,"106":3,"177":15,"181":1}}],["automatic",{"0":{"51":1,"91":1},"2":{"10":1,"49":1,"52":1,"104":1,"106":1,"177":1}}],["augment",{"2":{"124":1}}],["augmented",{"0":{"1":1},"1":{"2":1},"2":{"1":1,"56":1,"64":2,"180":1,"181":3}}],["avg",{"2":{"7":2}}],["average",{"2":{"7":1,"64":1,"119":1,"181":3}}],["available",{"2":{"6":1,"10":1,"13":2,"23":2,"24":4,"26":2,"43":2,"61":1,"63":2,"64":4,"73":1,"83":2,"103":1,"104":1,"106":1,"134":1,"136":1,"150":1,"177":23,"181":7}}],["avoiding",{"2":{"58":1,"118":1}}],["avoided",{"2":{"11":1}}],["avoid",{"2":{"2":1,"37":1,"52":2,"64":1,"67":1,"74":1,"96":1,"128":1,"129":1,"166":1,"167":1,"177":3,"181":5}}],["april",{"2":{"15":1}}],["apostrophes",{"2":{"181":1}}],["apos",{"2":{"7":12}}],["append",{"2":{"178":1}}],["appends",{"2":{"177":3}}],["appended",{"2":{"52":1,"177":2,"181":1}}],["approximates",{"2":{"178":2}}],["appropriate",{"2":{"134":1,"136":3,"148":1,"177":1}}],["approach>",{"2":{"172":4}}],["approach",{"2":{"52":1,"104":1,"122":1,"164":4,"166":2,"167":1,"172":4,"178":1,"181":3}}],["appreciate",{"2":{"12":1}}],["applying",{"2":{"178":1,"181":1}}],["apply",{"2":{"64":1,"67":1,"142":1,"177":4,"181":2}}],["apples",{"2":{"177":2}}],["apple",{"2":{"31":2,"32":1,"106":8,"177":1}}],["applicable",{"2":{"64":1,"152":1,"181":2}}],["applications",{"2":{"10":1,"56":3,"57":1,"58":1,"64":1,"108":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"125":1,"126":1,"161":1,"165":1,"173":1,"181":1}}],["application",{"2":{"2":1,"58":1,"98":1,"99":1}}],["applied",{"2":{"10":1,"49":1,"52":1,"57":1,"67":1,"104":1,"177":13,"178":1,"181":1}}],["applies",{"2":{"2":1,"63":1,"67":1,"177":1,"178":2}}],["app",{"2":{"4":1,"83":1,"165":1,"173":1}}],["apikey",{"0":{"73":1}}],["apitools",{"0":{"53":1,"179":1},"1":{"54":1,"55":1},"2":{"53":2,"55":1,"177":2,"179":4,"180":1}}],["apis",{"0":{"23":1,"25":1,"27":1},"1":{"26":1,"27":1,"28":1,"29":1,"30":1,"31":1},"2":{"23":1,"47":1,"53":1,"69":1,"70":1,"77":1,"98":1,"101":1,"180":1}}],["api",{"0":{"23":1,"72":1,"73":2,"78":1,"79":1,"80":2,"90":1,"99":1},"2":{"0":6,"2":1,"7":1,"8":1,"10":2,"20":1,"21":3,"23":10,"25":1,"26":4,"27":8,"28":1,"29":5,"30":2,"31":2,"32":1,"37":1,"43":4,"51":3,"52":8,"54":2,"55":5,"56":1,"62":5,"64":34,"71":3,"72":3,"73":5,"75":2,"76":1,"78":10,"79":4,"80":1,"83":1,"90":2,"91":3,"93":9,"98":2,"99":3,"100":2,"104":4,"105":7,"106":7,"177":284,"178":10,"179":11,"180":1,"181":69}}],["abbreviations",{"2":{"124":1}}],["ab",{"2":{"67":1,"177":2}}],["abcabc",{"2":{"67":1,"177":1}}],["abc",{"2":{"52":3,"67":7,"104":2,"177":9,"178":3,"181":7}}],["ability",{"2":{"31":1,"115":1,"116":1}}],["abilities",{"2":{"23":1,"26":1}}],["about",{"2":{"13":2,"24":1,"32":1,"49":1,"64":1,"86":1,"90":2,"91":2,"102":1,"105":1,"138":1,"159":1,"160":1,"161":1,"162":2,"163":1,"165":1,"166":1,"167":1,"168":1,"171":1,"173":1,"177":19,"181":4}}],["above",{"2":{"10":1,"13":2,"15":1,"17":1,"28":1,"57":1,"64":1,"66":1,"77":1,"104":2,"105":1,"110":1,"119":1,"128":1,"129":1,"130":1,"150":1,"158":1,"166":1,"167":1,"169":1,"177":3,"178":1,"181":2}}],["abs",{"2":{"52":1,"178":1}}],["absence",{"2":{"12":1}}],["abstractfloat",{"2":{"181":4}}],["abstractdocumenttermmatrix",{"2":{"181":1}}],["abstractdocumentindex",{"2":{"64":4,"181":17}}],["abstractdatamessage",{"2":{"177":1}}],["abstractprocessor=keywordsprocessor",{"2":{"181":1}}],["abstractprocessor",{"2":{"64":2,"181":7}}],["abstractpromptschema",{"2":{"0":1,"52":1,"98":1,"99":1,"100":2,"177":5,"178":1}}],["abstractpostprocessor",{"2":{"61":1,"64":2,"181":4}}],["abstractscoringmethod",{"2":{"178":4}}],["abstractsharegptschema",{"2":{"177":1}}],["abstractsimilarityfinder",{"2":{"61":1,"64":1,"181":11}}],["abstractstring=",{"2":{"52":4,"67":2,"177":8,"181":1}}],["abstractstring",{"2":{"10":2,"52":6,"55":8,"61":3,"64":13,"67":13,"104":2,"177":95,"178":4,"179":10,"181":89}}],["abstractgenerationmethod",{"2":{"181":1}}],["abstractgenerator",{"2":{"61":3,"64":4,"177":1,"181":8}}],["abstractgoogleschema",{"2":{"0":1,"177":2}}],["abstracttracer",{"2":{"177":1}}],["abstracttracermessage",{"2":{"177":2}}],["abstracttracerschema",{"2":{"177":13}}],["abstracttrees",{"2":{"52":1,"178":1,"181":1}}],["abstracttagfilter",{"2":{"61":1,"64":1,"181":8}}],["abstracttagger",{"2":{"61":2,"64":4,"181":12}}],["abstractembedder",{"2":{"61":2,"64":2,"181":10}}],["abstractragconfig",{"2":{"61":3,"64":2,"181":3}}],["abstractragresult",{"2":{"60":2,"61":4,"63":1,"64":4,"181":14}}],["abstractretrievalmethod",{"2":{"181":1}}],["abstractretriever",{"2":{"60":2,"61":2,"64":4,"177":1,"181":9}}],["abstractrefiner",{"2":{"61":1,"64":4,"181":8}}],["abstractrephraser",{"2":{"61":1,"64":2,"181":9}}],["abstractreranker",{"2":{"60":1,"61":2,"64":2,"181":10}}],["abstractindexbuilder",{"2":{"61":2,"64":2,"177":1,"181":7}}],["abstractindex",{"2":{"60":1}}],["abstractcodeblock",{"2":{"177":1}}],["abstractcodeoutcome",{"2":{"52":2,"178":2}}],["abstractcontextbuilder",{"2":{"61":1,"64":2,"181":4}}],["abstractchar",{"2":{"67":1,"177":1}}],["abstractchatmessage",{"2":{"24":2,"87":1,"105":1,"177":3}}],["abstractchunker",{"2":{"61":1,"64":2,"181":7}}],["abstractchunkindex",{"2":{"61":4,"64":1,"177":1,"181":17}}],["abstractcandidatechunks",{"2":{"60":1,"177":1,"181":6}}],["abstractvector",{"2":{"52":1,"55":2,"64":6,"67":1,"177":45,"178":4,"179":2,"181":54}}],["abstractmatrix",{"2":{"181":13}}],["abstractmanagedschema",{"2":{"0":1,"177":2}}],["abstractmultiindex",{"2":{"177":1,"181":2}}],["abstractmessage",{"2":{"52":2,"58":1,"85":1,"86":1,"90":2,"101":1,"102":1,"177":98,"178":6,"181":1}}],["abstractannotationstyler",{"2":{"181":4}}],["abstractannotatednode",{"2":{"181":5}}],["abstractanswerer",{"2":{"61":1,"64":2,"181":4}}],["abstractanthropicschema",{"2":{"0":1,"177":6}}],["abstractarray",{"2":{"10":1,"104":1}}],["abstractoutcomes",{"2":{"178":1}}],["abstractollamamanagedschema",{"2":{"0":1,"177":6}}],["abstractollamaschema",{"2":{"0":1,"177":3}}],["abstractopenaischema",{"2":{"0":9,"99":1,"100":1,"177":11}}],["abstract",{"2":{"0":1,"63":1,"64":2,"86":1,"106":2,"166":1,"167":1,"181":8}}],["able",{"2":{"2":1,"178":1}}],["arxiv",{"2":{"181":1}}],["arr",{"2":{"87":2,"177":2,"181":3}}],["arrays",{"2":{"166":1,"167":1,"177":1}}],["array",{"2":{"13":1,"22":1,"24":1,"40":1,"58":3,"67":3,"87":1,"177":8,"181":5}}],["arbitrary",{"2":{"86":1,"177":3}}],["art",{"2":{"69":1}}],["artificial",{"2":{"16":1}}],["articles",{"2":{"58":1,"177":2}}],["article",{"2":{"1":1}}],["arches",{"2":{"63":1}}],["arg2",{"2":{"177":1}}],["arg1",{"2":{"177":1}}],["argmin",{"2":{"67":2,"177":2}}],["argmax",{"2":{"67":1,"177":1}}],["args",{"2":{"52":5,"177":1,"178":11,"181":1}}],["argumenterror",{"0":{"73":2}}],["arguments",{"0":{"62":1,"80":1},"2":{"10":4,"12":1,"19":1,"21":1,"49":2,"52":10,"55":1,"60":2,"62":2,"64":17,"67":5,"96":1,"104":4,"106":2,"142":1,"143":1,"145":1,"147":1,"177":84,"178":27,"179":1,"181":39}}],["argument",{"2":{"6":1,"7":8,"10":2,"15":1,"21":2,"23":1,"24":1,"26":1,"34":1,"40":1,"51":2,"52":4,"58":2,"60":2,"67":1,"74":1,"85":2,"87":1,"104":2,"142":1,"143":1,"145":1,"177":12,"178":5}}],["around",{"2":{"10":1,"60":1,"64":1,"67":1,"96":1,"100":1,"104":1,"169":1,"177":5,"178":1,"181":5}}],["areas",{"2":{"128":1}}],["are",{"2":{"0":1,"5":1,"6":1,"7":8,"10":1,"11":1,"12":1,"13":3,"17":1,"19":1,"21":1,"23":5,"24":12,"26":2,"27":3,"32":1,"36":1,"47":2,"49":3,"51":1,"52":12,"57":3,"58":4,"60":4,"61":1,"63":2,"64":11,"66":4,"67":6,"69":1,"70":1,"75":1,"83":1,"84":1,"86":2,"87":1,"90":1,"91":1,"98":2,"100":2,"101":2,"102":2,"103":2,"104":2,"105":4,"106":2,"110":2,"116":3,"118":1,"123":1,"124":1,"125":1,"126":1,"128":4,"134":1,"135":1,"136":3,"138":1,"140":2,"142":1,"143":1,"145":1,"148":1,"150":1,"151":2,"154":1,"155":1,"157":2,"158":1,"159":2,"160":1,"161":2,"162":2,"163":1,"164":1,"165":3,"166":1,"167":1,"168":2,"169":4,"171":1,"172":1,"173":3,"176":1,"177":69,"178":14,"181":41}}],["atop",{"2":{"177":1}}],["atomic",{"2":{"64":10,"181":29}}],["ate",{"2":{"31":1,"106":3,"177":1}}],["attribute",{"2":{"181":2}}],["attract",{"2":{"125":1}}],["attempted",{"2":{"52":1,"178":3}}],["attempts",{"2":{"49":1,"52":2,"86":1,"178":3}}],["attempt",{"2":{"21":1,"51":1,"52":2,"178":2}}],["attach",{"2":{"177":5}}],["attached",{"2":{"12":1,"36":1,"46":1,"177":2}}],["attachments",{"2":{"12":1}}],["attachment",{"2":{"12":1,"46":1,"177":3}}],["at",{"2":{"1":1,"6":1,"7":1,"21":2,"23":1,"27":1,"31":1,"38":1,"43":1,"45":1,"47":1,"48":1,"51":2,"52":5,"54":1,"60":1,"63":1,"64":4,"69":1,"71":1,"74":1,"84":1,"98":1,"103":1,"105":1,"113":2,"119":2,"152":1,"177":21,"178":12,"181":11}}],["aspect",{"2":{"175":1}}],["aspects",{"2":{"138":1,"139":1,"140":1,"165":1,"173":1}}],["as=",{"2":{"87":2,"103":1,"177":1}}],["assesses",{"2":{"181":2}}],["assess",{"2":{"138":1}}],["assertion",{"2":{"177":1}}],["assertions",{"2":{"21":1,"52":1,"178":1}}],["assert",{"2":{"52":1,"106":2,"178":1,"181":2}}],["assigning",{"2":{"169":1}}],["assign",{"2":{"112":1,"119":1}}],["assistance",{"2":{"23":1,"26":1,"37":1}}],["assistant",{"2":{"12":1,"45":1,"85":1,"90":1,"91":1,"103":1,"105":2,"108":1,"110":1,"115":1,"116":1,"119":2,"120":1,"122":1,"124":1,"126":1,"138":3,"139":7,"140":2,"148":1,"155":2,"156":1,"157":1,"177":8}}],["assistantask",{"0":{"155":1},"2":{"10":1,"103":4,"104":1,"105":3}}],["assist",{"2":{"22":1,"23":1,"26":1,"30":2,"31":1,"45":1,"85":1,"177":10}}],["associated",{"2":{"84":1,"105":1,"151":1,"177":5,"181":1}}],["assuming",{"2":{"64":1,"75":1,"77":1,"177":1,"181":3}}],["assumed",{"2":{"177":1,"178":1,"181":4}}],["assumes",{"2":{"32":1,"64":1,"177":5,"181":5}}],["assume",{"2":{"22":1,"74":1,"94":1,"178":1,"181":2}}],["asterisk",{"2":{"11":1}}],["asynchronous",{"0":{"14":1},"2":{"96":1,"177":5}}],["asyncmap",{"2":{"7":1,"14":3,"41":2,"64":1,"74":3,"96":1,"181":4}}],["async",{"2":{"7":1,"41":1,"177":1}}],["asks",{"2":{"130":1,"158":2}}],["ask=",{"2":{"52":1,"104":2,"105":2,"178":1}}],["asked",{"0":{"68":1},"1":{"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1},"2":{"32":1,"181":1}}],["asking",{"2":{"13":1,"24":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1,"177":2}}],["ask",{"2":{"2":1,"13":4,"21":2,"23":1,"24":8,"26":1,"31":1,"37":1,"45":1,"51":2,"52":2,"57":1,"66":1,"103":3,"105":7,"129":1,"155":3,"159":3,"161":3,"163":3,"168":3,"171":3,"177":6,"178":2,"181":2}}],["as",{"2":{"0":1,"2":1,"6":1,"7":4,"10":9,"11":1,"15":1,"16":1,"17":1,"18":1,"20":1,"21":2,"23":5,"24":5,"26":2,"27":2,"29":3,"30":2,"31":4,"34":1,"37":2,"38":2,"42":1,"43":1,"45":1,"48":1,"49":2,"51":3,"52":13,"53":1,"54":1,"56":1,"58":2,"60":3,"63":1,"64":1,"67":15,"74":1,"78":3,"85":4,"86":4,"87":5,"88":1,"90":3,"91":1,"93":1,"96":2,"99":1,"102":1,"103":2,"104":7,"105":2,"106":12,"108":1,"112":1,"115":2,"116":1,"119":1,"122":2,"123":2,"128":3,"138":6,"139":1,"140":2,"142":3,"143":3,"145":3,"150":6,"151":4,"152":3,"156":2,"158":4,"160":2,"162":1,"165":3,"169":1,"173":3,"176":2,"177":115,"178":28,"181":33}}],["a",{"0":{"1":1,"4":1,"5":1,"6":1,"87":1,"88":1,"89":1},"1":{"2":1},"2":{"0":3,"1":2,"2":6,"3":3,"4":1,"5":2,"6":9,"7":16,"8":2,"10":14,"11":6,"12":7,"13":7,"15":3,"16":1,"17":4,"18":3,"19":6,"20":5,"21":6,"22":1,"23":3,"24":23,"25":1,"26":3,"28":2,"29":1,"30":3,"31":4,"32":1,"34":1,"35":1,"36":5,"37":3,"38":1,"40":1,"42":1,"43":1,"45":2,"46":2,"47":2,"48":1,"49":12,"51":3,"52":47,"55":2,"56":2,"57":6,"58":8,"60":6,"63":6,"64":42,"65":2,"66":12,"67":35,"73":2,"74":5,"75":1,"76":4,"77":8,"78":5,"83":3,"85":5,"86":14,"87":11,"89":7,"90":3,"91":4,"93":1,"95":2,"98":1,"99":2,"100":1,"101":4,"102":1,"103":8,"104":13,"105":6,"106":24,"108":1,"112":2,"115":1,"116":1,"118":4,"119":4,"120":4,"122":3,"123":3,"124":4,"125":1,"126":4,"128":4,"129":1,"130":1,"134":2,"136":2,"138":7,"139":7,"140":5,"142":2,"143":2,"145":2,"148":5,"150":9,"151":6,"152":3,"155":1,"156":7,"157":2,"158":5,"159":1,"160":3,"161":1,"162":5,"163":1,"164":1,"165":8,"166":2,"167":3,"168":1,"169":6,"171":1,"172":2,"173":8,"175":4,"176":1,"177":485,"178":85,"179":2,"181":200}}],["al",{"2":{"181":3}}],["algorithm",{"2":{"181":5}}],["algorithms",{"2":{"52":1,"58":1,"178":2}}],["alignment",{"2":{"142":1,"143":1,"145":1}}],["aligns",{"2":{"138":1,"177":2,"181":2}}],["aligned",{"2":{"123":1,"125":1,"181":1}}],["align",{"2":{"119":1,"138":1,"140":1,"177":7,"181":4}}],["aliased",{"2":{"31":1}}],["aliases",{"0":{"15":1},"2":{"15":5,"29":1,"32":1,"37":1,"177":34}}],["alias",{"2":{"7":1,"29":1,"30":1,"31":1,"37":1,"44":1,"106":2,"177":32,"181":1}}],["alexander",{"2":{"118":3}}],["almost",{"2":{"60":1}}],["alternative",{"2":{"124":1,"177":7}}],["alternatives",{"0":{"82":1},"2":{"70":1}}],["alternatively",{"2":{"24":1,"52":1,"83":1,"93":1,"177":1,"178":2}}],["alter",{"2":{"52":1,"177":1}}],["already",{"2":{"30":1,"31":1,"32":1,"64":1,"74":1,"83":1,"94":1,"178":1,"181":4}}],["always",{"2":{"23":1,"24":1,"26":1,"28":1,"52":2,"60":1,"66":1,"67":2,"71":1,"72":1,"76":1,"86":1,"87":2,"128":2,"136":1,"138":1,"139":1,"140":1,"167":1,"177":6,"178":5,"181":4}}],["also",{"2":{"2":1,"6":1,"7":2,"10":1,"12":1,"15":1,"18":2,"21":1,"22":1,"23":1,"24":4,"28":1,"29":2,"30":1,"31":1,"51":1,"52":8,"55":1,"64":7,"67":2,"79":1,"86":1,"87":1,"91":1,"104":1,"106":2,"128":1,"129":1,"130":1,"177":35,"178":7,"179":1,"181":19}}],["all=false",{"2":{"177":7}}],["all=true`",{"2":{"104":1}}],["all=true",{"2":{"2":1,"58":1,"64":2,"85":4,"86":1,"91":1,"104":1,"106":1,"177":20,"181":2}}],["alltagfilter",{"2":{"177":1,"181":4}}],["allocated",{"2":{"181":1}}],["allocations",{"2":{"181":1}}],["allocation",{"2":{"58":1}}],["allowing",{"2":{"56":1,"177":2,"178":1}}],["allow",{"2":{"49":1,"82":1,"106":1,"177":4,"181":1}}],["allowed",{"2":{"21":1,"52":1,"106":1,"177":29,"178":2}}],["allows",{"2":{"10":1,"21":1,"22":1,"25":1,"37":1,"49":3,"51":1,"52":2,"64":2,"76":1,"104":1,"177":3,"178":4,"181":2}}],["all",{"2":{"0":1,"2":1,"6":3,"7":9,"10":3,"11":2,"12":1,"13":1,"15":1,"19":1,"23":1,"24":1,"26":1,"46":1,"49":2,"52":16,"58":1,"60":1,"62":2,"63":1,"64":12,"67":1,"85":1,"86":1,"87":2,"90":4,"94":1,"97":1,"99":1,"100":1,"103":1,"104":3,"106":1,"112":1,"119":3,"128":2,"129":1,"151":2,"165":1,"166":1,"167":1,"169":2,"173":1,"176":1,"177":59,"178":30,"181":26}}],["along",{"2":{"0":1,"64":1,"138":1,"178":1,"181":2}}],["anonymous",{"2":{"166":1,"167":1}}],["another",{"2":{"11":1,"52":1,"64":3,"177":1,"178":2,"181":5}}],["ancient",{"2":{"67":1,"177":1}}],["ancestors",{"2":{"52":1,"178":5}}],["ancestor",{"2":{"52":1,"178":1}}],["annotation",{"2":{"181":3}}],["annotations",{"2":{"64":1,"166":1,"167":1,"181":3}}],["annotating",{"2":{"181":1}}],["annotatednode",{"2":{"177":1,"181":11}}],["annotated",{"2":{"64":6,"181":6}}],["annotates",{"2":{"64":1,"181":1}}],["annotater",{"2":{"64":6,"181":10}}],["annotate",{"2":{"10":1,"57":1,"58":1,"64":8,"177":3,"181":16}}],["animal",{"2":{"18":2,"86":2,"177":8}}],["ans",{"2":{"10":5,"95":1,"104":5}}],["answer=",{"2":{"181":4}}],["answer=answer",{"2":{"181":1}}],["answering",{"2":{"119":1,"142":1}}],["answered",{"2":{"64":1,"118":1,"151":1,"181":1}}],["answerer",{"2":{"62":1,"64":11,"181":17}}],["answers",{"2":{"3":1,"8":1,"56":1,"57":1,"108":1,"115":1,"116":1,"118":1,"122":2,"123":1,"138":1,"139":3,"140":1,"150":1,"159":2,"161":2,"168":2,"181":5}}],["answer",{"2":{"2":3,"5":1,"6":4,"7":4,"10":4,"11":2,"17":1,"21":3,"23":1,"24":6,"26":1,"31":1,"51":3,"52":16,"54":1,"55":4,"57":3,"58":7,"60":1,"61":2,"63":1,"64":33,"86":1,"103":2,"104":1,"105":4,"108":4,"115":20,"116":22,"118":6,"119":14,"120":7,"122":1,"123":1,"124":1,"135":1,"139":2,"140":3,"155":2,"159":2,"161":2,"163":2,"168":2,"171":2,"177":5,"178":13,"179":4,"181":103}}],["antropic",{"2":{"177":1}}],["antibiotics",{"2":{"118":2}}],["anti",{"2":{"7":1}}],["anthropic",{"2":{"0":1,"69":1,"70":1,"142":1,"143":1,"171":1,"172":1,"173":1,"177":18}}],["anthropicschema",{"2":{"0":1,"177":4}}],["analystthemesinresponses",{"0":{"152":1}}],["analystdecisionsintranscript",{"0":{"151":1}}],["analyst",{"2":{"150":1,"151":1}}],["analystchaptersintranscript",{"0":{"150":1}}],["analysis",{"2":{"6":1,"7":1,"17":1,"24":4,"52":1,"58":2,"152":1,"178":1}}],["analyzed",{"2":{"152":1}}],["analyze",{"2":{"7":1,"118":1,"125":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"151":1}}],["anytagfilter",{"2":{"177":1,"181":4}}],["anything",{"2":{"31":1,"34":1,"35":1,"37":1,"45":1,"150":1,"177":3,"181":1}}],["anymore",{"2":{"84":1}}],["anyone",{"2":{"72":1,"93":1}}],["anywhere",{"0":{"81":1},"2":{"22":1,"81":1,"83":1}}],["anyscale",{"2":{"8":1}}],["any",{"2":{"0":2,"2":1,"4":1,"6":2,"7":2,"10":2,"11":3,"13":1,"17":1,"18":4,"21":1,"23":2,"24":2,"25":1,"26":1,"28":1,"31":2,"37":1,"43":1,"45":1,"46":1,"49":3,"51":1,"52":13,"56":1,"60":2,"63":1,"64":1,"67":1,"72":1,"73":1,"77":1,"78":1,"81":1,"86":3,"87":3,"89":1,"90":2,"91":2,"93":1,"95":1,"100":1,"104":2,"105":1,"106":9,"110":1,"112":2,"113":1,"116":1,"118":1,"124":2,"128":1,"138":1,"139":1,"140":3,"150":2,"151":2,"152":1,"154":1,"164":1,"165":2,"166":1,"167":2,"169":1,"172":1,"173":2,"175":2,"177":83,"178":10,"181":23}}],["an",{"0":{"73":2,"74":1},"2":{"0":2,"2":3,"6":1,"7":3,"10":4,"12":1,"17":1,"19":1,"20":1,"21":1,"22":1,"36":1,"37":2,"43":1,"48":1,"49":3,"51":1,"52":13,"53":1,"54":2,"55":3,"56":1,"57":2,"58":4,"60":2,"61":1,"63":2,"64":11,"66":1,"67":5,"72":2,"73":1,"77":1,"78":1,"86":3,"89":2,"90":1,"93":3,"97":2,"98":1,"99":2,"100":1,"103":1,"104":4,"106":8,"108":1,"110":1,"115":2,"116":2,"119":5,"120":1,"122":1,"124":1,"126":1,"128":1,"129":2,"135":1,"136":1,"138":1,"140":1,"148":1,"152":1,"162":1,"166":1,"169":2,"175":1,"177":125,"178":22,"179":3,"181":34}}],["and",{"0":{"20":1,"23":1,"71":1},"2":{"0":6,"1":5,"2":12,"3":2,"4":2,"6":3,"7":17,"8":5,"10":13,"11":3,"12":3,"13":2,"16":2,"17":3,"18":1,"19":4,"21":9,"22":2,"23":6,"24":15,"26":2,"27":3,"28":2,"29":2,"30":3,"31":3,"32":4,"36":2,"37":5,"40":1,"42":1,"43":2,"45":1,"46":2,"47":2,"48":1,"49":11,"51":9,"52":58,"53":1,"54":2,"56":1,"57":1,"58":11,"60":7,"62":3,"63":5,"64":47,"65":2,"66":6,"67":10,"69":1,"70":1,"71":1,"72":2,"73":2,"74":3,"75":2,"76":2,"77":2,"78":1,"79":2,"81":1,"82":1,"83":3,"84":2,"85":1,"86":13,"87":6,"88":3,"89":1,"90":5,"91":4,"93":4,"94":1,"95":2,"96":2,"97":2,"98":2,"99":1,"100":2,"102":2,"103":5,"104":12,"105":10,"106":27,"108":1,"112":6,"113":1,"115":3,"116":4,"118":5,"119":3,"120":3,"122":2,"123":1,"124":3,"125":1,"126":1,"128":10,"129":4,"130":1,"134":2,"136":2,"138":16,"139":5,"140":10,"142":5,"143":4,"145":4,"147":1,"148":4,"150":17,"151":16,"152":3,"154":1,"155":2,"156":5,"157":2,"158":9,"159":3,"160":2,"161":2,"162":7,"163":2,"164":4,"165":5,"166":2,"167":3,"168":4,"169":10,"171":2,"172":3,"173":5,"175":1,"176":2,"177":215,"178":98,"179":1,"180":2,"181":189}}],["aims",{"2":{"181":4}}],["aimessage>",{"2":{"11":1,"177":1}}],["aimessage",{"2":{"2":1,"10":3,"12":2,"20":2,"22":1,"23":1,"24":1,"26":1,"30":1,"31":1,"34":1,"35":1,"36":1,"37":1,"45":1,"46":1,"47":1,"49":1,"52":6,"58":2,"60":1,"61":2,"85":2,"87":2,"95":2,"96":1,"98":2,"102":1,"104":3,"105":2,"177":71,"178":11}}],["aiagent",{"2":{"178":1}}],["aihelpme",{"2":{"87":1}}],["aitemplatemetadata",{"2":{"13":3,"24":2,"87":2,"177":14}}],["aitemplate",{"2":{"13":3,"24":4,"64":1,"90":2,"103":2,"105":2,"177":17,"178":4,"181":1}}],["aitemplates",{"0":{"24":1},"2":{"10":4,"13":4,"24":3,"87":1,"103":2,"104":3,"177":23,"181":2}}],["air",{"2":{"67":1,"177":1}}],["airetry",{"0":{"21":1},"2":{"10":1,"21":8,"49":3,"51":8,"52":13,"86":6,"104":1,"106":6,"177":1,"178":14}}],["airag",{"2":{"2":2,"6":1,"7":2,"10":1,"57":1,"58":3,"61":1,"62":1,"63":1,"64":7,"177":1,"181":24}}],["aiclassifier",{"2":{"86":1}}],["aiclassify",{"2":{"0":1,"10":2,"13":1,"17":1,"18":2,"52":1,"86":4,"104":1,"134":1,"177":21,"178":7}}],["aicodefixer",{"2":{"49":2,"52":9,"128":1,"129":1,"130":1,"177":2,"178":31,"180":1}}],["aicode",{"2":{"49":3,"52":16,"177":13,"178":6}}],["aicallblock",{"2":{"52":4,"178":13}}],["aicall",{"2":{"10":2,"21":9,"49":3,"51":9,"52":51,"104":2,"106":4,"177":2,"178":100}}],["aiimage",{"2":{"0":2,"10":2,"104":1,"177":8}}],["aiscan",{"0":{"38":1},"2":{"0":2,"10":2,"20":3,"38":1,"104":1,"177":19,"178":6}}],["aiextract",{"0":{"106":1},"2":{"0":1,"6":1,"10":2,"19":2,"31":2,"52":1,"64":3,"102":1,"104":2,"106":5,"142":1,"143":1,"145":1,"177":30,"178":7,"181":6}}],["aiembed",{"0":{"39":1},"1":{"40":1,"41":1,"42":1},"2":{"0":1,"10":2,"16":3,"22":3,"23":1,"27":1,"29":1,"30":1,"31":1,"40":2,"41":2,"42":1,"52":1,"64":2,"102":1,"104":2,"177":26,"178":7,"181":3}}],["aigenerate",{"0":{"33":1,"44":1,"80":1,"96":1,"105":1},"1":{"34":1,"35":1,"36":1,"37":1,"45":1,"46":1,"47":1},"2":{"0":1,"10":9,"12":4,"13":3,"14":2,"21":5,"22":2,"23":4,"24":1,"26":2,"27":2,"28":1,"29":2,"30":1,"31":1,"32":1,"34":1,"35":2,"36":1,"37":2,"43":1,"45":1,"46":1,"49":10,"51":5,"52":18,"64":6,"73":1,"74":1,"85":3,"86":6,"90":2,"91":3,"96":1,"97":1,"98":1,"104":11,"105":2,"106":11,"177":54,"178":38,"180":1,"181":16}}],["ai",{"0":{"10":1,"30":1,"31":1,"32":1,"43":1,"51":1,"95":1,"104":1},"1":{"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"44":1,"45":1,"46":1,"47":1},"2":{"0":5,"1":1,"10":12,"11":1,"12":1,"14":1,"15":3,"16":1,"17":1,"21":4,"22":1,"23":2,"24":1,"27":2,"29":1,"30":2,"31":3,"32":2,"43":2,"45":1,"47":1,"49":16,"51":1,"52":20,"56":1,"57":1,"58":1,"64":6,"65":1,"66":2,"67":1,"69":2,"73":1,"81":1,"82":1,"83":1,"85":6,"87":2,"89":1,"90":3,"95":5,"96":3,"98":2,"100":1,"101":1,"102":3,"103":3,"104":13,"105":3,"106":8,"108":1,"115":2,"116":4,"118":1,"119":1,"122":1,"135":1,"138":4,"139":5,"140":2,"148":1,"150":1,"151":1,"155":1,"156":1,"157":1,"169":3,"177":102,"178":51,"181":14}}],["cc",{"2":{"181":1}}],["c137951a1939ad22b9dfe499418eafea739e0767",{"2":{"67":1,"177":6,"181":1}}],["cn",{"2":{"67":1,"177":1}}],["cfg",{"2":{"61":1,"62":1,"64":9,"181":19}}],["cb",{"2":{"52":15,"177":23,"178":3}}],["cpp",{"0":{"28":1},"2":{"25":1,"28":3,"70":1,"98":1,"99":1,"177":1}}],["c",{"2":{"19":1,"28":2,"67":1,"74":2,"76":2,"177":1,"178":1,"181":2}}],["city",{"2":{"19":3}}],["ceo",{"2":{"152":1}}],["cents",{"2":{"77":2}}],["cent",{"2":{"75":1,"77":1}}],["celestial",{"2":{"67":2,"177":2}}],["celsius",{"2":{"19":2}}],["certainly",{"2":{"67":1,"177":1}}],["certain",{"2":{"0":1,"15":1,"86":1}}],["cumulative",{"2":{"181":2}}],["curr",{"2":{"181":3}}],["currently",{"2":{"23":1,"26":1,"52":1,"54":1,"61":1,"83":1,"177":7,"178":2}}],["currentweather",{"2":{"19":2}}],["current",{"2":{"19":2,"32":1,"52":1,"75":1,"86":1,"91":1,"94":1,"177":6,"178":3,"181":1}}],["curiosity",{"2":{"177":1}}],["customizing",{"2":{"178":1}}],["customized",{"2":{"150":1}}],["customize",{"2":{"52":1,"58":1,"60":4,"64":6,"84":1,"178":1,"181":8}}],["custom",{"0":{"25":1,"37":1},"1":{"26":1,"27":1,"28":1,"29":1,"30":1,"31":1},"2":{"52":1,"56":1,"60":5,"62":5,"64":13,"67":2,"86":2,"177":6,"178":1,"181":14}}],["customopenaischema",{"2":{"0":3,"23":2,"27":2,"28":1,"177":7}}],["cut",{"2":{"15":1}}],["crucial",{"2":{"177":1}}],["crunchy",{"2":{"31":2,"106":2}}],["craft",{"2":{"158":1,"169":1}}],["critiquing",{"2":{"138":1}}],["critique>",{"2":{"128":1}}],["critiques",{"2":{"128":1,"138":1,"139":1,"140":2}}],["critique",{"2":{"64":1,"128":12,"138":2,"139":2,"181":1}}],["critic",{"0":{"137":1},"1":{"138":1,"139":1,"140":1},"2":{"138":1,"139":4,"140":1}}],["criticism",{"2":{"128":1}}],["criterion",{"2":{"119":1}}],["criteria",{"2":{"119":2,"181":1}}],["credit",{"2":{"106":1,"177":3}}],["credits",{"2":{"70":1,"75":1,"93":2}}],["creativity",{"2":{"177":1}}],["creative",{"2":{"10":1,"104":1}}],["creation",{"2":{"118":1}}],["creating",{"0":{"72":1},"2":{"58":1,"64":1,"158":1,"181":4}}],["creature",{"2":{"18":2,"86":1,"177":5}}],["createqafromcontext",{"2":{"64":1,"181":1}}],["creates",{"2":{"52":1,"63":1,"87":1,"90":1,"177":3,"178":5,"181":1}}],["create",{"0":{"87":1},"2":{"2":2,"10":1,"16":1,"24":2,"49":1,"52":1,"54":1,"55":3,"60":1,"64":5,"72":2,"87":6,"89":1,"93":2,"98":1,"103":3,"104":1,"105":1,"106":1,"156":1,"164":1,"172":1,"177":23,"178":3,"179":4,"181":14}}],["cross",{"2":{"7":1}}],["ctx",{"2":{"6":6,"7":2,"181":4}}],["click",{"2":{"72":1,"93":1}}],["clipboard",{"2":{"52":2,"177":2}}],["clearly",{"2":{"60":1,"151":1,"152":1}}],["clear",{"2":{"52":1,"118":1,"119":3,"120":1,"128":1,"148":1,"150":1,"151":2,"152":1,"158":2,"159":1,"161":1,"162":1,"168":1,"178":1}}],["cleaning",{"2":{"157":1}}],["cleanup",{"2":{"24":1}}],["cleaner",{"2":{"24":1,"86":1}}],["cleaned",{"2":{"1":1}}],["clustering",{"2":{"16":1}}],["closely",{"2":{"67":2,"138":1,"176":1,"177":2}}],["close",{"2":{"67":2,"139":1,"158":1,"177":2}}],["closest",{"2":{"2":5,"61":1,"63":1,"64":4,"67":4,"177":9,"181":40}}],["cloud",{"2":{"12":1}}],["claudes",{"2":{"177":1}}],["claudeo",{"2":{"177":2}}],["claudeh",{"2":{"177":12}}],["claude",{"2":{"177":7}}],["clarification",{"2":{"139":1}}],["clarity",{"2":{"6":1,"119":1,"138":4,"139":1,"151":3,"166":1,"167":1}}],["classes=",{"2":{"181":3}}],["classes",{"2":{"181":5}}],["classifies",{"2":{"177":2}}],["classified",{"2":{"169":3,"177":1}}],["classification",{"0":{"17":1,"133":1},"1":{"18":1,"134":1,"135":1,"136":1},"2":{"18":1,"134":2,"135":1,"136":1,"177":3}}],["classify",{"2":{"10":1,"17":1,"104":1,"177":3}}],["class",{"2":{"13":1,"24":4,"102":1,"103":1,"105":2,"106":1,"108":1,"112":1,"115":1,"116":1,"118":1,"122":1,"123":1,"125":1,"134":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"148":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"171":1,"172":1,"173":1,"176":1,"177":2,"181":1}}],["child2",{"2":{"178":2}}],["child11",{"2":{"178":2}}],["child1",{"2":{"178":3}}],["children",{"2":{"64":2,"178":2,"181":9}}],["chief",{"2":{"138":4}}],["chiefeditortranscriptcritic",{"0":{"138":1}}],["chuckles",{"2":{"36":2}}],["chunkdata",{"2":{"177":3,"181":13}}],["chunkkeywordsindex",{"2":{"64":4,"177":2,"181":13}}],["chunked",{"2":{"64":1,"181":8}}],["chunkembeddingsindex",{"2":{"64":3,"177":1,"181":7}}],["chunkers",{"2":{"181":1}}],["chunker=filechunker",{"2":{"64":1,"181":1}}],["chunker",{"2":{"58":3,"60":2,"64":14,"181":29}}],["chunking",{"2":{"60":1,"63":1,"64":1,"181":2}}],["chunkindex",{"2":{"57":1,"181":3}}],["chunk",{"2":{"2":3,"8":1,"10":1,"58":2,"63":3,"64":6,"67":8,"88":1,"112":1,"118":4,"177":8,"181":25}}],["chunks",{"2":{"2":13,"3":1,"4":2,"8":1,"57":2,"58":2,"60":3,"61":3,"63":5,"64":35,"67":13,"88":1,"110":1,"177":14,"181":145}}],["cheaper",{"2":{"21":1,"51":1,"52":1,"177":2,"178":1}}],["cheap",{"2":{"18":1,"75":1,"177":1}}],["checkout",{"2":{"67":1,"177":1}}],["check",{"2":{"21":1,"22":1,"51":1,"52":7,"64":1,"71":1,"73":1,"75":1,"78":1,"79":1,"83":1,"86":3,"89":1,"93":1,"106":2,"140":1,"164":1,"166":1,"167":1,"172":1,"177":9,"178":5,"181":4}}],["checks",{"2":{"17":1,"51":1,"52":4,"77":1,"177":2,"178":6}}],["checking",{"2":{"17":1}}],["choice=",{"2":{"177":1}}],["choice",{"2":{"106":1,"136":3,"177":12,"178":1}}],["choices",{"2":{"10":3,"18":2,"86":2,"104":3,"105":1,"134":6,"136":6,"177":42}}],["chosen",{"2":{"21":1,"51":1,"52":1,"178":1}}],["choose",{"2":{"0":1,"152":1,"177":1,"181":2}}],["chapter",{"2":{"150":2}}],["chapters",{"2":{"150":4,"151":1}}],["chain",{"2":{"142":1,"164":1,"166":1,"172":1}}],["chars",{"2":{"67":1,"177":1}}],["character",{"2":{"67":3,"176":1,"177":3,"181":1}}],["characters",{"2":{"47":1,"67":4,"128":1,"177":5,"178":4,"181":13}}],["charles",{"2":{"55":2,"179":2}}],["charge",{"2":{"47":2,"75":2,"177":1}}],["chance",{"2":{"181":1}}],["chances",{"2":{"21":1,"51":1,"52":1,"178":1}}],["channel",{"2":{"57":1,"66":1}}],["changing",{"0":{"84":1},"2":{"52":1,"58":1,"60":1,"64":1,"177":1,"181":3}}],["changed",{"2":{"128":1}}],["changes",{"0":{"37":1},"2":{"32":1,"87":1,"116":1,"140":1,"177":2,"178":1,"181":4}}],["change",{"2":{"1":1,"21":1,"24":1,"37":1,"51":1,"52":1,"64":3,"106":1,"128":1,"177":9,"178":3,"180":1,"181":8}}],["challenging",{"2":{"0":1}}],["chat1",{"2":{"177":1}}],["chatmlschema",{"2":{"177":5}}],["chatgpt",{"2":{"11":1,"75":1,"181":3}}],["chatbots",{"2":{"177":1}}],["chatbot",{"2":{"1":1,"2":1}}],["chat",{"2":{"0":1,"29":3,"34":1,"37":1,"64":8,"84":2,"98":1,"105":2,"177":26,"181":25}}],["cababcab",{"2":{"177":1}}],["cache",{"2":{"73":1}}],["caused",{"2":{"128":1}}],["causes",{"2":{"36":1}}],["caught",{"2":{"52":1,"177":1,"178":1}}],["capable",{"2":{"136":1,"177":1}}],["capabilities",{"2":{"52":1,"69":1,"177":1}}],["captioning",{"2":{"177":2}}],["captain",{"2":{"87":2,"177":2}}],["capturing",{"2":{"52":3,"176":1,"177":3}}],["captures",{"2":{"91":1,"175":1,"177":1}}],["captured",{"2":{"52":3,"177":3}}],["capture",{"2":{"52":5,"91":2,"106":1,"177":11,"178":1}}],["capital",{"2":{"15":1,"64":2,"95":5,"96":2,"105":4,"181":5}}],["casual",{"2":{"158":1}}],["cased",{"2":{"156":1}}],["cases",{"2":{"52":1,"165":1,"173":1,"177":3,"178":1}}],["case",{"2":{"24":1,"58":1,"69":1,"86":2,"89":1,"105":1,"112":1,"158":1,"177":2,"181":2}}],["castle",{"2":{"18":1,"177":1}}],["cartoonish",{"2":{"175":2}}],["cartesian",{"2":{"7":1}}],["carries",{"2":{"166":1,"167":1}}],["carrying",{"2":{"67":1,"177":1}}],["carefully",{"2":{"112":1,"120":1,"140":1,"152":1}}],["care",{"2":{"100":1}}],["car",{"2":{"86":2,"106":1,"177":7}}],["carve",{"2":{"56":1}}],["carlo",{"2":{"21":1,"49":1,"52":1,"178":3}}],["ca",{"2":{"19":1}}],["cat",{"2":{"177":7}}],["categorize",{"2":{"152":1}}],["categories",{"0":{"18":1},"2":{"18":1,"86":2,"112":1,"113":1,"136":2,"177":2}}],["category",{"2":{"86":2,"112":1,"113":1,"136":4,"177":1,"181":1}}],["catch",{"2":{"0":1,"19":1,"21":2,"49":1,"51":2,"52":4,"106":1,"178":9}}],["camelcase",{"2":{"21":1,"177":1}}],["came",{"2":{"10":1,"181":1}}],["calculating",{"2":{"177":1}}],["calculation",{"2":{"177":1,"181":1}}],["calculates",{"2":{"181":3}}],["calculated",{"2":{"74":1,"169":1,"177":2}}],["calculate",{"2":{"7":1,"16":2,"177":10}}],["calltracer",{"2":{"177":2}}],["callback",{"2":{"177":13}}],["callbacks",{"2":{"177":1}}],["calling",{"2":{"24":1,"31":1,"32":1,"49":1,"106":2,"142":1,"143":1,"145":1,"177":3,"178":1,"181":1}}],["call",{"2":{"10":2,"11":1,"15":1,"21":2,"24":1,"29":1,"49":3,"51":2,"52":15,"63":1,"64":10,"73":1,"77":1,"85":1,"87":2,"98":1,"103":1,"104":2,"106":2,"142":1,"143":1,"145":1,"177":54,"178":44,"181":19}}],["called",{"2":{"7":3,"10":1,"11":1,"21":1,"24":1,"49":1,"52":1,"63":4,"87":1,"95":1,"98":1,"104":1,"177":3,"178":4,"181":3}}],["calls",{"0":{"51":1},"2":{"0":2,"10":1,"21":4,"41":1,"49":2,"51":1,"52":6,"55":1,"62":1,"64":10,"71":1,"86":1,"104":1,"106":2,"142":1,"143":1,"145":1,"177":27,"178":13,"179":1,"180":1,"181":22}}],["cannot",{"0":{"70":1,"73":2},"2":{"17":1,"64":1,"67":1,"69":1,"106":2,"135":1,"177":6,"181":4}}],["candidatechunks",{"2":{"58":4,"63":1,"64":1,"177":1,"181":13}}],["candidate",{"2":{"2":1,"181":17}}],["candidates",{"2":{"2":1,"58":4,"60":1,"63":3,"64":2,"181":40}}],["can",{"0":{"90":1},"2":{"2":1,"6":2,"7":7,"8":1,"10":4,"11":1,"12":4,"13":2,"14":2,"15":5,"16":2,"17":2,"18":2,"19":2,"20":4,"21":8,"22":3,"23":9,"24":11,"26":7,"27":1,"28":2,"29":3,"30":5,"31":4,"34":1,"35":1,"37":2,"38":1,"41":2,"43":1,"44":1,"46":2,"49":2,"51":7,"52":22,"55":2,"58":4,"60":1,"62":2,"63":2,"64":10,"66":1,"67":4,"69":1,"71":2,"72":1,"73":3,"74":2,"76":1,"77":2,"78":1,"79":1,"81":2,"83":2,"84":3,"85":3,"86":6,"87":8,"89":2,"90":2,"91":8,"93":1,"94":1,"95":1,"96":2,"97":1,"98":2,"99":2,"101":2,"103":3,"104":3,"105":1,"106":10,"110":1,"112":1,"118":1,"128":1,"129":1,"130":1,"150":1,"165":1,"173":1,"177":122,"178":23,"179":2,"181":27}}],["copies",{"2":{"181":1}}],["copy",{"2":{"2":1,"22":1,"40":2,"52":1,"177":3}}],["coding",{"2":{"178":1}}],["codeunits",{"2":{"177":3}}],["code>",{"2":{"128":1,"173":6}}],["codefixer",{"2":{"178":4}}],["codefixertiny",{"0":{"130":1}}],["codefixershort",{"0":{"129":1}}],["codefixerrci",{"0":{"128":1},"2":{"178":1}}],["codefailedtimeout",{"2":{"52":1,"178":1}}],["codefailedeval",{"2":{"52":1,"178":1}}],["codefailedparse",{"2":{"52":1,"178":1}}],["codellama",{"2":{"83":1}}],["codes",{"2":{"75":1}}],["codesuccess",{"2":{"52":1,"178":1}}],["codeempty",{"2":{"52":1,"178":1}}],["code",{"0":{"127":1},"1":{"128":1,"129":1,"130":1},"2":{"20":3,"23":1,"24":2,"26":1,"48":1,"49":1,"52":49,"56":1,"64":4,"66":2,"86":1,"102":1,"112":1,"128":13,"129":9,"130":3,"140":11,"162":1,"164":3,"165":12,"172":3,"173":10,"177":94,"178":36,"180":1,"181":14}}],["coalitional",{"2":{"169":1}}],["cot",{"2":{"164":1,"166":1,"172":1}}],["core",{"2":{"125":1,"178":1}}],["corpus",{"2":{"57":1}}],["corresponds",{"2":{"177":2}}],["correspondence",{"2":{"158":1}}],["correspond",{"2":{"58":1,"64":1,"178":1,"181":4}}],["corresponding",{"2":{"0":4,"12":1,"30":1,"31":1,"49":2,"60":2,"62":1,"63":2,"64":4,"70":1,"106":2,"140":1,"150":1,"151":1,"152":1,"169":1,"177":18,"181":9}}],["correctiverag",{"2":{"181":1}}],["correcting",{"2":{"140":1}}],["corrections",{"2":{"138":1}}],["correct",{"2":{"52":4,"86":1,"106":3,"128":1,"140":1,"164":1,"165":4,"166":1,"167":1,"172":1,"173":4,"178":4,"181":1}}],["correctly",{"2":{"0":1,"169":3,"177":5}}],["covering",{"2":{"165":1,"173":1}}],["cover",{"2":{"119":1}}],["coversation",{"2":{"52":1,"178":1}}],["coverage",{"0":{"0":1}}],["collects",{"2":{"178":1}}],["collect",{"2":{"177":2,"178":2}}],["collection",{"2":{"24":1,"64":1,"181":1}}],["collaboration",{"2":{"158":1}}],["colorful",{"2":{"175":1,"177":1}}],["colors",{"2":{"64":1,"181":1}}],["color",{"2":{"21":2,"51":2,"52":2,"58":3,"67":1,"177":7,"178":2,"181":8}}],["column",{"2":{"7":2,"177":2,"181":4}}],["columns",{"2":{"6":1,"7":4,"181":1}}],["cosmic",{"2":{"67":1,"177":1}}],["cosinesimilarity",{"2":{"64":2,"177":1,"181":12}}],["cosine",{"2":{"16":2,"42":2,"177":4,"181":5}}],["cost2",{"2":{"177":2}}],["cost1",{"2":{"177":3}}],["costing",{"2":{"177":2}}],["costs",{"2":{"10":1,"64":1,"76":1,"104":1,"177":9,"181":1}}],["cost",{"0":{"77":1},"2":{"4":1,"11":1,"13":1,"20":2,"23":1,"24":1,"26":1,"30":1,"31":1,"58":1,"64":16,"69":1,"77":1,"85":1,"95":2,"96":1,"177":72,"181":50}}],["counds",{"2":{"178":1}}],["counts",{"2":{"181":1}}],["counted",{"2":{"178":1}}],["counter",{"2":{"64":3,"178":2,"181":7}}],["counterpart",{"2":{"49":1,"67":1,"177":1}}],["counterparts",{"2":{"10":1,"21":1,"49":1,"104":1}}],["counting",{"2":{"156":1}}],["country=",{"2":{"96":1}}],["country",{"2":{"95":1,"96":1,"181":4}}],["count",{"2":{"28":1,"32":1,"64":1,"108":1,"110":1,"112":1,"113":1,"115":1,"116":1,"118":1,"119":1,"120":1,"122":1,"123":1,"124":1,"125":1,"126":1,"128":1,"129":1,"130":1,"132":1,"134":1,"135":1,"136":1,"138":1,"139":1,"140":1,"142":1,"143":1,"145":1,"147":1,"148":1,"150":1,"151":1,"152":1,"155":1,"156":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"171":1,"172":1,"173":1,"175":1,"176":1,"177":5,"181":1}}],["couldn",{"2":{"177":1}}],["could",{"2":{"7":1,"8":1,"21":2,"45":1,"51":2,"52":2,"64":2,"67":2,"74":1,"90":1,"106":1,"124":1,"148":1,"177":6,"178":2,"181":2}}],["coherence",{"2":{"177":1}}],["coherereranker",{"2":{"64":1,"177":1,"181":5}}],["cohere",{"2":{"2":1,"8":1,"64":2,"177":6,"181":19}}],["conv",{"2":{"90":1,"91":2,"106":2,"177":28}}],["conventions",{"2":{"177":1}}],["convention",{"2":{"177":1}}],["convenient",{"2":{"177":2}}],["convenience",{"2":{"2":1,"67":2,"177":5,"181":1}}],["conversion",{"2":{"106":1}}],["conversation=myconversation",{"2":{"178":1}}],["conversational",{"2":{"177":2}}],["conversationlabeler",{"0":{"156":1}}],["conversation2",{"2":{"89":1}}],["conversation1",{"2":{"89":1}}],["conversations",{"0":{"12":1,"85":1},"2":{"12":1,"37":2,"46":1,"52":1,"58":2,"64":2,"89":3,"91":2,"96":1,"177":26,"178":1,"181":9}}],["conversation",{"2":{"10":2,"12":6,"21":1,"30":1,"36":1,"46":1,"51":1,"52":25,"64":1,"85":11,"86":4,"87":1,"89":3,"91":2,"95":1,"101":2,"104":2,"106":3,"138":2,"139":5,"140":1,"156":6,"177":196,"178":71,"181":5}}],["converts",{"2":{"177":1}}],["converting",{"2":{"124":1,"126":1}}],["convert",{"2":{"105":2,"106":1,"177":5,"181":4}}],["convey",{"2":{"98":1,"101":1}}],["connection",{"2":{"46":1}}],["confusion",{"2":{"36":1}}],["confident",{"2":{"24":3,"103":1,"105":2,"155":1,"159":1,"161":1,"163":1,"168":1,"171":1}}],["confidence",{"2":{"10":1,"67":1,"177":1,"178":2}}],["config=retryconfig",{"2":{"86":1,"106":1}}],["configuring",{"0":{"78":1}}],["configuration",{"2":{"64":1,"78":2,"178":1,"181":3}}],["configurable",{"2":{"58":1}}],["config",{"2":{"21":2,"49":1,"51":2,"52":9,"64":1,"81":1,"106":2,"177":1,"178":14,"181":3}}],["conducted",{"2":{"178":1}}],["cond",{"2":{"21":1,"51":1,"52":6,"178":15}}],["conditions",{"2":{"177":1}}],["condition",{"2":{"21":4,"51":5,"52":16,"86":3,"106":3,"177":1,"178":31}}],["concatenation",{"2":{"181":1}}],["concatenates",{"2":{"177":1}}],["concatenate",{"2":{"47":1,"52":1,"177":1,"181":1}}],["concentrate",{"2":{"169":1}}],["concepts",{"0":{"98":1},"1":{"99":1,"100":1,"101":1,"102":1,"103":1,"104":1},"2":{"97":1,"98":1,"124":1}}],["concept",{"2":{"16":1,"124":1}}],["conclusion",{"2":{"162":1}}],["conclusions",{"2":{"150":1}}],["conclude",{"2":{"138":1,"140":1,"169":1}}],["concrete",{"2":{"106":1}}],["concise",{"2":{"24":3,"102":1,"103":1,"105":2,"108":1,"115":1,"116":1,"118":1,"125":1,"128":1,"150":3,"151":2,"154":1,"155":1,"156":1,"157":1,"158":2,"159":1,"161":1,"162":1,"163":1,"164":1,"168":1,"171":1,"172":1,"177":6}}],["concurrent",{"2":{"14":1,"74":2}}],["concurrently",{"2":{"14":1,"96":1}}],["contrast",{"2":{"177":1}}],["control",{"2":{"86":1,"95":1,"166":1,"167":1,"181":2}}],["controlling",{"2":{"52":1,"178":1}}],["controlled",{"2":{"21":1}}],["contribute",{"2":{"58":1}}],["contribution",{"2":{"49":1,"169":1}}],["continuous",{"2":{"71":1}}],["continued",{"2":{"177":1}}],["continues>",{"2":{"177":5}}],["continue",{"2":{"52":1,"95":1,"177":6,"178":1}}],["continue>",{"2":{"20":1,"177":2}}],["continuing",{"2":{"11":1,"77":1}}],["contained",{"2":{"181":2}}],["container",{"2":{"177":1}}],["containing",{"2":{"10":3,"64":4,"104":3,"177":7,"178":1,"181":13}}],["contain",{"2":{"7":1,"10":1,"104":1,"177":4,"181":2}}],["contains",{"2":{"6":1,"7":8,"24":1,"32":1,"43":1,"58":1,"60":1,"66":1,"102":1,"177":3,"178":1,"180":1,"181":2}}],["contemporary",{"2":{"15":1,"177":1}}],["contents",{"2":{"181":2}}],["content=",{"2":{"177":8}}],["content",{"2":{"6":1,"10":11,"16":3,"19":2,"20":2,"21":1,"22":2,"23":1,"27":1,"31":1,"40":1,"41":1,"42":2,"51":1,"52":5,"55":2,"64":1,"86":3,"90":2,"95":2,"104":11,"105":5,"106":3,"138":3,"150":1,"151":2,"177":89,"178":10,"179":2,"181":6}}],["context=true",{"2":{"181":1}}],["context=",{"2":{"181":4}}],["contexts",{"2":{"178":1}}],["contextual",{"2":{"64":1,"118":1,"181":2}}],["contextenumerator",{"2":{"64":3,"177":1,"181":11}}],["contexter",{"2":{"64":8,"181":14}}],["context",{"2":{"2":2,"5":1,"6":3,"8":3,"10":2,"11":2,"28":1,"52":1,"54":1,"58":6,"60":1,"61":1,"63":5,"64":32,"66":1,"67":9,"101":2,"108":7,"115":11,"116":1,"118":11,"119":8,"120":6,"124":1,"138":1,"148":1,"151":1,"152":1,"169":1,"177":17,"178":4,"181":103}}],["consecutive",{"2":{"181":2}}],["conservative",{"2":{"47":1,"177":1}}],["consumer",{"2":{"71":1}}],["consuming",{"2":{"3":1}}],["considered",{"2":{"64":1,"67":1,"177":1,"181":2}}],["considering",{"2":{"58":1,"119":1,"177":2,"181":1}}],["consider",{"2":{"24":1,"64":2,"124":1,"138":1,"169":1,"177":1,"181":2}}],["consistent",{"2":{"119":2,"120":1,"156":1,"181":2}}],["consistency",{"2":{"6":1,"47":1,"119":1,"138":1,"177":2,"181":1}}],["consisting",{"2":{"20":1,"177":2}}],["consists",{"2":{"7":1}}],["constant",{"2":{"177":9}}],["constituent",{"2":{"139":1}}],["construct",{"2":{"177":1}}],["constructive",{"2":{"138":1}}],["constructs",{"2":{"63":1}}],["constraints",{"2":{"67":1,"139":1,"177":1}}],["const",{"2":{"1":2,"24":1,"25":1,"32":1,"43":1,"48":1,"56":1,"81":1,"105":1,"106":1,"177":2}}],["combination",{"2":{"177":1,"181":2}}],["combining",{"2":{"56":1}}],["combines",{"2":{"64":2,"181":2}}],["combined",{"2":{"7":1,"181":1}}],["combine",{"2":{"5":1,"6":2,"7":5}}],["com",{"2":{"20":1,"54":2,"67":1,"75":1,"110":1,"177":12,"179":1,"181":5}}],["comes",{"2":{"89":1,"181":1}}],["come",{"2":{"13":1,"177":2}}],["commas",{"2":{"181":1}}],["commands",{"2":{"67":4,"94":1,"177":4}}],["command",{"2":{"24":1,"28":1,"67":1,"101":1,"177":1}}],["commit",{"2":{"78":1,"93":1}}],["comments",{"2":{"77":1,"128":1,"129":1,"177":1}}],["comment",{"2":{"77":1,"115":1,"116":1,"165":1,"173":1}}],["commercial",{"2":{"77":1}}],["communicates",{"2":{"138":1}}],["communications",{"2":{"158":2}}],["communication",{"2":{"24":3,"98":1,"100":1,"102":1,"103":1,"105":2,"155":1,"157":1,"158":3,"159":1,"161":1,"163":1,"164":1,"168":1,"171":1,"172":1,"177":1,"178":1}}],["community",{"2":{"24":1,"58":1}}],["commun",{"2":{"13":1,"24":1,"177":2}}],["commonly",{"2":{"177":1}}],["common",{"2":{"1":1,"7":2,"66":7,"67":17,"86":1,"89":1,"177":20,"178":1}}],["compelling",{"2":{"162":1,"169":1}}],["complicated",{"2":{"86":2,"106":1}}],["complicity",{"2":{"67":1,"177":1}}],["complement",{"2":{"180":1}}],["completions",{"2":{"177":5}}],["completions`",{"2":{"177":1}}],["completion",{"2":{"177":5}}],["completeling",{"2":{"177":1}}],["completely",{"2":{"64":1,"66":1,"181":2}}],["completeness",{"2":{"6":1,"119":1,"139":1}}],["complete",{"2":{"5":2,"6":1,"7":2,"119":1}}],["complex",{"2":{"12":1,"16":1,"17":1,"19":1,"21":1,"58":1,"96":1,"177":3,"178":2}}],["compact",{"2":{"165":1,"173":1,"181":1}}],["compass",{"2":{"87":2,"177":2}}],["company",{"2":{"67":2,"177":2}}],["companion",{"2":{"66":1}}],["comparing",{"2":{"67":1,"177":1}}],["comparison",{"2":{"58":2}}],["compared",{"2":{"181":1}}],["compare",{"2":{"66":1,"67":2,"177":2,"178":1}}],["compatibility",{"2":{"37":1,"177":6}}],["compatible",{"0":{"23":1,"27":1},"2":{"0":2,"23":2,"25":1,"27":1,"177":2}}],["computes",{"2":{"181":1}}],["compute",{"2":{"67":1,"177":1,"181":1}}],["computer",{"2":{"22":1,"23":1}}],["computational",{"2":{"58":1}}],["computing",{"2":{"58":8,"64":1,"181":6}}],["comprehensively",{"2":{"118":1,"165":1,"173":1}}],["comprehensive",{"2":{"58":2,"148":1,"150":1}}],["comprehension",{"0":{"20":1}}],["composite",{"2":{"181":2}}],["compose",{"2":{"91":1,"118":1}}],["composed",{"2":{"7":1,"177":2}}],["components",{"2":{"62":2,"64":1,"181":3}}],["component",{"2":{"52":1,"62":1,"64":1,"178":2,"181":2}}],["compiled",{"2":{"64":1,"73":3,"181":1}}],["compile",{"2":{"24":1,"28":1,"73":1}}]],"serializationVersion":2}'; +export { + _localSearchIndexroot as default +}; diff --git a/dev/assets/chunks/VPLocalSearchBox.CsPc4aX4.js b/dev/assets/chunks/VPLocalSearchBox.BcFcHvYk.js similarity index 99% rename from dev/assets/chunks/VPLocalSearchBox.CsPc4aX4.js rename to dev/assets/chunks/VPLocalSearchBox.BcFcHvYk.js index 8976e7b48..a2fdd7be9 100644 --- a/dev/assets/chunks/VPLocalSearchBox.CsPc4aX4.js +++ b/dev/assets/chunks/VPLocalSearchBox.BcFcHvYk.js @@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => { return value; }; import { Y as __vitePreload, h as ref, y as watch, al as unrefElement, am as tryOnScopeDispose, d as defineComponent, H as shallowRef, an as computedAsync, k as computed, ao as useSessionStorage, ap as useLocalStorage, z as watchEffect, aq as watchDebounced, l as onMounted, U as nextTick, S as onKeyStroke, ar as useRouter, as as useEventListener, Z as useScrollLock, j as inBrowser, at as onBeforeUnmount, o as openBlock, b as createBlock, m as createBaseVNode, a2 as withModifiers, p as unref, au as withDirectives, av as vModelText, aw as isRef, c as createElementBlock, n as normalizeClass, e as createCommentVNode, G as renderList, F as Fragment, a as createTextVNode, t as toDisplayString, ax as Teleport, q as pushScopeId, s as popScopeId, ay as markRaw, az as createApp, ab as dataSymbol, ah as pathToFile, aA as escapeRegExp, _ as _export_sfc } from "./framework.C9IUtwDK.js"; -import { u as useData, c as createSearchTranslate } from "./theme.BNLX_dBw.js"; -const localSearchIndex = { "root": () => __vitePreload(() => import("./@localSearchIndexroot.Bd8hFZYh.js"), true ? __vite__mapDeps([]) : void 0) }; +import { u as useData, c as createSearchTranslate } from "./theme.KZDCP6Hy.js"; +const localSearchIndex = { "root": () => __vitePreload(() => import("./@localSearchIndexroot.DTIZRJv3.js"), true ? __vite__mapDeps([]) : void 0) }; /*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE diff --git a/dev/assets/chunks/theme.BNLX_dBw.js b/dev/assets/chunks/theme.KZDCP6Hy.js similarity index 99% rename from dev/assets/chunks/theme.BNLX_dBw.js rename to dev/assets/chunks/theme.KZDCP6Hy.js index 52175d08b..871fbad5f 100644 --- a/dev/assets/chunks/theme.BNLX_dBw.js +++ b/dev/assets/chunks/theme.KZDCP6Hy.js @@ -2220,7 +2220,7 @@ const _hoisted_3$6 = { const _sfc_main$k = /* @__PURE__ */ defineComponent({ __name: "VPNavBarSearch", setup(__props) { - const VPLocalSearchBox = defineAsyncComponent(() => __vitePreload(() => import("./VPLocalSearchBox.CsPc4aX4.js"), true ? __vite__mapDeps([0,1]) : void 0)); + const VPLocalSearchBox = defineAsyncComponent(() => __vitePreload(() => import("./VPLocalSearchBox.BcFcHvYk.js"), true ? __vite__mapDeps([0,1]) : void 0)); const VPAlgoliaSearchBox = () => null; const { theme: theme2 } = useData(); const loaded = ref(false); @@ -3405,7 +3405,7 @@ export { }; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/chunks/VPLocalSearchBox.CsPc4aX4.js","assets/chunks/framework.C9IUtwDK.js"] + __vite__mapDeps.viteFileDeps = ["assets/chunks/VPLocalSearchBox.BcFcHvYk.js","assets/chunks/framework.C9IUtwDK.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/dev/assets/extra_tools_agent_tools_intro.md.yHywMkDe.js b/dev/assets/extra_tools_agent_tools_intro.md.DJvZgul4.js similarity index 98% rename from dev/assets/extra_tools_agent_tools_intro.md.yHywMkDe.js rename to dev/assets/extra_tools_agent_tools_intro.md.DJvZgul4.js index 0ae19d8ac..cec69df2d 100644 --- a/dev/assets/extra_tools_agent_tools_intro.md.yHywMkDe.js +++ b/dev/assets/extra_tools_agent_tools_intro.md.DJvZgul4.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Agent Tools Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"extra_tools/agent_tools_intro.md","filePath":"extra_tools/agent_tools_intro.md","lastUpdated":null}'); const _sfc_main = { name: "extra_tools/agent_tools_intro.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Agent Tools Introduction

AgentTools is an experimental module that provides a set of utilities for building advanced agentic workflows, code-generating and self-fixing agents.

Import the module as follows:

julia
using PromptingTools.Experimental.AgentTools\n# to access unexported functionality\nconst AT = PromptingTools.Experimental.AgentTools

Highlights

The main functions to be aware of are:

The main contribution of this module is providing the "lazy" counterparts to the ai... functions, which allow us to build a workflow, which can be re-executed many times with the same inputs.

For example, AIGenerate() will create a lazy instance of aigenerate, which is an instance of AICall with aigenerate as its ai-calling function. It uses exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details). The notion of "lazy" refers to the fact that it does NOT generate any output when instantiated (only when run! is called).

Or said differently, the AICall struct and all its flavors (AIGenerate, ...) are designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This allows us to remember user inputs and trigger the LLM call repeatedly if needed, which enables automatic fixing (see ?airetry!).

Examples

Automatic Fixing of AI Calls

We need to switch from aigenerate to AIGenerate to get the lazy version of the function.

julia
output = AIGenerate("Say hi!"; model="gpt4t") |> run!

How is it useful? We can use the same "inputs" for repeated calls, eg, when we want to validate or regenerate some outputs. We have a function airetry! to help us with that.

The signature of airetry is airetry(condition_function, aicall::AICall, feedback_function).

It evaluates the condition condition_function on the aicall object (eg, we evaluate f_cond(aicall) -> Bool). If it fails, we call feedback_function on the aicall object to provide feedback for the AI model (eg, f_feedback(aicall) -> String) and repeat the process until it passes or until max_retries value is exceeded.

We can catch API failures (no feedback needed, so none is provided)

julia
# API failure because of a non-existent model\n# RetryConfig allows us to change the "retry" behaviour of any lazy call\noutput = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(output) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, output; retry_delay = 2, max_retries = 2)

Or we can use it for output validation (eg, its format, its content, etc.) and feedback generation.

Let's play a color guessing game (I'm thinking "yellow"). We'll implement two formatting checks with airetry!:

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n# Note: you could also use the do-syntax, eg, \nairetry!(out, "You must answer with 1 word only.") do aicall\n    length(split(last_output(aicall), r" |\\\\.")) == 1\nend

You can even add the guessing itself as an airetry! condition of last_output(out) == "yellow" and provide feedback if the guess is wrong.

References

# PromptingTools.Experimental.AgentTools.AIGenerateFunction.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}\n\nAIGenerate(args...; kwargs...)\nAIEmbed(args...; kwargs...)\nAIExtract(args...; kwargs...)

A lazy call wrapper for AI functions in the PromptingTools module, such as aigenerate.

The AICall struct is designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This approach allows for more flexible and efficient handling of AI function calls, especially in interactive environments.

Seel also: run!, AICodeFixer

Fields

Example

Initiate an AICall like any ai* function, eg, AIGenerate:

julia
aicall = AICall(aigenerate)\n\n# With arguments and kwargs like ai* functions\n# from `aigenerate(schema, conversation; model="abc", api_kwargs=(; temperature=0.1))`\n# to\naicall = AICall(aigenerate, schema, conversation; model="abc", api_kwargs=(; temperature=0.1)\n\n# Or with a template\naicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!\n````\n\nYou can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

source


# PromptingTools.last_outputFunction.

Extracts the last output (generated text answer) from the RAGResult.

source

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.last_messageFunction.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(\n    f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";\n    verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,\n    max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

Gotchas

Arguments

Returns

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model\nout = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(out) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, out; retry_delay = 2, max_retries = 2)

If you provide arguments to the aicall, we try to honor them as much as possible in the following calls, eg, set low verbosity

julia
out = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\nmodel = "NOTEXIST", verbose=false)\nrun!(out)\n# No info message, you just see `success = false` in the properties of the AICall

Let's show a toy example to demonstrate the runtime checks / guardrails for the model output. We'll play a color guessing game (I'm thinking "yellow"):

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n\n## Let's ensure that the output is in lowercase - simple and short\nairetry!(x -> all(islowercase, last_output(x)), out, "You must answer in lowercase.")\n# [ Info: Condition not met. Retrying...\n\n\n## Let's add final hint - it took us 2 retries\nairetry!(x -> startswith(last_output(x), "y"), out, "It starts with "y"")\n# [ Info: Condition not met. Retrying...\n# [ Info: Condition not met. Retrying...\n\n\n## We end up with the correct answer\nlast_output(out)\n# Output: "yellow"

Let's explore how we got here. We save the various attempts in a "tree" (SampleNode object) You can access it in out.samples, which is the ROOT of the tree (top level). Currently "active" sample ID is out.active_sample_id -> that's the same as conversation field in your AICall.

julia
# Root node:\nout.samples\n# Output: SampleNode(id: 46839, stats: 6/12, length: 2)\n\n# Active sample (our correct answer):\nout.active_sample_id \n# Output: 50086\n\n# Let's obtain the active sample node with this ID  - use getindex notation or function find_node\nout.samples[out.active_sample_id]\n# Output: SampleNode(id: 50086, stats: 1/1, length: 7)\n\n# The SampleNode has two key fields: data and feedback. Data is where the conversation is stored:\nactive_sample = out.samples[out.active_sample_id]\nactive_sample.data == out.conversation # Output: true -> This is the winning guess!

We also get a clear view of the tree structure of all samples with print_samples:

julia
julia> print_samples(out.samples)\nSampleNode(id: 46839, stats: 6/12, score: 0.5, length: 2)\n├─ SampleNode(id: 12940, stats: 5/8, score: 1.41, length: 4)\n│  ├─ SampleNode(id: 34315, stats: 3/4, score: 1.77, length: 6)\n│  │  ├─ SampleNode(id: 20493, stats: 1/1, score: 2.67, length: 7)\n│  │  └─ SampleNode(id: 50086, stats: 1/1, score: 2.67, length: 7)\n│  └─ SampleNode(id: 2733, stats: 1/2, score: 1.94, length: 5)\n└─ SampleNode(id: 48343, stats: 1/4, score: 1.36, length: 4)\n   ├─ SampleNode(id: 30088, stats: 0/1, score: 1.67, length: 5)\n   └─ SampleNode(id: 44816, stats: 0/1, score: 1.67, length: 5)

You can use the id to grab and inspect any of these nodes, eg,

julia
out.samples[2733]\n# Output: SampleNode(id: 2733, stats: 1/2, length: 5)

We can also iterate through all samples and extract whatever information we want with PostOrderDFS or PreOrderDFS (exported from AbstractTrees.jl)

julia
for sample in PostOrderDFS(out.samples)\n    # Data is the universal field for samples, we put `conversation` in there\n    # Last item in data is the last message in coversation\n    msg = sample.data[end]\n    if msg isa PT.AIMessage # skip feedback\n        # get only the message content, ie, the guess\n        println("ID: $(sample.id), Answer: $(msg.content)")\n    end\nend\n\n# ID: 20493, Answer: yellow\n# ID: 50086, Answer: yellow\n# ID: 2733, Answer: red\n# ID: 30088, Answer: blue\n# ID: 44816, Answer: blue

Note: airetry! will attempt to fix the model max_retries times. If you set throw=true, it will throw an ErrorException if the condition is not met after max_retries retries.

Let's define a mini program to guess the number and use airetry! to guide the model to the correct answer:

julia
"""\n    llm_guesser()\n\nMini program to guess the number provided by the user (betwee 1-100).\n"""\nfunction llm_guesser(user_number::Int)\n    @assert 1 <= user_number <= 100\n    prompt = """\nI'm thinking a number between 1-100. Guess which one it is. \nYou must respond only with digits and nothing else. \nYour guess:"""\n    ## 2 samples at a time, max 5 fixing rounds\n    out = AIGenerate(prompt; config = RetryConfig(; n_samples = 2, max_retries = 5),\n        api_kwargs = (; n = 2)) |> run!\n    ## Check the proper output format - must parse to Int, use do-syntax\n    ## We can provide feedback via a function!\n    function feedback_f(aicall)\n        "Output: $(last_output(aicall))\nFeedback: You must respond only with digits!!"\n    end\n    airetry!(out, feedback_f) do aicall\n        !isnothing(tryparse(Int, last_output(aicall)))\n    end\n    ## Give a hint on bounds\n    lower_bound = (user_number ÷ 10) * 10\n    upper_bound = lower_bound + 10\n    airetry!(\n        out, "The number is between or equal to $lower_bound to $upper_bound.") do aicall\n        guess = tryparse(Int, last_output(aicall))\n        lower_bound <= guess <= upper_bound\n    end\n    ## You can make at most 3x guess now -- if there is max_retries in `config.max_retries` left\n    max_retries = out.config.retries + 3\n    function feedback_f2(aicall)\n        guess = tryparse(Int, last_output(aicall))\n        "Your guess of $(guess) is wrong, it's $(abs(guess-user_number)) numbers away."\n    end\n    airetry!(out, feedback_f2; max_retries) do aicall\n        tryparse(Int, last_output(aicall)) == user_number\n    end\n\n    ## Evaluate the best guess\n    @info "Results: Guess: $(last_output(out)) vs User: $user_number (Number of calls made: $(out.config.calls))"\n    return out\nend\n\n# Let's play the game\nout = llm_guesser(33)\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Results: Guess: 33 vs User: 33 (Number of calls made: 10)

Yay! We got it 😃

Now, we could explore different samples (eg, print_samples(out.samples)) or see what the model guessed at each step:

julia
print_samples(out.samples)\n## SampleNode(id: 57694, stats: 6/14, score: 0.43, length: 2)\n## ├─ SampleNode(id: 35603, stats: 5/10, score: 1.23, length: 4)\n## │  ├─ SampleNode(id: 55394, stats: 1/4, score: 1.32, length: 6)\n## │  │  ├─ SampleNode(id: 20737, stats: 0/1, score: 1.67, length: 7)\n## │  │  └─ SampleNode(id: 52910, stats: 0/1, score: 1.67, length: 7)\n## │  └─ SampleNode(id: 43094, stats: 3/4, score: 1.82, length: 6)\n## │     ├─ SampleNode(id: 14966, stats: 1/1, score: 2.67, length: 7)\n## │     └─ SampleNode(id: 32991, stats: 1/1, score: 2.67, length: 7)\n## └─ SampleNode(id: 20506, stats: 1/4, score: 1.4, length: 4)\n##    ├─ SampleNode(id: 37581, stats: 0/1, score: 1.67, length: 5)\n##    └─ SampleNode(id: 46632, stats: 0/1, score: 1.67, length: 5)\n\n# Lastly, let's check all the guesses AI made across all samples. \n# Our winning guess was ID 32991 (`out.active_sample_id`)\n\nfor sample in PostOrderDFS(out.samples)\n    [println("ID: $(sample.id), Guess: $(msg.content)")\n     for msg in sample.data if msg isa PT.AIMessage]\nend\n## ID: 20737, Guess: 50\n## ID: 20737, Guess: 35\n## ID: 20737, Guess: 37\n## ID: 52910, Guess: 50\n## ID: 52910, Guess: 35\n## ID: 52910, Guess: 32\n## ID: 14966, Guess: 50\n## ID: 14966, Guess: 35\n## ID: 14966, Guess: 33\n## ID: 32991, Guess: 50\n## ID: 32991, Guess: 35\n## ID: 32991, Guess: 33\n## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.print_samplesFunction.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,\nprefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)\n\nAICode(msg::AIMessage; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, skip_invalid::Bool=false, capture_stdout::Bool=true,\nverbose::Bool=false, prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)

A mutable structure representing a code block (received from the AI model) with automatic parsing, execution, and output/error capturing capabilities.

Upon instantiation with a string, the AICode object automatically runs a code parser and executor (via PromptingTools.eval!()), capturing any standard output (stdout) or errors. This structure is useful for programmatically handling and evaluating Julia code snippets.

See also: PromptingTools.extract_code_blocks, PromptingTools.eval!

Workflow

Properties

Keyword Arguments

Methods

Examples

julia
code = AICode("println("Hello, World!")") # Auto-parses and evaluates the code, capturing output and errors.\nisvalid(code) # Output: true\ncode.stdout # Output: "Hello, World!\n"

We try to evaluate "safely" by default (eg, inside a custom module, to avoid changing user variables). You can avoid that with save_eval=false:

julia
code = AICode("new_variable = 1"; safe_eval=false)\nisvalid(code) # Output: true\nnew_variable # Output: 1

You can also call AICode directly on an AIMessage, which will extract the Julia code blocks, concatenate them and evaluate them:

julia
msg = aigenerate("In Julia, how do you create a vector of 10 random numbers?")\ncode = AICode(msg)\n# Output: AICode(Success: True, Parsed: True, Evaluated: True, Error Caught: N/A, StdOut: True, Code: 2 Lines)\n\n# show the code\ncode.code |> println\n# Output: \n# numbers = rand(10)\n# numbers = rand(1:100, 10)\n\n# or copy it to the clipboard\ncode.code |> clipboard\n\n# or execute it in the current module (=Main)\neval(code.expression)

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackFunction.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

Returns

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)\nnew_kwargs = aicodefixer_feedback(cb)\n\nnew_kwargs = aicodefixer_feedback(msg)\nnew_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.error_feedbackFunction.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


', 42); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Agent Tools Introduction

AgentTools is an experimental module that provides a set of utilities for building advanced agentic workflows, code-generating and self-fixing agents.

Import the module as follows:

julia
using PromptingTools.Experimental.AgentTools\n# to access unexported functionality\nconst AT = PromptingTools.Experimental.AgentTools

Highlights

The main functions to be aware of are:

The main contribution of this module is providing the "lazy" counterparts to the ai... functions, which allow us to build a workflow, which can be re-executed many times with the same inputs.

For example, AIGenerate() will create a lazy instance of aigenerate, which is an instance of AICall with aigenerate as its ai-calling function. It uses exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details). The notion of "lazy" refers to the fact that it does NOT generate any output when instantiated (only when run! is called).

Or said differently, the AICall struct and all its flavors (AIGenerate, ...) are designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This allows us to remember user inputs and trigger the LLM call repeatedly if needed, which enables automatic fixing (see ?airetry!).

Examples

Automatic Fixing of AI Calls

We need to switch from aigenerate to AIGenerate to get the lazy version of the function.

julia
output = AIGenerate("Say hi!"; model="gpt4t") |> run!

How is it useful? We can use the same "inputs" for repeated calls, eg, when we want to validate or regenerate some outputs. We have a function airetry! to help us with that.

The signature of airetry is airetry(condition_function, aicall::AICall, feedback_function).

It evaluates the condition condition_function on the aicall object (eg, we evaluate f_cond(aicall) -> Bool). If it fails, we call feedback_function on the aicall object to provide feedback for the AI model (eg, f_feedback(aicall) -> String) and repeat the process until it passes or until max_retries value is exceeded.

We can catch API failures (no feedback needed, so none is provided)

julia
# API failure because of a non-existent model\n# RetryConfig allows us to change the "retry" behaviour of any lazy call\noutput = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(output) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, output; retry_delay = 2, max_retries = 2)

Or we can use it for output validation (eg, its format, its content, etc.) and feedback generation.

Let's play a color guessing game (I'm thinking "yellow"). We'll implement two formatting checks with airetry!:

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n# Note: you could also use the do-syntax, eg, \nairetry!(out, "You must answer with 1 word only.") do aicall\n    length(split(last_output(aicall), r" |\\\\.")) == 1\nend

You can even add the guessing itself as an airetry! condition of last_output(out) == "yellow" and provide feedback if the guess is wrong.

References

# PromptingTools.Experimental.AgentTools.AIGenerateFunction.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}\n\nAIGenerate(args...; kwargs...)\nAIEmbed(args...; kwargs...)\nAIExtract(args...; kwargs...)

A lazy call wrapper for AI functions in the PromptingTools module, such as aigenerate.

The AICall struct is designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This approach allows for more flexible and efficient handling of AI function calls, especially in interactive environments.

Seel also: run!, AICodeFixer

Fields

Example

Initiate an AICall like any ai* function, eg, AIGenerate:

julia
aicall = AICall(aigenerate)\n\n# With arguments and kwargs like ai* functions\n# from `aigenerate(schema, conversation; model="abc", api_kwargs=(; temperature=0.1))`\n# to\naicall = AICall(aigenerate, schema, conversation; model="abc", api_kwargs=(; temperature=0.1)\n\n# Or with a template\naicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!\n````\n\nYou can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

source


# PromptingTools.last_outputFunction.

Extracts the last output (generated text answer) from the RAGResult.

source

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.last_messageFunction.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(\n    f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";\n    verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,\n    max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

Gotchas

Arguments

Returns

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model\nout = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(out) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, out; retry_delay = 2, max_retries = 2)

If you provide arguments to the aicall, we try to honor them as much as possible in the following calls, eg, set low verbosity

julia
out = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\nmodel = "NOTEXIST", verbose=false)\nrun!(out)\n# No info message, you just see `success = false` in the properties of the AICall

Let's show a toy example to demonstrate the runtime checks / guardrails for the model output. We'll play a color guessing game (I'm thinking "yellow"):

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n\n## Let's ensure that the output is in lowercase - simple and short\nairetry!(x -> all(islowercase, last_output(x)), out, "You must answer in lowercase.")\n# [ Info: Condition not met. Retrying...\n\n\n## Let's add final hint - it took us 2 retries\nairetry!(x -> startswith(last_output(x), "y"), out, "It starts with "y"")\n# [ Info: Condition not met. Retrying...\n# [ Info: Condition not met. Retrying...\n\n\n## We end up with the correct answer\nlast_output(out)\n# Output: "yellow"

Let's explore how we got here. We save the various attempts in a "tree" (SampleNode object) You can access it in out.samples, which is the ROOT of the tree (top level). Currently "active" sample ID is out.active_sample_id -> that's the same as conversation field in your AICall.

julia
# Root node:\nout.samples\n# Output: SampleNode(id: 46839, stats: 6/12, length: 2)\n\n# Active sample (our correct answer):\nout.active_sample_id \n# Output: 50086\n\n# Let's obtain the active sample node with this ID  - use getindex notation or function find_node\nout.samples[out.active_sample_id]\n# Output: SampleNode(id: 50086, stats: 1/1, length: 7)\n\n# The SampleNode has two key fields: data and feedback. Data is where the conversation is stored:\nactive_sample = out.samples[out.active_sample_id]\nactive_sample.data == out.conversation # Output: true -> This is the winning guess!

We also get a clear view of the tree structure of all samples with print_samples:

julia
julia> print_samples(out.samples)\nSampleNode(id: 46839, stats: 6/12, score: 0.5, length: 2)\n├─ SampleNode(id: 12940, stats: 5/8, score: 1.41, length: 4)\n│  ├─ SampleNode(id: 34315, stats: 3/4, score: 1.77, length: 6)\n│  │  ├─ SampleNode(id: 20493, stats: 1/1, score: 2.67, length: 7)\n│  │  └─ SampleNode(id: 50086, stats: 1/1, score: 2.67, length: 7)\n│  └─ SampleNode(id: 2733, stats: 1/2, score: 1.94, length: 5)\n└─ SampleNode(id: 48343, stats: 1/4, score: 1.36, length: 4)\n   ├─ SampleNode(id: 30088, stats: 0/1, score: 1.67, length: 5)\n   └─ SampleNode(id: 44816, stats: 0/1, score: 1.67, length: 5)

You can use the id to grab and inspect any of these nodes, eg,

julia
out.samples[2733]\n# Output: SampleNode(id: 2733, stats: 1/2, length: 5)

We can also iterate through all samples and extract whatever information we want with PostOrderDFS or PreOrderDFS (exported from AbstractTrees.jl)

julia
for sample in PostOrderDFS(out.samples)\n    # Data is the universal field for samples, we put `conversation` in there\n    # Last item in data is the last message in coversation\n    msg = sample.data[end]\n    if msg isa PT.AIMessage # skip feedback\n        # get only the message content, ie, the guess\n        println("ID: $(sample.id), Answer: $(msg.content)")\n    end\nend\n\n# ID: 20493, Answer: yellow\n# ID: 50086, Answer: yellow\n# ID: 2733, Answer: red\n# ID: 30088, Answer: blue\n# ID: 44816, Answer: blue

Note: airetry! will attempt to fix the model max_retries times. If you set throw=true, it will throw an ErrorException if the condition is not met after max_retries retries.

Let's define a mini program to guess the number and use airetry! to guide the model to the correct answer:

julia
"""\n    llm_guesser()\n\nMini program to guess the number provided by the user (betwee 1-100).\n"""\nfunction llm_guesser(user_number::Int)\n    @assert 1 <= user_number <= 100\n    prompt = """\nI'm thinking a number between 1-100. Guess which one it is. \nYou must respond only with digits and nothing else. \nYour guess:"""\n    ## 2 samples at a time, max 5 fixing rounds\n    out = AIGenerate(prompt; config = RetryConfig(; n_samples = 2, max_retries = 5),\n        api_kwargs = (; n = 2)) |> run!\n    ## Check the proper output format - must parse to Int, use do-syntax\n    ## We can provide feedback via a function!\n    function feedback_f(aicall)\n        "Output: $(last_output(aicall))\nFeedback: You must respond only with digits!!"\n    end\n    airetry!(out, feedback_f) do aicall\n        !isnothing(tryparse(Int, last_output(aicall)))\n    end\n    ## Give a hint on bounds\n    lower_bound = (user_number ÷ 10) * 10\n    upper_bound = lower_bound + 10\n    airetry!(\n        out, "The number is between or equal to $lower_bound to $upper_bound.") do aicall\n        guess = tryparse(Int, last_output(aicall))\n        lower_bound <= guess <= upper_bound\n    end\n    ## You can make at most 3x guess now -- if there is max_retries in `config.max_retries` left\n    max_retries = out.config.retries + 3\n    function feedback_f2(aicall)\n        guess = tryparse(Int, last_output(aicall))\n        "Your guess of $(guess) is wrong, it's $(abs(guess-user_number)) numbers away."\n    end\n    airetry!(out, feedback_f2; max_retries) do aicall\n        tryparse(Int, last_output(aicall)) == user_number\n    end\n\n    ## Evaluate the best guess\n    @info "Results: Guess: $(last_output(out)) vs User: $user_number (Number of calls made: $(out.config.calls))"\n    return out\nend\n\n# Let's play the game\nout = llm_guesser(33)\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Results: Guess: 33 vs User: 33 (Number of calls made: 10)

Yay! We got it 😃

Now, we could explore different samples (eg, print_samples(out.samples)) or see what the model guessed at each step:

julia
print_samples(out.samples)\n## SampleNode(id: 57694, stats: 6/14, score: 0.43, length: 2)\n## ├─ SampleNode(id: 35603, stats: 5/10, score: 1.23, length: 4)\n## │  ├─ SampleNode(id: 55394, stats: 1/4, score: 1.32, length: 6)\n## │  │  ├─ SampleNode(id: 20737, stats: 0/1, score: 1.67, length: 7)\n## │  │  └─ SampleNode(id: 52910, stats: 0/1, score: 1.67, length: 7)\n## │  └─ SampleNode(id: 43094, stats: 3/4, score: 1.82, length: 6)\n## │     ├─ SampleNode(id: 14966, stats: 1/1, score: 2.67, length: 7)\n## │     └─ SampleNode(id: 32991, stats: 1/1, score: 2.67, length: 7)\n## └─ SampleNode(id: 20506, stats: 1/4, score: 1.4, length: 4)\n##    ├─ SampleNode(id: 37581, stats: 0/1, score: 1.67, length: 5)\n##    └─ SampleNode(id: 46632, stats: 0/1, score: 1.67, length: 5)\n\n# Lastly, let's check all the guesses AI made across all samples. \n# Our winning guess was ID 32991 (`out.active_sample_id`)\n\nfor sample in PostOrderDFS(out.samples)\n    [println("ID: $(sample.id), Guess: $(msg.content)")\n     for msg in sample.data if msg isa PT.AIMessage]\nend\n## ID: 20737, Guess: 50\n## ID: 20737, Guess: 35\n## ID: 20737, Guess: 37\n## ID: 52910, Guess: 50\n## ID: 52910, Guess: 35\n## ID: 52910, Guess: 32\n## ID: 14966, Guess: 50\n## ID: 14966, Guess: 35\n## ID: 14966, Guess: 33\n## ID: 32991, Guess: 50\n## ID: 32991, Guess: 35\n## ID: 32991, Guess: 33\n## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.print_samplesFunction.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,\nprefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)\n\nAICode(msg::AIMessage; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, skip_invalid::Bool=false, capture_stdout::Bool=true,\nverbose::Bool=false, prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)

A mutable structure representing a code block (received from the AI model) with automatic parsing, execution, and output/error capturing capabilities.

Upon instantiation with a string, the AICode object automatically runs a code parser and executor (via PromptingTools.eval!()), capturing any standard output (stdout) or errors. This structure is useful for programmatically handling and evaluating Julia code snippets.

See also: PromptingTools.extract_code_blocks, PromptingTools.eval!

Workflow

Properties

Keyword Arguments

Methods

Examples

julia
code = AICode("println("Hello, World!")") # Auto-parses and evaluates the code, capturing output and errors.\nisvalid(code) # Output: true\ncode.stdout # Output: "Hello, World!\n"

We try to evaluate "safely" by default (eg, inside a custom module, to avoid changing user variables). You can avoid that with save_eval=false:

julia
code = AICode("new_variable = 1"; safe_eval=false)\nisvalid(code) # Output: true\nnew_variable # Output: 1

You can also call AICode directly on an AIMessage, which will extract the Julia code blocks, concatenate them and evaluate them:

julia
msg = aigenerate("In Julia, how do you create a vector of 10 random numbers?")\ncode = AICode(msg)\n# Output: AICode(Success: True, Parsed: True, Evaluated: True, Error Caught: N/A, StdOut: True, Code: 2 Lines)\n\n# show the code\ncode.code |> println\n# Output: \n# numbers = rand(10)\n# numbers = rand(1:100, 10)\n\n# or copy it to the clipboard\ncode.code |> clipboard\n\n# or execute it in the current module (=Main)\neval(code.expression)

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackFunction.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

Returns

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)\nnew_kwargs = aicodefixer_feedback(cb)\n\nnew_kwargs = aicodefixer_feedback(msg)\nnew_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.error_feedbackFunction.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


', 42); const _hoisted_43 = [ _hoisted_1 ]; diff --git a/dev/assets/extra_tools_agent_tools_intro.md.yHywMkDe.lean.js b/dev/assets/extra_tools_agent_tools_intro.md.DJvZgul4.lean.js similarity index 100% rename from dev/assets/extra_tools_agent_tools_intro.md.yHywMkDe.lean.js rename to dev/assets/extra_tools_agent_tools_intro.md.DJvZgul4.lean.js diff --git a/dev/assets/extra_tools_api_tools_intro.md.B2zj3VUg.js b/dev/assets/extra_tools_api_tools_intro.md.VN20Hprx.js similarity index 98% rename from dev/assets/extra_tools_api_tools_intro.md.B2zj3VUg.js rename to dev/assets/extra_tools_api_tools_intro.md.VN20Hprx.js index ec2d1809f..40c911c2b 100644 --- a/dev/assets/extra_tools_api_tools_intro.md.B2zj3VUg.js +++ b/dev/assets/extra_tools_api_tools_intro.md.VN20Hprx.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"APITools Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"extra_tools/api_tools_intro.md","filePath":"extra_tools/api_tools_intro.md","lastUpdated":null}'); const _sfc_main = { name: "extra_tools/api_tools_intro.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

APITools Introduction

APITools is an experimental module wrapping helpful APIs for working with and enhancing GenerativeAI models.

Import the module as follows:

julia
using PromptingTools.Experimental.APITools

Highlights

Currently, there is only one function in this module create_websearch that leverages Tavily.com search and answer engine to provide additional context.

You need to sign up for an API key at Tavily.com and set it as an environment variable TAVILY_API_KEY to use this function.

References

# PromptingTools.Experimental.APITools.create_websearchFunction.
julia
create_websearch(query::AbstractString;\n    api_key::AbstractString,\n    search_depth::AbstractString = "basic")

Arguments

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


', 10); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

APITools Introduction

APITools is an experimental module wrapping helpful APIs for working with and enhancing GenerativeAI models.

Import the module as follows:

julia
using PromptingTools.Experimental.APITools

Highlights

Currently, there is only one function in this module create_websearch that leverages Tavily.com search and answer engine to provide additional context.

You need to sign up for an API key at Tavily.com and set it as an environment variable TAVILY_API_KEY to use this function.

References

# PromptingTools.Experimental.APITools.create_websearchFunction.
julia
create_websearch(query::AbstractString;\n    api_key::AbstractString,\n    search_depth::AbstractString = "basic")

Arguments

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


', 10); const _hoisted_11 = [ _hoisted_1 ]; diff --git a/dev/assets/extra_tools_api_tools_intro.md.B2zj3VUg.lean.js b/dev/assets/extra_tools_api_tools_intro.md.VN20Hprx.lean.js similarity index 100% rename from dev/assets/extra_tools_api_tools_intro.md.B2zj3VUg.lean.js rename to dev/assets/extra_tools_api_tools_intro.md.VN20Hprx.lean.js diff --git a/dev/assets/extra_tools_rag_tools_intro.md.wFqOQLck.js b/dev/assets/extra_tools_rag_tools_intro.md.4lbzXTTR.js similarity index 99% rename from dev/assets/extra_tools_rag_tools_intro.md.wFqOQLck.js rename to dev/assets/extra_tools_rag_tools_intro.md.4lbzXTTR.js index 62459dc9a..8d3833abc 100644 --- a/dev/assets/extra_tools_rag_tools_intro.md.wFqOQLck.js +++ b/dev/assets/extra_tools_rag_tools_intro.md.4lbzXTTR.js @@ -3,7 +3,7 @@ const _imports_0 = "/PromptingTools.jl/dev/assets/rag_diagram_highlevel.D_aLugML const _imports_1 = "/PromptingTools.jl/dev/assets/rag_diagram_detailed._BjqL9Ae.png"; const __pageData = JSON.parse('{"title":"RAG Tools Introduction","description":"","frontmatter":{},"headers":[],"relativePath":"extra_tools/rag_tools_intro.md","filePath":"extra_tools/rag_tools_intro.md","lastUpdated":null}'); const _sfc_main = { name: "extra_tools/rag_tools_intro.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

RAG Tools Introduction

RAGTools is an experimental module that provides a set of utilities for building Retrieval-Augmented Generation (RAG) applications, ie, applications that generate answers by combining knowledge of the underlying AI model with the information from the user's knowledge base.

It is designed to be powerful and flexible, allowing you to build RAG applications with minimal effort. Extend any step of the pipeline with your own custom code (see the RAG Interface section), or use the provided defaults to get started quickly.

Once the API stabilizes (near term), we hope to carve it out into a separate package.

Import the module as follows:

julia
# required dependencies to load the necessary extensions!!!\nusing LinearAlgebra, SparseArrays, Unicode \nusing PromptingTools.Experimental.RAGTools\n# to access unexported functionality\nconst RT = PromptingTools.Experimental.RAGTools

Highlights

The main functions to be aware of are:

The hope is to provide a modular and easily extensible set of tools for building RAG applications in Julia. Feel free to open an issue or ask in the #generative-ai channel in the JuliaLang Slack if you have a specific need.

Examples

Let's build an index, we need to provide a starter list of documents:

julia
sentences = [\n    "Find the most comprehensive guide on Julia programming language for beginners published in 2023.",\n    "Search for the latest advancements in quantum computing using Julia language.",\n    "How to implement machine learning algorithms in Julia with examples.",\n    "Looking for performance comparison between Julia, Python, and R for data analysis.",\n    "Find Julia language tutorials focusing on high-performance scientific computing.",\n    "Search for the top Julia language packages for data visualization and their documentation.",\n    "How to set up a Julia development environment on Windows 10.",\n    "Discover the best practices for parallel computing in Julia.",\n    "Search for case studies of large-scale data processing using Julia.",\n    "Find comprehensive resources for mastering metaprogramming in Julia.",\n    "Looking for articles on the advantages of using Julia for statistical modeling.",\n    "How to contribute to the Julia open-source community: A step-by-step guide.",\n    "Find the comparison of numerical accuracy between Julia and MATLAB.",\n    "Looking for the latest Julia language updates and their impact on AI research.",\n    "How to efficiently handle big data with Julia: Techniques and libraries.",\n    "Discover how Julia integrates with other programming languages and tools.",\n    "Search for Julia-based frameworks for developing web applications.",\n    "Find tutorials on creating interactive dashboards with Julia.",\n    "How to use Julia for natural language processing and text analysis.",\n    "Discover the role of Julia in the future of computational finance and econometrics."\n]

Let's index these "documents":

julia
index = build_index(sentences; chunker_kwargs=(; sources=map(i -> "Doc$i", 1:length(sentences))))

This would be equivalent to the following index = build_index(SimpleIndexer(), sentences) which dispatches to the default implementation of each step via the SimpleIndexer struct. We provide these default implementations for the main functions as an optional argument - no need to provide them if you're running the default pipeline.

Notice that we have provided a chunker_kwargs argument to the build_index function. These will be kwargs passed to chunker step.

Now let's generate an answer to a question.

  1. Run end-to-end RAG (retrieve + generate!), return AIMessage
julia
question = "What are the best practices for parallel computing in Julia?"\n\nmsg = airag(index; question) # short for airag(RAGConfig(), index; question)\n## Output:\n## [ Info: Done with RAG. Total cost: \\$0.0\n## AIMessage("Some best practices for parallel computing in Julia include us...
  1. Explore what's happening under the hood by changing the return type - RAGResult contains all intermediate steps.
julia
result = airag(index; question, return_all=true)\n## RAGResult\n##   question: String "What are the best practices for parallel computing in Julia?"\n##   rephrased_questions: Array{String}((1,))\n##   answer: SubString{String}\n##   final_answer: SubString{String}\n##   context: Array{String}((5,))\n##   sources: Array{String}((5,))\n##   emb_candidates: CandidateChunks{Int64, Float32}\n##   tag_candidates: CandidateChunks{Int64, Float32}\n##   filtered_candidates: CandidateChunks{Int64, Float32}\n##   reranked_candidates: CandidateChunks{Int64, Float32}\n##   conversations: Dict{Symbol, Vector{<:PromptingTools.AbstractMessage}}

You can still get the message from the result, see result.conversations[:final_answer] (the dictionary keys correspond to the function names of those steps).

  1. If you need to customize it, break the pipeline into its sub-steps: retrieve and generate - RAGResult serves as the intermediate result.
julia
# Retrieve which chunks are relevant to the question\nresult = retrieve(index, question)\n# Generate an answer\nresult = generate!(index, result)

You can leverage a pretty-printing system with pprint where we automatically annotate the support of the answer by the chunks we provided to the model. It is configurable and you can select only some of its functions (eg, scores, sources).

julia
pprint(result)

You'll see the following in REPL but with COLOR highlighting in the terminal.

plaintext
--------------------\nQUESTION(s)\n--------------------\n- What are the best practices for parallel computing in Julia?\n\n--------------------\nANSWER\n--------------------\nSome of the best practices for parallel computing in Julia include:[1,0.7]\n- Using [3,0.4]`@threads` for simple parallelism[1,0.34]\n- Utilizing `Distributed` module for more complex parallel tasks[1,0.19]\n- Avoiding excessive memory allocation\n- Considering task granularity for efficient workload distribution\n\n--------------------\nSOURCES\n--------------------\n1. Doc8\n2. Doc15\n3. Doc5\n4. Doc2\n5. Doc9

See ?print_html for the HTML version of the pretty-printing and styling system, eg, when you want to display the results in a web application based on Genie.jl/Stipple.jl.

How to read the output

Want more?

See examples/building_RAG.jl for one more example.

RAG Interface

System Overview

This system is designed for information retrieval and response generation, structured in three main phases:

The corresponding functions are build_index, retrieve, and generate!, respectively. Here is the high-level diagram that shows the signature of the main functions:

Notice that the first argument is a custom type for multiple dispatch. In addition, observe the "kwargs" names, that's how the keyword arguments for each function are passed down from the higher-level functions (eg, build_index(...; chunker_kwargs=(; separators=...)))). It's the simplest way to customize some step of the pipeline (eg, set a custom model with a model kwarg or prompt template with template kwarg).

The system is designed to be hackable and extensible at almost every entry point. If you want to customize the behavior of any step, you can do so by defining a new type and defining a new method for the step you're changing, eg,

julia
PromptingTools.Experimental.RAGTools: rerank\n\nstruct MyReranker <: AbstractReranker end\nrerank(::MyReranker, index, candidates) = ...

And then you would set the retrive step to use your custom MyReranker via reranker kwarg, eg, retrieve(....; reranker = MyReranker()) (or customize the main dispatching AbstractRetriever struct).

The overarching principles are:

RAG Diagram

The main functions are:

Prepare your document index with build_index:

Run E2E RAG with airag:

Retrieve relevant chunks with retrieve:

Generate an answer from relevant chunks with generate!:

To discover the currently available implementations, use subtypes function, eg, subtypes(AbstractReranker).

Passing Keyword Arguments

If you need to pass keyword arguments, use the nested kwargs corresponding to the dispatch type names (rephrase step, has rephraser dispatch type and rephraser_kwargs for its keyword arguments).

For example:

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever = AdvancedRetriever(),\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        # notice that this is effectively: retriever_kwargs/rephraser_kwargs/template\n        rephraser_kwargs = (;\n            template = :RAGQueryHyDE,\n            model = "custom")),\n    generator_kwargs = (;\n        # pass kwargs to `answer!` step defined by the `answerer` -> we're setting `answerer_kwargs`\n        answerer_kwargs = (;\n            model = "custom"),\n    # api_kwargs can be shared across all components\n    api_kwargs = (;\n        url = "http://localhost:8080")))\n\nresult = airag(cfg, index, question; kwargs...)

If you were one level deeper in the pipeline, working with retriever directly, you would pass:

julia
retriever_kwargs = (;\n    top_k = 100,\n    top_n = 5,\n    # notice that this is effectively: rephraser_kwargs/template\n    rephraser_kwargs = (;\n      template = :RAGQueryHyDE,\n      model = "custom"),\n  # api_kwargs can be shared across all components\n  api_kwargs = (;\n      url = "http://localhost:8080"))\n\nresult = retrieve(AdvancedRetriever(), index, question; retriever_kwargs...)

And going even deeper, you would provide the rephraser_kwargs directly to the rephrase step, eg,

julia
rephrase(SimpleRephraser(), question; model="custom", template = :RAGQueryHyDE, api_kwargs = (; url = "http://localhost:8080"))

Deepdive

Preparation Phase:

Retrieval Phase:

Generation Phase:

Note that all generation steps are mutating the RAGResult object.

See more details and corresponding functions and types in src/Experimental/RAGTools/rag_interface.jl.

References

# PromptingTools.Experimental.RAGTools.build_indexFunction.
julia
build_index(\n    indexer::AbstractIndexBuilder, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkEmbeddingsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = indexer.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Build an INDEX for RAG (Retriever-Augmented Generation) applications from the provided file paths. INDEX is a object storing the document chunks and their embeddings (and potentially other information).

The function processes each file or document (depending on chunker), splits its content into chunks, embeds these chunks, optionally extracts metadata, and then combines this information into a retrievable index.

Define your own methods via indexer and its subcomponents (chunker, embedder, tagger).

Arguments

Returns

See also: ChunkEmbeddingsIndex, get_chunks, get_embeddings, get_tags, CandidateChunks, find_closest, find_tags, rerank, retrieve, generate!, airag

Examples

julia
# Default is loading a vector of strings and chunking them (`TextChunker()`)\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Another example with tags extraction, splitting only sentences and verbose output\n# Assuming `test_files` is a vector of file paths\nindexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger())\nindex = build_index(indexer, test_files; \n        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source

julia
build_index(\n    indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkKeywordsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = indexer.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.airagFunction.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;\n    question::AbstractString,\n    verbose::Integer = 1, return_all::Bool = false,\n    api_kwargs::NamedTuple = NamedTuple(),\n    retriever::AbstractRetriever = cfg.retriever,\n    retriever_kwargs::NamedTuple = NamedTuple(),\n    generator::AbstractGenerator = cfg.generator,\n    generator_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

High-level wrapper for Retrieval-Augmented Generation (RAG), it combines together the retrieve and generate! steps which you can customize if needed.

The simplest version first finds the relevant chunks in index for the question and then sends these chunks to the AI model to help with generating a response to the question.

To customize the components, replace the types (retriever, generator) of the corresponding step of the RAG pipeline - or go into sub-routines within the steps. Eg, use subtypes(AbstractRetriever) to find the available options.

Arguments

Returns

See also build_index, retrieve, generate!, RAGResult, getpropertynested, setpropertynested, merge_kwargs_nested, ChunkKeywordsIndex.

Examples

Using airag to get a response for a question:

julia
index = build_index(...)  # create an index\nquestion = "How to make a barplot in Makie.jl?"\nmsg = airag(index; question)

To understand the details of the RAG process, use return_all=true

julia
msg, details = airag(index; question, return_all = true)\n# details is a RAGDetails object with all the internal steps of the `airag` function

You can also pretty-print details to highlight generated text vs text that is supported by context. It also includes annotations of which context was used for each part of the response (where available).

julia
PT.pprint(details)

Example with advanced retrieval (with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n). In addition, it will be done with a "custom" locally-hosted model.

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        rephraser_kwargs = (;\n            model = "custom"),\n        embedder_kwargs = (;\n            model = "custom"),\n        tagger_kwargs = (;\n            model = "custom")),\n    generator_kwargs = (;\n        answerer_kwargs = (;\n            model = "custom"),\n        refiner_kwargs = (;\n            model = "custom")),\n    api_kwargs = (;\n        url = "http://localhost:8080"))\n\nresult = airag(cfg, index, question; kwargs...)

If you want to use hybrid retrieval (embeddings + BM25), you can easily create an additional index based on keywords and pass them both into a MultiIndex.

You need to provide an explicit config, so the pipeline knows how to handle each index in the search similarity phase (finder).

julia
index = # your existing index\n\n# create the multi-index with the keywords index\nindex_keywords = ChunkKeywordsIndex(index)\nmulti_index = MultiIndex([index, index_keywords])\n\n# define the similarity measures for the indices that you have (same order)\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\ncfg = RAGConfig(; retriever=AdvancedRetriever(; processor=RT.KeywordsProcessor(), finder))\n\n# Run the pipeline with the new hybrid retrieval (return the `RAGResult` to see the details)\nresult = airag(cfg, multi_index; question, return_all=true)\n\n# Pretty-print the result\nPT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.retrieveFunction.
julia
retrieve(retriever::AbstractRetriever,\n    index::AbstractChunkIndex,\n    question::AbstractString;\n    verbose::Integer = 1,\n    top_k::Integer = 100,\n    top_n::Integer = 5,\n    api_kwargs::NamedTuple = NamedTuple(),\n    rephraser::AbstractRephraser = retriever.rephraser,\n    rephraser_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = retriever.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = retriever.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    finder::AbstractSimilarityFinder = retriever.finder,\n    finder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = retriever.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    filter::AbstractTagFilter = retriever.filter,\n    filter_kwargs::NamedTuple = NamedTuple(),\n    reranker::AbstractReranker = retriever.reranker,\n    reranker_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Retrieves the most relevant chunks from the index for the given question and returns them in the RAGResult object.

This is the main entry point for the retrieval stage of the RAG pipeline. It is often followed by generate! step.

Notes:

The arguments correspond to the steps of the retrieval process (rephrasing, embedding, finding similar docs, tagging, filtering by tags, reranking). You can customize each step by providing a new custom type that dispatches the corresponding function, eg, create your own type struct MyReranker<:AbstractReranker end and define the custom method for it rerank(::MyReranker,...) = ....

Note: Discover available retrieval sub-types for each step with subtypes(AbstractRephraser) and similar for other abstract types.

If you're using locally-hosted models, you can pass the api_kwargs with the url field set to the model's URL and make sure to provide corresponding model kwargs to rephraser, embedder, and tagger to use the custom models (they make AI calls).

Arguments

See also: SimpleRetriever, AdvancedRetriever, build_index, rephrase, get_embeddings, get_keywords, find_closest, get_tags, find_tags, rerank, RAGResult.

Examples

Find the 5 most relevant chunks from the index for the given question.

julia
# assumes you have an existing index `index`\nretriever = SimpleRetriever()\n\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)\n\n# or use the default retriever (same as above)\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)

Apply more advanced retrieval with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n).

julia
retriever = AdvancedRetriever()\n\nresult = retrieve(retriever, index, question; top_k=100, top_n=5)

You can use the retriever to customize your retrieval strategy or directly change the strategy types in the retrieve kwargs!

Example of using locally-hosted model hosted on localhost:8080:

julia
retriever = SimpleRetriever()\nresult = retrieve(retriever, index, question;\n    rephraser_kwargs = (; model = "custom"),\n    embedder_kwargs = (; model = "custom"),\n    tagger_kwargs = (; model = "custom"), api_kwargs = (;\n        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.generate!Function.
julia
generate!(\n    generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Integer = 1,\n    api_kwargs::NamedTuple = NamedTuple(),\n    contexter::AbstractContextBuilder = generator.contexter,\n    contexter_kwargs::NamedTuple = NamedTuple(),\n    answerer::AbstractAnswerer = generator.answerer,\n    answerer_kwargs::NamedTuple = NamedTuple(),\n    refiner::AbstractRefiner = generator.refiner,\n    refiner_kwargs::NamedTuple = NamedTuple(),\n    postprocessor::AbstractPostprocessor = generator.postprocessor,\n    postprocessor_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generate the response using the provided generator and the index and result. It is the second step in the RAG pipeline (after retrieve)

Returns the mutated result with the result.final_answer and the full conversation saved in result.conversations[:final_answer].

Notes

Arguments

See also: retrieve, build_context!, ContextEnumerator, answer!, SimpleAnswerer, refine!, NoRefiner, SimpleRefiner, postprocess!, NoPostprocessor

Examples

julia
Assume we already have `index`\n\nquestion = "What are the best practices for parallel computing in Julia?"\n\n# Retrieve the relevant chunks - returns RAGResult\nresult = retrieve(index, question)\n\n# Generate the answer using the default generator, mutates the same result\nresult = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.annotate_supportFunction.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,\n    context::AbstractVector; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Annotates the answer with the overlap/what's supported in context and returns the annotated tree of nodes representing the answer

Returns a "root" node with children nodes representing the sentences/code blocks in the answer. Only the "leaf" nodes are to be printed (to avoid duplication), "leaf" nodes are those with NO children.

Default logic:

Arguments

Example

julia
annotater = TrigramAnnotater()\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test context. Another context sentence."\n\nannotated_root = annotate_support(annotater, answer, context)\npprint(annotated_root) # pretty print the annotated tree

source

julia
annotate_support(\n    annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",\n    context = ["Test context.", "Completely different"])\nannotated_root = annotate_support(annotater, res)\nPT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsFunction.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};\n               model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, \n               verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]\nsources = ["source1", "source2"]\nqa_evals = build_qa_evals(doc_chunks, sources)

source


', 88); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

RAG Tools Introduction

RAGTools is an experimental module that provides a set of utilities for building Retrieval-Augmented Generation (RAG) applications, ie, applications that generate answers by combining knowledge of the underlying AI model with the information from the user's knowledge base.

It is designed to be powerful and flexible, allowing you to build RAG applications with minimal effort. Extend any step of the pipeline with your own custom code (see the RAG Interface section), or use the provided defaults to get started quickly.

Once the API stabilizes (near term), we hope to carve it out into a separate package.

Import the module as follows:

julia
# required dependencies to load the necessary extensions!!!\nusing LinearAlgebra, SparseArrays, Unicode \nusing PromptingTools.Experimental.RAGTools\n# to access unexported functionality\nconst RT = PromptingTools.Experimental.RAGTools

Highlights

The main functions to be aware of are:

The hope is to provide a modular and easily extensible set of tools for building RAG applications in Julia. Feel free to open an issue or ask in the #generative-ai channel in the JuliaLang Slack if you have a specific need.

Examples

Let's build an index, we need to provide a starter list of documents:

julia
sentences = [\n    "Find the most comprehensive guide on Julia programming language for beginners published in 2023.",\n    "Search for the latest advancements in quantum computing using Julia language.",\n    "How to implement machine learning algorithms in Julia with examples.",\n    "Looking for performance comparison between Julia, Python, and R for data analysis.",\n    "Find Julia language tutorials focusing on high-performance scientific computing.",\n    "Search for the top Julia language packages for data visualization and their documentation.",\n    "How to set up a Julia development environment on Windows 10.",\n    "Discover the best practices for parallel computing in Julia.",\n    "Search for case studies of large-scale data processing using Julia.",\n    "Find comprehensive resources for mastering metaprogramming in Julia.",\n    "Looking for articles on the advantages of using Julia for statistical modeling.",\n    "How to contribute to the Julia open-source community: A step-by-step guide.",\n    "Find the comparison of numerical accuracy between Julia and MATLAB.",\n    "Looking for the latest Julia language updates and their impact on AI research.",\n    "How to efficiently handle big data with Julia: Techniques and libraries.",\n    "Discover how Julia integrates with other programming languages and tools.",\n    "Search for Julia-based frameworks for developing web applications.",\n    "Find tutorials on creating interactive dashboards with Julia.",\n    "How to use Julia for natural language processing and text analysis.",\n    "Discover the role of Julia in the future of computational finance and econometrics."\n]

Let's index these "documents":

julia
index = build_index(sentences; chunker_kwargs=(; sources=map(i -> "Doc$i", 1:length(sentences))))

This would be equivalent to the following index = build_index(SimpleIndexer(), sentences) which dispatches to the default implementation of each step via the SimpleIndexer struct. We provide these default implementations for the main functions as an optional argument - no need to provide them if you're running the default pipeline.

Notice that we have provided a chunker_kwargs argument to the build_index function. These will be kwargs passed to chunker step.

Now let's generate an answer to a question.

  1. Run end-to-end RAG (retrieve + generate!), return AIMessage
julia
question = "What are the best practices for parallel computing in Julia?"\n\nmsg = airag(index; question) # short for airag(RAGConfig(), index; question)\n## Output:\n## [ Info: Done with RAG. Total cost: \\$0.0\n## AIMessage("Some best practices for parallel computing in Julia include us...
  1. Explore what's happening under the hood by changing the return type - RAGResult contains all intermediate steps.
julia
result = airag(index; question, return_all=true)\n## RAGResult\n##   question: String "What are the best practices for parallel computing in Julia?"\n##   rephrased_questions: Array{String}((1,))\n##   answer: SubString{String}\n##   final_answer: SubString{String}\n##   context: Array{String}((5,))\n##   sources: Array{String}((5,))\n##   emb_candidates: CandidateChunks{Int64, Float32}\n##   tag_candidates: CandidateChunks{Int64, Float32}\n##   filtered_candidates: CandidateChunks{Int64, Float32}\n##   reranked_candidates: CandidateChunks{Int64, Float32}\n##   conversations: Dict{Symbol, Vector{<:PromptingTools.AbstractMessage}}

You can still get the message from the result, see result.conversations[:final_answer] (the dictionary keys correspond to the function names of those steps).

  1. If you need to customize it, break the pipeline into its sub-steps: retrieve and generate - RAGResult serves as the intermediate result.
julia
# Retrieve which chunks are relevant to the question\nresult = retrieve(index, question)\n# Generate an answer\nresult = generate!(index, result)

You can leverage a pretty-printing system with pprint where we automatically annotate the support of the answer by the chunks we provided to the model. It is configurable and you can select only some of its functions (eg, scores, sources).

julia
pprint(result)

You'll see the following in REPL but with COLOR highlighting in the terminal.

plaintext
--------------------\nQUESTION(s)\n--------------------\n- What are the best practices for parallel computing in Julia?\n\n--------------------\nANSWER\n--------------------\nSome of the best practices for parallel computing in Julia include:[1,0.7]\n- Using [3,0.4]`@threads` for simple parallelism[1,0.34]\n- Utilizing `Distributed` module for more complex parallel tasks[1,0.19]\n- Avoiding excessive memory allocation\n- Considering task granularity for efficient workload distribution\n\n--------------------\nSOURCES\n--------------------\n1. Doc8\n2. Doc15\n3. Doc5\n4. Doc2\n5. Doc9

See ?print_html for the HTML version of the pretty-printing and styling system, eg, when you want to display the results in a web application based on Genie.jl/Stipple.jl.

How to read the output

Want more?

See examples/building_RAG.jl for one more example.

RAG Interface

System Overview

This system is designed for information retrieval and response generation, structured in three main phases:

The corresponding functions are build_index, retrieve, and generate!, respectively. Here is the high-level diagram that shows the signature of the main functions:

Notice that the first argument is a custom type for multiple dispatch. In addition, observe the "kwargs" names, that's how the keyword arguments for each function are passed down from the higher-level functions (eg, build_index(...; chunker_kwargs=(; separators=...)))). It's the simplest way to customize some step of the pipeline (eg, set a custom model with a model kwarg or prompt template with template kwarg).

The system is designed to be hackable and extensible at almost every entry point. If you want to customize the behavior of any step, you can do so by defining a new type and defining a new method for the step you're changing, eg,

julia
PromptingTools.Experimental.RAGTools: rerank\n\nstruct MyReranker <: AbstractReranker end\nrerank(::MyReranker, index, candidates) = ...

And then you would set the retrive step to use your custom MyReranker via reranker kwarg, eg, retrieve(....; reranker = MyReranker()) (or customize the main dispatching AbstractRetriever struct).

The overarching principles are:

RAG Diagram

The main functions are:

Prepare your document index with build_index:

Run E2E RAG with airag:

Retrieve relevant chunks with retrieve:

Generate an answer from relevant chunks with generate!:

To discover the currently available implementations, use subtypes function, eg, subtypes(AbstractReranker).

Passing Keyword Arguments

If you need to pass keyword arguments, use the nested kwargs corresponding to the dispatch type names (rephrase step, has rephraser dispatch type and rephraser_kwargs for its keyword arguments).

For example:

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever = AdvancedRetriever(),\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        # notice that this is effectively: retriever_kwargs/rephraser_kwargs/template\n        rephraser_kwargs = (;\n            template = :RAGQueryHyDE,\n            model = "custom")),\n    generator_kwargs = (;\n        # pass kwargs to `answer!` step defined by the `answerer` -> we're setting `answerer_kwargs`\n        answerer_kwargs = (;\n            model = "custom"),\n    # api_kwargs can be shared across all components\n    api_kwargs = (;\n        url = "http://localhost:8080")))\n\nresult = airag(cfg, index, question; kwargs...)

If you were one level deeper in the pipeline, working with retriever directly, you would pass:

julia
retriever_kwargs = (;\n    top_k = 100,\n    top_n = 5,\n    # notice that this is effectively: rephraser_kwargs/template\n    rephraser_kwargs = (;\n      template = :RAGQueryHyDE,\n      model = "custom"),\n  # api_kwargs can be shared across all components\n  api_kwargs = (;\n      url = "http://localhost:8080"))\n\nresult = retrieve(AdvancedRetriever(), index, question; retriever_kwargs...)

And going even deeper, you would provide the rephraser_kwargs directly to the rephrase step, eg,

julia
rephrase(SimpleRephraser(), question; model="custom", template = :RAGQueryHyDE, api_kwargs = (; url = "http://localhost:8080"))

Deepdive

Preparation Phase:

Retrieval Phase:

Generation Phase:

Note that all generation steps are mutating the RAGResult object.

See more details and corresponding functions and types in src/Experimental/RAGTools/rag_interface.jl.

References

# PromptingTools.Experimental.RAGTools.build_indexFunction.
julia
build_index(\n    indexer::AbstractIndexBuilder, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkEmbeddingsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = indexer.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Build an INDEX for RAG (Retriever-Augmented Generation) applications from the provided file paths. INDEX is a object storing the document chunks and their embeddings (and potentially other information).

The function processes each file or document (depending on chunker), splits its content into chunks, embeds these chunks, optionally extracts metadata, and then combines this information into a retrievable index.

Define your own methods via indexer and its subcomponents (chunker, embedder, tagger).

Arguments

Returns

See also: ChunkEmbeddingsIndex, get_chunks, get_embeddings, get_tags, CandidateChunks, find_closest, find_tags, rerank, retrieve, generate!, airag

Examples

julia
# Default is loading a vector of strings and chunking them (`TextChunker()`)\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Another example with tags extraction, splitting only sentences and verbose output\n# Assuming `test_files` is a vector of file paths\nindexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger())\nindex = build_index(indexer, test_files; \n        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source

julia
build_index(\n    indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkKeywordsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = indexer.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.airagFunction.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;\n    question::AbstractString,\n    verbose::Integer = 1, return_all::Bool = false,\n    api_kwargs::NamedTuple = NamedTuple(),\n    retriever::AbstractRetriever = cfg.retriever,\n    retriever_kwargs::NamedTuple = NamedTuple(),\n    generator::AbstractGenerator = cfg.generator,\n    generator_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

High-level wrapper for Retrieval-Augmented Generation (RAG), it combines together the retrieve and generate! steps which you can customize if needed.

The simplest version first finds the relevant chunks in index for the question and then sends these chunks to the AI model to help with generating a response to the question.

To customize the components, replace the types (retriever, generator) of the corresponding step of the RAG pipeline - or go into sub-routines within the steps. Eg, use subtypes(AbstractRetriever) to find the available options.

Arguments

Returns

See also build_index, retrieve, generate!, RAGResult, getpropertynested, setpropertynested, merge_kwargs_nested, ChunkKeywordsIndex.

Examples

Using airag to get a response for a question:

julia
index = build_index(...)  # create an index\nquestion = "How to make a barplot in Makie.jl?"\nmsg = airag(index; question)

To understand the details of the RAG process, use return_all=true

julia
msg, details = airag(index; question, return_all = true)\n# details is a RAGDetails object with all the internal steps of the `airag` function

You can also pretty-print details to highlight generated text vs text that is supported by context. It also includes annotations of which context was used for each part of the response (where available).

julia
PT.pprint(details)

Example with advanced retrieval (with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n). In addition, it will be done with a "custom" locally-hosted model.

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        rephraser_kwargs = (;\n            model = "custom"),\n        embedder_kwargs = (;\n            model = "custom"),\n        tagger_kwargs = (;\n            model = "custom")),\n    generator_kwargs = (;\n        answerer_kwargs = (;\n            model = "custom"),\n        refiner_kwargs = (;\n            model = "custom")),\n    api_kwargs = (;\n        url = "http://localhost:8080"))\n\nresult = airag(cfg, index, question; kwargs...)

If you want to use hybrid retrieval (embeddings + BM25), you can easily create an additional index based on keywords and pass them both into a MultiIndex.

You need to provide an explicit config, so the pipeline knows how to handle each index in the search similarity phase (finder).

julia
index = # your existing index\n\n# create the multi-index with the keywords index\nindex_keywords = ChunkKeywordsIndex(index)\nmulti_index = MultiIndex([index, index_keywords])\n\n# define the similarity measures for the indices that you have (same order)\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\ncfg = RAGConfig(; retriever=AdvancedRetriever(; processor=RT.KeywordsProcessor(), finder))\n\n# Run the pipeline with the new hybrid retrieval (return the `RAGResult` to see the details)\nresult = airag(cfg, multi_index; question, return_all=true)\n\n# Pretty-print the result\nPT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.retrieveFunction.
julia
retrieve(retriever::AbstractRetriever,\n    index::AbstractChunkIndex,\n    question::AbstractString;\n    verbose::Integer = 1,\n    top_k::Integer = 100,\n    top_n::Integer = 5,\n    api_kwargs::NamedTuple = NamedTuple(),\n    rephraser::AbstractRephraser = retriever.rephraser,\n    rephraser_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = retriever.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = retriever.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    finder::AbstractSimilarityFinder = retriever.finder,\n    finder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = retriever.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    filter::AbstractTagFilter = retriever.filter,\n    filter_kwargs::NamedTuple = NamedTuple(),\n    reranker::AbstractReranker = retriever.reranker,\n    reranker_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Retrieves the most relevant chunks from the index for the given question and returns them in the RAGResult object.

This is the main entry point for the retrieval stage of the RAG pipeline. It is often followed by generate! step.

Notes:

The arguments correspond to the steps of the retrieval process (rephrasing, embedding, finding similar docs, tagging, filtering by tags, reranking). You can customize each step by providing a new custom type that dispatches the corresponding function, eg, create your own type struct MyReranker<:AbstractReranker end and define the custom method for it rerank(::MyReranker,...) = ....

Note: Discover available retrieval sub-types for each step with subtypes(AbstractRephraser) and similar for other abstract types.

If you're using locally-hosted models, you can pass the api_kwargs with the url field set to the model's URL and make sure to provide corresponding model kwargs to rephraser, embedder, and tagger to use the custom models (they make AI calls).

Arguments

See also: SimpleRetriever, AdvancedRetriever, build_index, rephrase, get_embeddings, get_keywords, find_closest, get_tags, find_tags, rerank, RAGResult.

Examples

Find the 5 most relevant chunks from the index for the given question.

julia
# assumes you have an existing index `index`\nretriever = SimpleRetriever()\n\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)\n\n# or use the default retriever (same as above)\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)

Apply more advanced retrieval with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n).

julia
retriever = AdvancedRetriever()\n\nresult = retrieve(retriever, index, question; top_k=100, top_n=5)

You can use the retriever to customize your retrieval strategy or directly change the strategy types in the retrieve kwargs!

Example of using locally-hosted model hosted on localhost:8080:

julia
retriever = SimpleRetriever()\nresult = retrieve(retriever, index, question;\n    rephraser_kwargs = (; model = "custom"),\n    embedder_kwargs = (; model = "custom"),\n    tagger_kwargs = (; model = "custom"), api_kwargs = (;\n        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.generate!Function.
julia
generate!(\n    generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Integer = 1,\n    api_kwargs::NamedTuple = NamedTuple(),\n    contexter::AbstractContextBuilder = generator.contexter,\n    contexter_kwargs::NamedTuple = NamedTuple(),\n    answerer::AbstractAnswerer = generator.answerer,\n    answerer_kwargs::NamedTuple = NamedTuple(),\n    refiner::AbstractRefiner = generator.refiner,\n    refiner_kwargs::NamedTuple = NamedTuple(),\n    postprocessor::AbstractPostprocessor = generator.postprocessor,\n    postprocessor_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generate the response using the provided generator and the index and result. It is the second step in the RAG pipeline (after retrieve)

Returns the mutated result with the result.final_answer and the full conversation saved in result.conversations[:final_answer].

Notes

Arguments

See also: retrieve, build_context!, ContextEnumerator, answer!, SimpleAnswerer, refine!, NoRefiner, SimpleRefiner, postprocess!, NoPostprocessor

Examples

julia
Assume we already have `index`\n\nquestion = "What are the best practices for parallel computing in Julia?"\n\n# Retrieve the relevant chunks - returns RAGResult\nresult = retrieve(index, question)\n\n# Generate the answer using the default generator, mutates the same result\nresult = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.annotate_supportFunction.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,\n    context::AbstractVector; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Annotates the answer with the overlap/what's supported in context and returns the annotated tree of nodes representing the answer

Returns a "root" node with children nodes representing the sentences/code blocks in the answer. Only the "leaf" nodes are to be printed (to avoid duplication), "leaf" nodes are those with NO children.

Default logic:

Arguments

Example

julia
annotater = TrigramAnnotater()\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test context. Another context sentence."\n\nannotated_root = annotate_support(annotater, answer, context)\npprint(annotated_root) # pretty print the annotated tree

source

julia
annotate_support(\n    annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",\n    context = ["Test context.", "Completely different"])\nannotated_root = annotate_support(annotater, res)\nPT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsFunction.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};\n               model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, \n               verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]\nsources = ["source1", "source2"]\nqa_evals = build_qa_evals(doc_chunks, sources)

source


', 88); const _hoisted_89 = [ _hoisted_1 ]; diff --git a/dev/assets/extra_tools_rag_tools_intro.md.wFqOQLck.lean.js b/dev/assets/extra_tools_rag_tools_intro.md.4lbzXTTR.lean.js similarity index 100% rename from dev/assets/extra_tools_rag_tools_intro.md.wFqOQLck.lean.js rename to dev/assets/extra_tools_rag_tools_intro.md.4lbzXTTR.lean.js diff --git a/dev/assets/extra_tools_text_utilities_intro.md.BaC1zHk8.js b/dev/assets/extra_tools_text_utilities_intro.md.CXWb_lmV.js similarity index 98% rename from dev/assets/extra_tools_text_utilities_intro.md.BaC1zHk8.js rename to dev/assets/extra_tools_text_utilities_intro.md.CXWb_lmV.js index eb6c798d7..9b6b57b39 100644 --- a/dev/assets/extra_tools_text_utilities_intro.md.BaC1zHk8.js +++ b/dev/assets/extra_tools_text_utilities_intro.md.CXWb_lmV.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Text Utilities","description":"","frontmatter":{},"headers":[],"relativePath":"extra_tools/text_utilities_intro.md","filePath":"extra_tools/text_utilities_intro.md","lastUpdated":null}'); const _sfc_main = { name: "extra_tools/text_utilities_intro.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Text Utilities

Working with Generative AI (and in particular with the text modality), requires a lot of text manipulation. PromptingTools.jl provides a set of utilities to make this process easier and more efficient.

Highlights

The main functions to be aware of are

You can import them simply via:

julia
using PromptingTools: recursive_splitter, replace_words, wrap_string, length_longest_common_subsequence, distance_longest_common_subsequence

There are many more (especially in the AgentTools and RAGTools experimental modules)!

RAGTools module contains the following text utilities:

Feel free to open an issue or ask in the #generative-ai channel in the JuliaLang Slack if you have a specific need.

References

# PromptingTools.recursive_splitterFunction.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"\nchunks = recursive_splitter(text; max_length=13)\nlength(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars\nrecursive_splitter(text; separator=",", max_length=10000) # for 4K context window\nlength(chunks[1]) # Output: 4

source

julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\\n\\n", "\\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n"] # split by paragraphs, sentences, and newlines (not by words)\nchunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n", " "] # split by paragraphs, sentences, and newlines, words\nchunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters\nchunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\\n\\n", "\\n", " ", ""].

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", "\\n", " ", ""]\nchunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.replace_wordsFunction.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"\nreplace_words(text, ["Disney", "Snow White", "Mickey Mouse"])\n# Output: "ABC is a great company"

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,\n    text_width::Int = 20;\n    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.length_longest_common_subsequenceFunction.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"\ntext2 = "___ab_c__abc"\nlongest_common_subsequence(text1, text2)\n# Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]\nquery = "Which product can you recommend for me?"\nlet pos = argmax(length_longest_common_subsequence.(Ref(query), commands))\n    dist = length_longest_common_subsequence(query, commands[pos])\n    norm = dist / min(length(query), length(commands[pos]))\n    @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"\nend

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!

\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/utils.jl#L252-L288)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.distance_longest_common_subsequence-extra_tools-text_utilities_intro' href='#PromptingTools.distance_longest_common_subsequence-extra_tools-text_utilities_intro'>#</a>&nbsp;<b><u>PromptingTools.distance_longest_common_subsequence</u></b> &mdash; <i>Function</i>.\n\n\n\n\n```julia\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractString)\n\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractVector{<:AbstractString})

Measures distance between two strings using the length of the longest common subsequence (ie, the lower the number, the better the match). Perfect match is distance = 0.0

Convenience wrapper around length_longest_common_subsequence to normalize the distances to 0-1 range. There is a also a dispatch for comparing a string vs an array of strings.

Notes

Arguments

Example

You can also use it to find the closest context for some AI generated summary/story:

julia
context = ["The enigmatic stranger vanished as swiftly as a wisp of smoke, leaving behind a trail of unanswered questions.",\n    "Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.",\n    "The ancient tree stood as a silent guardian, its gnarled branches reaching for the heavens.",\n    "The melody danced through the air, painting a vibrant tapestry of emotions.",\n    "Time flowed like a relentless river, carrying away memories and leaving imprints in its wake."]\n\nstory = """\n    Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.\n\n    Under the celestial tapestry, the vast ocean whispered its secrets to the indifferent stars. Each ripple, a murmured confidence, each wave, a whispered lament. The glittering celestial bodies listened in silent complicity, their enigmatic gaze reflecting the ocean's unspoken truths. The cosmic dance between the sea and the sky, a symphony of shared secrets, forever echoing in the ethereal expanse.\n    """\n\ndist = distance_longest_common_subsequence(story, context)\n@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


', 20); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Text Utilities

Working with Generative AI (and in particular with the text modality), requires a lot of text manipulation. PromptingTools.jl provides a set of utilities to make this process easier and more efficient.

Highlights

The main functions to be aware of are

You can import them simply via:

julia
using PromptingTools: recursive_splitter, replace_words, wrap_string, length_longest_common_subsequence, distance_longest_common_subsequence

There are many more (especially in the AgentTools and RAGTools experimental modules)!

RAGTools module contains the following text utilities:

Feel free to open an issue or ask in the #generative-ai channel in the JuliaLang Slack if you have a specific need.

References

# PromptingTools.recursive_splitterFunction.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"\nchunks = recursive_splitter(text; max_length=13)\nlength(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars\nrecursive_splitter(text; separator=",", max_length=10000) # for 4K context window\nlength(chunks[1]) # Output: 4

source

julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\\n\\n", "\\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n"] # split by paragraphs, sentences, and newlines (not by words)\nchunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n", " "] # split by paragraphs, sentences, and newlines, words\nchunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters\nchunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\\n\\n", "\\n", " ", ""].

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", "\\n", " ", ""]\nchunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.replace_wordsFunction.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"\nreplace_words(text, ["Disney", "Snow White", "Mickey Mouse"])\n# Output: "ABC is a great company"

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,\n    text_width::Int = 20;\n    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.length_longest_common_subsequenceFunction.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"\ntext2 = "___ab_c__abc"\nlongest_common_subsequence(text1, text2)\n# Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]\nquery = "Which product can you recommend for me?"\nlet pos = argmax(length_longest_common_subsequence.(Ref(query), commands))\n    dist = length_longest_common_subsequence(query, commands[pos])\n    norm = dist / min(length(query), length(commands[pos]))\n    @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"\nend

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!

\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/utils.jl#L252-L288)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.distance_longest_common_subsequence-extra_tools-text_utilities_intro' href='#PromptingTools.distance_longest_common_subsequence-extra_tools-text_utilities_intro'>#</a>&nbsp;<b><u>PromptingTools.distance_longest_common_subsequence</u></b> &mdash; <i>Function</i>.\n\n\n\n\n```julia\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractString)\n\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractVector{<:AbstractString})

Measures distance between two strings using the length of the longest common subsequence (ie, the lower the number, the better the match). Perfect match is distance = 0.0

Convenience wrapper around length_longest_common_subsequence to normalize the distances to 0-1 range. There is a also a dispatch for comparing a string vs an array of strings.

Notes

Arguments

Example

You can also use it to find the closest context for some AI generated summary/story:

julia
context = ["The enigmatic stranger vanished as swiftly as a wisp of smoke, leaving behind a trail of unanswered questions.",\n    "Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.",\n    "The ancient tree stood as a silent guardian, its gnarled branches reaching for the heavens.",\n    "The melody danced through the air, painting a vibrant tapestry of emotions.",\n    "Time flowed like a relentless river, carrying away memories and leaving imprints in its wake."]\n\nstory = """\n    Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.\n\n    Under the celestial tapestry, the vast ocean whispered its secrets to the indifferent stars. Each ripple, a murmured confidence, each wave, a whispered lament. The glittering celestial bodies listened in silent complicity, their enigmatic gaze reflecting the ocean's unspoken truths. The cosmic dance between the sea and the sky, a symphony of shared secrets, forever echoing in the ethereal expanse.\n    """\n\ndist = distance_longest_common_subsequence(story, context)\n@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


', 20); const _hoisted_21 = [ _hoisted_1 ]; diff --git a/dev/assets/extra_tools_text_utilities_intro.md.BaC1zHk8.lean.js b/dev/assets/extra_tools_text_utilities_intro.md.CXWb_lmV.lean.js similarity index 100% rename from dev/assets/extra_tools_text_utilities_intro.md.BaC1zHk8.lean.js rename to dev/assets/extra_tools_text_utilities_intro.md.CXWb_lmV.lean.js diff --git a/dev/assets/reference.md.CAg04DWR.js b/dev/assets/reference.md.Ud_SMp1n.js similarity index 87% rename from dev/assets/reference.md.CAg04DWR.js rename to dev/assets/reference.md.Ud_SMp1n.js index 0db26fe29..3789b0985 100644 --- a/dev/assets/reference.md.CAg04DWR.js +++ b/dev/assets/reference.md.Ud_SMp1n.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, m as createBaseVNode, a as createTextVNode, t as toDisplayString, a7 as createStaticVNode, o as openBlock } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Reference","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"reference.md","filePath":"reference.md","lastUpdated":null}'); const _sfc_main = { name: "reference.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference

# PromptingTools.ALLOWED_PREFERENCESConstant.

Keys that are allowed to be set via set_preferences!

source


# PromptingTools.ALTERNATIVE_GENERATION_COSTSConstant.
julia
ALTERNATIVE_GENERATION_COSTS

Tracker of alternative costing models, eg, for image generation (dall-e-3), the cost is driven by quality/size.

source


# PromptingTools.ANTHROPIC_TOOL_PROMPTConstant.

Simple template to add to the System Message when doing data extraction with Anthropic models.

It has 2 placeholders: tool_name, tool_description and tool_parameters that are filled with the tool's name, description and parameters. Source: https://docs.anthropic.com/claude/docs/functions-external-tools

source


# PromptingTools.CONV_HISTORYConstant.
julia
CONV_HISTORY

Tracks the most recent conversations through the ai_str macros.

Preference available: MAX_HISTORY_LENGTH, which sets how many last messages should be remembered.

See also: push_conversation!, resize_conversation!

source


# PromptingTools.MODEL_ALIASESConstant.
julia
MODEL_ALIASES

A dictionary of model aliases. Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them.

Accessing the aliases

PromptingTools.MODEL_ALIASES["gpt3"]

Register a new model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.MODEL_REGISTRYConstant.
julia
MODEL_REGISTRY

A store of available model names and their specs (ie, name, costs per token, etc.)

Accessing the registry

You can use both the alias name or the full name to access the model spec:

PromptingTools.MODEL_REGISTRY["gpt-3.5-turbo"]

Registering a new model

julia
register_model!(\n    name = "gpt-3.5-turbo",\n    schema = :OpenAISchema,\n    cost_of_token_prompt = 0.0015,\n    cost_of_token_generation = 0.002,\n    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

Registering a model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.OPENAI_TOKEN_IDSConstant.

Token IDs for GPT3.5 and GPT4 from https://platform.openai.com/tokenizer

source


# PromptingTools.PREFERENCESConstant.
julia
PREFERENCES

You can set preferences for PromptingTools by setting environment variables or by using the set_preferences!. It will create a LocalPreferences.toml file in your current directory and will reload your prefences from there.

Check your preferences by calling get_preferences(key::String).

Available Preferences (for set_preferences!)

At the moment it is not possible to persist changes to MODEL_REGISTRY across sessions. Define your register_model!() calls in your startup.jl file to make them available across sessions or put them at the top of your script.

Available ENV Variables

Preferences.jl takes priority over ENV variables, so if you set a preference, it will take precedence over the ENV variable.

WARNING: NEVER EVER sync your LocalPreferences.toml file! It contains your API key and other sensitive information!!!

source


# PromptingTools.RESERVED_KWARGSConstant.

The following keywords are reserved for internal use in the ai* functions and cannot be used as placeholders in the Messages

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,\nprefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)\n\nAICode(msg::AIMessage; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, skip_invalid::Bool=false, capture_stdout::Bool=true,\nverbose::Bool=false, prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)

A mutable structure representing a code block (received from the AI model) with automatic parsing, execution, and output/error capturing capabilities.

Upon instantiation with a string, the AICode object automatically runs a code parser and executor (via PromptingTools.eval!()), capturing any standard output (stdout) or errors. This structure is useful for programmatically handling and evaluating Julia code snippets.

See also: PromptingTools.extract_code_blocks, PromptingTools.eval!

Workflow

Properties

Keyword Arguments

Methods

Examples

julia
code = AICode("println("Hello, World!")") # Auto-parses and evaluates the code, capturing output and errors.\nisvalid(code) # Output: true\ncode.stdout # Output: "Hello, World!\n"

We try to evaluate "safely" by default (eg, inside a custom module, to avoid changing user variables). You can avoid that with save_eval=false:

julia
code = AICode("new_variable = 1"; safe_eval=false)\nisvalid(code) # Output: true\nnew_variable # Output: 1

You can also call AICode directly on an AIMessage, which will extract the Julia code blocks, concatenate them and evaluate them:

julia
msg = aigenerate("In Julia, how do you create a vector of 10 random numbers?")\ncode = AICode(msg)\n# Output: AICode(Success: True, Parsed: True, Evaluated: True, Error Caught: N/A, StdOut: True, Code: 2 Lines)\n\n# show the code\ncode.code |> println\n# Output: \n# numbers = rand(10)\n# numbers = rand(1:100, 10)\n\n# or copy it to the clipboard\ncode.code |> clipboard\n\n# or execute it in the current module (=Main)\neval(code.expression)

source


# PromptingTools.AIMessageType.
julia
AIMessage

A message type for AI-generated text-based responses. Returned by aigenerate, aiclassify, and aiscan functions.

Fields

source


# PromptingTools.AITemplateType.
julia
AITemplate

AITemplate is a template for a conversation prompt. This type is merely a container for the template name, which is resolved into a set of messages (=prompt) by render.

Naming Convention

Examples

Save time by re-using pre-made templates, just fill in the placeholders with the keyword arguments:

julia
msg = aigenerate(:JuliaExpertAsk; ask = "How do I add packages?")

The above is equivalent to a more verbose version that explicitly uses the dispatch on AITemplate:

julia
msg = aigenerate(AITemplate(:JuliaExpertAsk); ask = "How do I add packages?")

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")\n# Will surface one specific template\n# 1-element Vector{AITemplateMetadata}:\n# PromptingTools.AITemplateMetadata\n#   name: Symbol JuliaExpertAsk\n#   description: String "For asking questions about Julia language. Placeholders: `ask`"\n#   version: String "1"\n#   wordcount: Int64 237\n#   variables: Array{Symbol}((1,))\n#   system_preview: String "You are a world-class Julia language programmer with the knowledge of the latest syntax. Your commun"\n#   user_preview: String "# Question\n\n{{ask}}"\n#   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")\n# 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames\ntmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

You can inspect any template by "rendering" it (this is what the LLM will see):

julia
julia> AITemplate(:JudgeIsItTrue) |> PromptingTools.render

See also: save_template, load_template, load_templates! for more advanced use cases (and the corresponding script in examples/ folder)

source


# PromptingTools.AITemplateMetadataType.

Helper for easy searching and reviewing of templates. Defined on loading of each template.

source


# PromptingTools.AbstractPromptSchemaType.

Defines different prompting styles based on the model training and fine-tuning.

source


', 30); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference

# PromptingTools.ALLOWED_PREFERENCESConstant.

Keys that are allowed to be set via set_preferences!

source


# PromptingTools.ALTERNATIVE_GENERATION_COSTSConstant.
julia
ALTERNATIVE_GENERATION_COSTS

Tracker of alternative costing models, eg, for image generation (dall-e-3), the cost is driven by quality/size.

source


# PromptingTools.ANTHROPIC_TOOL_PROMPTConstant.

Simple template to add to the System Message when doing data extraction with Anthropic models.

It has 2 placeholders: tool_name, tool_description and tool_parameters that are filled with the tool's name, description and parameters. Source: https://docs.anthropic.com/claude/docs/functions-external-tools

source


# PromptingTools.CONV_HISTORYConstant.
julia
CONV_HISTORY

Tracks the most recent conversations through the ai_str macros.

Preference available: MAX_HISTORY_LENGTH, which sets how many last messages should be remembered.

See also: push_conversation!, resize_conversation!

source


# PromptingTools.MODEL_ALIASESConstant.
julia
MODEL_ALIASES

A dictionary of model aliases. Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them.

Accessing the aliases

PromptingTools.MODEL_ALIASES["gpt3"]

Register a new model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.MODEL_REGISTRYConstant.
julia
MODEL_REGISTRY

A store of available model names and their specs (ie, name, costs per token, etc.)

Accessing the registry

You can use both the alias name or the full name to access the model spec:

PromptingTools.MODEL_REGISTRY["gpt-3.5-turbo"]

Registering a new model

julia
register_model!(\n    name = "gpt-3.5-turbo",\n    schema = :OpenAISchema,\n    cost_of_token_prompt = 0.0015,\n    cost_of_token_generation = 0.002,\n    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

Registering a model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.OPENAI_TOKEN_IDSConstant.

Token IDs for GPT3.5 and GPT4 from https://platform.openai.com/tokenizer

source


# PromptingTools.PREFERENCESConstant.
julia
PREFERENCES

You can set preferences for PromptingTools by setting environment variables or by using the set_preferences!. It will create a LocalPreferences.toml file in your current directory and will reload your prefences from there.

Check your preferences by calling get_preferences(key::String).

Available Preferences (for set_preferences!)

At the moment it is not possible to persist changes to MODEL_REGISTRY across sessions. Define your register_model!() calls in your startup.jl file to make them available across sessions or put them at the top of your script.

Available ENV Variables

Preferences.jl takes priority over ENV variables, so if you set a preference, it will take precedence over the ENV variable.

WARNING: NEVER EVER sync your LocalPreferences.toml file! It contains your API key and other sensitive information!!!

source


# PromptingTools.RESERVED_KWARGSConstant.

The following keywords are reserved for internal use in the ai* functions and cannot be used as placeholders in the Messages

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,\nprefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)\n\nAICode(msg::AIMessage; auto_eval::Bool=true, safe_eval::Bool=false, \nskip_unsafe::Bool=false, skip_invalid::Bool=false, capture_stdout::Bool=true,\nverbose::Bool=false, prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)

A mutable structure representing a code block (received from the AI model) with automatic parsing, execution, and output/error capturing capabilities.

Upon instantiation with a string, the AICode object automatically runs a code parser and executor (via PromptingTools.eval!()), capturing any standard output (stdout) or errors. This structure is useful for programmatically handling and evaluating Julia code snippets.

See also: PromptingTools.extract_code_blocks, PromptingTools.eval!

Workflow

Properties

Keyword Arguments

Methods

Examples

julia
code = AICode("println("Hello, World!")") # Auto-parses and evaluates the code, capturing output and errors.\nisvalid(code) # Output: true\ncode.stdout # Output: "Hello, World!\n"

We try to evaluate "safely" by default (eg, inside a custom module, to avoid changing user variables). You can avoid that with save_eval=false:

julia
code = AICode("new_variable = 1"; safe_eval=false)\nisvalid(code) # Output: true\nnew_variable # Output: 1

You can also call AICode directly on an AIMessage, which will extract the Julia code blocks, concatenate them and evaluate them:

julia
msg = aigenerate("In Julia, how do you create a vector of 10 random numbers?")\ncode = AICode(msg)\n# Output: AICode(Success: True, Parsed: True, Evaluated: True, Error Caught: N/A, StdOut: True, Code: 2 Lines)\n\n# show the code\ncode.code |> println\n# Output: \n# numbers = rand(10)\n# numbers = rand(1:100, 10)\n\n# or copy it to the clipboard\ncode.code |> clipboard\n\n# or execute it in the current module (=Main)\neval(code.expression)

source


# PromptingTools.AIMessageType.
julia
AIMessage

A message type for AI-generated text-based responses. Returned by aigenerate, aiclassify, and aiscan functions.

Fields

source


# PromptingTools.AITemplateType.
julia
AITemplate

AITemplate is a template for a conversation prompt. This type is merely a container for the template name, which is resolved into a set of messages (=prompt) by render.

Naming Convention

Examples

Save time by re-using pre-made templates, just fill in the placeholders with the keyword arguments:

julia
msg = aigenerate(:JuliaExpertAsk; ask = "How do I add packages?")

The above is equivalent to a more verbose version that explicitly uses the dispatch on AITemplate:

julia
msg = aigenerate(AITemplate(:JuliaExpertAsk); ask = "How do I add packages?")

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")\n# Will surface one specific template\n# 1-element Vector{AITemplateMetadata}:\n# PromptingTools.AITemplateMetadata\n#   name: Symbol JuliaExpertAsk\n#   description: String "For asking questions about Julia language. Placeholders: `ask`"\n#   version: String "1"\n#   wordcount: Int64 237\n#   variables: Array{Symbol}((1,))\n#   system_preview: String "You are a world-class Julia language programmer with the knowledge of the latest syntax. Your commun"\n#   user_preview: String "# Question\n\n{{ask}}"\n#   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")\n# 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames\ntmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

You can inspect any template by "rendering" it (this is what the LLM will see):

julia
julia> AITemplate(:JudgeIsItTrue) |> PromptingTools.render

See also: save_template, load_template, load_templates! for more advanced use cases (and the corresponding script in examples/ folder)

source


# PromptingTools.AITemplateMetadataType.

Helper for easy searching and reviewing of templates. Defined on loading of each template.

source


# PromptingTools.AbstractPromptSchemaType.

Defines different prompting styles based on the model training and fine-tuning.

source


', 30); const _hoisted_31 = { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }; const _hoisted_32 = /* @__PURE__ */ createBaseVNode("a", { id: "PromptingTools.AnthropicSchema", @@ -19,12 +19,12 @@ const _hoisted_40 = /* @__PURE__ */ createBaseVNode("a", { }, "here", -1); const _hoisted_41 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_interface.jl#L286-L300", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_interface.jl#L286-L300", target: "_blank", rel: "noreferrer" }, "source") ], -1); -const _hoisted_42 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.ChatMLSchemaType.

ChatMLSchema is used by many open-source chatbots, by OpenAI models (under the hood) and by several models and inferfaces (eg, Ollama, vLLM)

You can explore it on tiktokenizer

It uses the following conversation structure:

<im_start>system\n...<im_end>\n<|im_start|>user\n...<|im_end|>\n<|im_start|>assistant\n...<|im_end|>

source


# PromptingTools.CustomOpenAISchemaType.
julia
CustomOpenAISchema

CustomOpenAISchema() allows user to call any OpenAI-compatible API.

All user needs to do is to pass this schema as the first argument and provide the BASE URL of the API to call (api_kwargs.url).

Example

Assumes that we have a local server running at http://127.0.0.1:8081:

julia
api_key = "..."\nprompt = "Say hi!"\nmsg = aigenerate(CustomOpenAISchema(), prompt; model="my_model", api_key, api_kwargs=(; url="http://127.0.0.1:8081"))

source


# PromptingTools.DataMessageType.
julia
DataMessage

A message type for AI-generated data-based responses, ie, different content than text. Returned by aiextract, and aiextract functions.

Fields

source


# PromptingTools.DatabricksOpenAISchemaType.
julia
DatabricksOpenAISchema

DatabricksOpenAISchema() allows user to call Databricks Foundation Model API. API Reference

Requires two environment variables to be set:

source


# PromptingTools.DeepSeekOpenAISchemaType.
julia
DeepSeekOpenAISchema

Schema to call the DeepSeek API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.FireworksOpenAISchemaType.
julia
FireworksOpenAISchema

Schema to call the Fireworks.ai API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.GoogleSchemaType.

Calls Google's Gemini API. See more information here. It's available only for some regions.

source


# PromptingTools.GroqOpenAISchemaType.
julia
GroqOpenAISchema

Schema to call the groq.com API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.ItemsExtractType.

Extract zero, one or more specified items from the provided data.

source


# PromptingTools.LocalServerOpenAISchemaType.
julia
LocalServerOpenAISchema

Designed to be used with local servers. It's automatically called with model alias "local" (see MODEL_REGISTRY).

This schema is a flavor of CustomOpenAISchema with a url keypreset by global Preference keyLOCAL_SERVER. See?PREFERENCESfor more details on how to change it. It assumes that the server follows OpenAI API conventions (eg,POST /v1/chat/completions`).

Note: Llama.cpp (and hence Llama.jl built on top of it) do NOT support embeddings endpoint! You'll get an address error.

Example

Assumes that we have a local server running at http://127.0.0.1:10897/v1 (port and address used by Llama.jl, "v1" at the end is needed for OpenAI endpoint compatibility):

Three ways to call it:

julia
\n# Use @ai_str with "local" alias\nai"Say hi!"local\n\n# model="local"\naigenerate("Say hi!"; model="local")\n\n# Or set schema explicitly\nconst PT = PromptingTools\nmsg = aigenerate(PT.LocalServerOpenAISchema(), "Say hi!")

How to start a LLM local server? You can use run_server function from Llama.jl. Use a separate Julia session.

julia
using Llama\nmodel = "...path..." # see Llama.jl README how to download one\nrun_server(; model)

To change the default port and address:

julia
# For a permanent change, set the preference:\nusing Preferences\nset_preferences!("LOCAL_SERVER"=>"http://127.0.0.1:10897/v1")\n\n# Or if it's a temporary fix, just change the variable `LOCAL_SERVER`:\nconst PT = PromptingTools\nPT.LOCAL_SERVER = "http://127.0.0.1:10897/v1"

source


# PromptingTools.MaybeExtractType.

Extract a result from the provided data, if any, otherwise set the error and message fields.

Arguments

source


# PromptingTools.MistralOpenAISchemaType.
julia
MistralOpenAISchema

MistralOpenAISchema() allows user to call MistralAI API known for mistral and mixtral models.

It's a flavor of CustomOpenAISchema() with a url preset to https://api.mistral.ai.

Most models have been registered, so you don't even have to specify the schema

Example

Let's call mistral-tiny model:

julia
api_key = "..." # can be set via ENV["MISTRAL_API_KEY"] or via our preference system\nmsg = aigenerate("Say hi!"; model="mistral_tiny", api_key)

See ?PREFERENCES for more details on how to set your API key permanently.

source


# PromptingTools.ModelSpecType.
julia
ModelSpec

A struct that contains information about a model, such as its name, schema, cost per token, etc.

Fields

Example

julia
spec = ModelSpec("gpt-3.5-turbo",\n    OpenAISchema(),\n    0.0015,\n    0.002,\n    "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")\n\n# register it\nPromptingTools.register_model!(spec)

But you can also register any model directly via keyword arguments:

julia
PromptingTools.register_model!(\n    name = "gpt-3.5-turbo",\n    schema = OpenAISchema(),\n    cost_of_token_prompt = 0.0015,\n    cost_of_token_generation = 0.002,\n    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

source


# PromptingTools.NoSchemaType.

Schema that keeps messages (<:AbstractMessage) and does not transform for any specific model. It used by the first pass of the prompt rendering system (see ?render).

source


# PromptingTools.OllamaManagedSchemaType.

Ollama by default manages different models and their associated prompt schemas when you pass system_prompt and prompt fields to the API.

Warning: It works only for 1 system message and 1 user message, so anything more than that has to be rejected.

If you need to pass more messagese / longer conversational history, you can use define the model-specific schema directly and pass your Ollama requests with raw=true, which disables and templating and schema management by Ollama.

source


# PromptingTools.OllamaSchemaType.

OllamaSchema is the default schema for Olama models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's very similar to OpenAISchema, but it appends images differently.

source


# PromptingTools.OpenAISchemaType.

OpenAISchema is the default schema for OpenAI models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's recommended to separate sections in your prompt with markdown headers (e.g. `##Answer

`).

source


# PromptingTools.SaverSchemaType.
julia
SaverSchema <: AbstractTracerSchema

SaverSchema is a schema that automatically saves the conversation to the disk. It's useful for debugging and for persistent logging.

It can be composed with any other schema, eg, TracerSchema to save additional metadata.

Set environment variable LOG_DIR to the directory where you want to save the conversation (see ?PREFERENCES). Conversations are named by the hash of the first message in the conversation to naturally group subsequent conversations together.

If you need to provide logging directory of the file name dynamically, you can provide the following arguments to tracer_kwargs:

To use it automatically, re-register the models you use with the schema wrapped in SaverSchema

See also: meta, unwrap, TracerSchema, initialize_tracer, finalize_tracer

Example

julia
using PromptingTools: TracerSchema, OpenAISchema, SaverSchema\n# This schema will first trace the metadata (change to TraceMessage) and then save the conversation to the disk\n\nwrap_schema = OpenAISchema() |> TracerSchema |> SaverSchema\nconv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!", model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)\n\n# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

If you wanted to enable this automatically for models you use, you can do it like this:

julia
PT.register_model!(; name= "gpt-3.5-turbo", schema=OpenAISchema() |> TracerSchema |> SaverSchema)

Any subsequent calls model="gpt-3.5-turbo" will automatically capture metadata and save the conversation to the disk.

To provide logging file path explicitly, use the tracer_kwargs:

julia
conv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!", model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true,\n    tracer_kwargs=(; log_file_path="my_logs/my_log.json"))

source


# PromptingTools.ShareGPTSchemaType.
julia
ShareGPTSchema <: AbstractShareGPTSchema

Frequently used schema for finetuning LLMs. Conversations are recorded as a vector of dicts with keys from and value (similar to OpenAI).

source


# PromptingTools.TestEchoAnthropicSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoGoogleSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaManagedSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOpenAISchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TogetherOpenAISchemaType.
julia
TogetherOpenAISchema

Schema to call the Together.ai API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.TracerMessageType.
julia
TracerMessage{T <: Union{AbstractChatMessage, AbstractDataMessage}} <: AbstractTracerMessage

A mutable wrapper message designed for tracing the flow of messages through the system, allowing for iterative updates and providing additional metadata for observability.

Fields

This structure is particularly useful for debugging, monitoring, and auditing the flow of messages in systems that involve complex interactions or asynchronous processing.

All fields are optional besides the object.

Useful methods: pprint (pretty prints the underlying message), unwrap (to get the object out of tracer), align_tracer! (to set all shared IDs in a vector of tracers to the same), istracermessage to check if given message is an AbstractTracerMessage

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")\nmsg # isa TracerMessage\nmsg.content # access content like if it was the message

source


# PromptingTools.TracerMessageLikeType.
julia
TracerMessageLike{T <: Any} <: AbstractTracer

A mutable structure designed for general-purpose tracing within the system, capable of handling any type of object that is part of the AI Conversation. It provides a flexible way to track and annotate objects as they move through different parts of the system, facilitating debugging, monitoring, and auditing.

Fields

This structure is particularly useful for systems that involve complex interactions or asynchronous processing, where tracking the flow and transformation of objects is crucial.

All fields are optional besides the object.

source


# PromptingTools.TracerSchemaType.
julia
TracerSchema <: AbstractTracerSchema

A schema designed to wrap another schema, enabling pre- and post-execution callbacks for tracing and additional functionalities. This type is specifically utilized within the TracerMessage type to trace the execution flow, facilitating observability and debugging in complex conversational AI systems.

The TracerSchema acts as a middleware, allowing developers to insert custom logic before and after the execution of the primary schema's functionality. This can include logging, performance measurement, or any other form of tracing required to understand or improve the execution flow.

TracerSchema automatically wraps messages in TracerMessage type, which has several important fields, eg,

See also: meta, unwrap, SaverSchema, initialize_tracer, finalize_tracer

Example

julia
wrap_schema = TracerSchema(OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model="gpt-4")\n# output type should be TracerMessage\nmsg isa TracerMessage

You can define your own tracer schema and the corresponding methods: initialize_tracer, finalize_tracer. See src/llm_tracer.jl

source


# PromptingTools.UserMessageWithImagesMethod.

Construct UserMessageWithImages with 1 or more images. Images can be either URLs or local paths.

source


# PromptingTools.X123Type.

With docstring

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::CustomOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="http://localhost:8080", kwargs...)

Dispatch to the OpenAI.create_chat function, for any OpenAI-compatible API.

It expects url keyword argument. Provide it to the aigenerate function via api_kwargs=(; url="my-url")

It will forward your query to the "chat/completions" endpoint of the base URL that you provided (=url).

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::LocalServerOpenAISchema,\n    api_key::AbstractString,\n    model::AbstractString,\n    conversation;\n    url::String = "http://localhost:8080",\n    kwargs...)

Dispatch to the OpenAI.create_chat function, but with the LocalServer API parameters, ie, defaults to url specified by the LOCAL_SERVERpreference. See?PREFERENCES

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::MistralOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="https://api.mistral.ai/v1", kwargs...)

Dispatch to the OpenAI.create_chat function, but with the MistralAI API parameters.

It tries to access the MISTRALAI_API_KEY ENV variable, but you can also provide it via the api_key keyword argument.

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiclassify call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


', 69); +const _hoisted_42 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.ChatMLSchemaType.

ChatMLSchema is used by many open-source chatbots, by OpenAI models (under the hood) and by several models and inferfaces (eg, Ollama, vLLM)

You can explore it on tiktokenizer

It uses the following conversation structure:

<im_start>system\n...<im_end>\n<|im_start|>user\n...<|im_end|>\n<|im_start|>assistant\n...<|im_end|>

source


# PromptingTools.CustomOpenAISchemaType.
julia
CustomOpenAISchema

CustomOpenAISchema() allows user to call any OpenAI-compatible API.

All user needs to do is to pass this schema as the first argument and provide the BASE URL of the API to call (api_kwargs.url).

Example

Assumes that we have a local server running at http://127.0.0.1:8081:

julia
api_key = "..."\nprompt = "Say hi!"\nmsg = aigenerate(CustomOpenAISchema(), prompt; model="my_model", api_key, api_kwargs=(; url="http://127.0.0.1:8081"))

source


# PromptingTools.DataMessageType.
julia
DataMessage

A message type for AI-generated data-based responses, ie, different content than text. Returned by aiextract, and aiextract functions.

Fields

source


# PromptingTools.DatabricksOpenAISchemaType.
julia
DatabricksOpenAISchema

DatabricksOpenAISchema() allows user to call Databricks Foundation Model API. API Reference

Requires two environment variables to be set:

source


# PromptingTools.DeepSeekOpenAISchemaType.
julia
DeepSeekOpenAISchema

Schema to call the DeepSeek API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.FireworksOpenAISchemaType.
julia
FireworksOpenAISchema

Schema to call the Fireworks.ai API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.GoogleSchemaType.

Calls Google's Gemini API. See more information here. It's available only for some regions.

source


# PromptingTools.GroqOpenAISchemaType.
julia
GroqOpenAISchema

Schema to call the groq.com API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.ItemsExtractType.

Extract zero, one or more specified items from the provided data.

source


# PromptingTools.LocalServerOpenAISchemaType.
julia
LocalServerOpenAISchema

Designed to be used with local servers. It's automatically called with model alias "local" (see MODEL_REGISTRY).

This schema is a flavor of CustomOpenAISchema with a url keypreset by global Preference keyLOCAL_SERVER. See?PREFERENCESfor more details on how to change it. It assumes that the server follows OpenAI API conventions (eg,POST /v1/chat/completions`).

Note: Llama.cpp (and hence Llama.jl built on top of it) do NOT support embeddings endpoint! You'll get an address error.

Example

Assumes that we have a local server running at http://127.0.0.1:10897/v1 (port and address used by Llama.jl, "v1" at the end is needed for OpenAI endpoint compatibility):

Three ways to call it:

julia
\n# Use @ai_str with "local" alias\nai"Say hi!"local\n\n# model="local"\naigenerate("Say hi!"; model="local")\n\n# Or set schema explicitly\nconst PT = PromptingTools\nmsg = aigenerate(PT.LocalServerOpenAISchema(), "Say hi!")

How to start a LLM local server? You can use run_server function from Llama.jl. Use a separate Julia session.

julia
using Llama\nmodel = "...path..." # see Llama.jl README how to download one\nrun_server(; model)

To change the default port and address:

julia
# For a permanent change, set the preference:\nusing Preferences\nset_preferences!("LOCAL_SERVER"=>"http://127.0.0.1:10897/v1")\n\n# Or if it's a temporary fix, just change the variable `LOCAL_SERVER`:\nconst PT = PromptingTools\nPT.LOCAL_SERVER = "http://127.0.0.1:10897/v1"

source


# PromptingTools.MaybeExtractType.

Extract a result from the provided data, if any, otherwise set the error and message fields.

Arguments

source


# PromptingTools.MistralOpenAISchemaType.
julia
MistralOpenAISchema

MistralOpenAISchema() allows user to call MistralAI API known for mistral and mixtral models.

It's a flavor of CustomOpenAISchema() with a url preset to https://api.mistral.ai.

Most models have been registered, so you don't even have to specify the schema

Example

Let's call mistral-tiny model:

julia
api_key = "..." # can be set via ENV["MISTRAL_API_KEY"] or via our preference system\nmsg = aigenerate("Say hi!"; model="mistral_tiny", api_key)

See ?PREFERENCES for more details on how to set your API key permanently.

source


# PromptingTools.ModelSpecType.
julia
ModelSpec

A struct that contains information about a model, such as its name, schema, cost per token, etc.

Fields

Example

julia
spec = ModelSpec("gpt-3.5-turbo",\n    OpenAISchema(),\n    0.0015,\n    0.002,\n    "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")\n\n# register it\nPromptingTools.register_model!(spec)

But you can also register any model directly via keyword arguments:

julia
PromptingTools.register_model!(\n    name = "gpt-3.5-turbo",\n    schema = OpenAISchema(),\n    cost_of_token_prompt = 0.0015,\n    cost_of_token_generation = 0.002,\n    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

source


# PromptingTools.NoSchemaType.

Schema that keeps messages (<:AbstractMessage) and does not transform for any specific model. It used by the first pass of the prompt rendering system (see ?render).

source


# PromptingTools.OllamaManagedSchemaType.

Ollama by default manages different models and their associated prompt schemas when you pass system_prompt and prompt fields to the API.

Warning: It works only for 1 system message and 1 user message, so anything more than that has to be rejected.

If you need to pass more messagese / longer conversational history, you can use define the model-specific schema directly and pass your Ollama requests with raw=true, which disables and templating and schema management by Ollama.

source


# PromptingTools.OllamaSchemaType.

OllamaSchema is the default schema for Olama models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's very similar to OpenAISchema, but it appends images differently.

source


# PromptingTools.OpenAISchemaType.

OpenAISchema is the default schema for OpenAI models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's recommended to separate sections in your prompt with markdown headers (e.g. `##Answer

`).

source


# PromptingTools.SaverSchemaType.
julia
SaverSchema <: AbstractTracerSchema

SaverSchema is a schema that automatically saves the conversation to the disk. It's useful for debugging and for persistent logging.

It can be composed with any other schema, eg, TracerSchema to save additional metadata.

Set environment variable LOG_DIR to the directory where you want to save the conversation (see ?PREFERENCES). Conversations are named by the hash of the first message in the conversation to naturally group subsequent conversations together.

If you need to provide logging directory of the file name dynamically, you can provide the following arguments to tracer_kwargs:

To use it automatically, re-register the models you use with the schema wrapped in SaverSchema

See also: meta, unwrap, TracerSchema, initialize_tracer, finalize_tracer

Example

julia
using PromptingTools: TracerSchema, OpenAISchema, SaverSchema\n# This schema will first trace the metadata (change to TraceMessage) and then save the conversation to the disk\n\nwrap_schema = OpenAISchema() |> TracerSchema |> SaverSchema\nconv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!", model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)\n\n# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

If you wanted to enable this automatically for models you use, you can do it like this:

julia
PT.register_model!(; name= "gpt-3.5-turbo", schema=OpenAISchema() |> TracerSchema |> SaverSchema)

Any subsequent calls model="gpt-3.5-turbo" will automatically capture metadata and save the conversation to the disk.

To provide logging file path explicitly, use the tracer_kwargs:

julia
conv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!", model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true,\n    tracer_kwargs=(; log_file_path="my_logs/my_log.json"))

source


# PromptingTools.ShareGPTSchemaType.
julia
ShareGPTSchema <: AbstractShareGPTSchema

Frequently used schema for finetuning LLMs. Conversations are recorded as a vector of dicts with keys from and value (similar to OpenAI).

source


# PromptingTools.TestEchoAnthropicSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoGoogleSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaManagedSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOpenAISchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TogetherOpenAISchemaType.
julia
TogetherOpenAISchema

Schema to call the Together.ai API.

Links:

Requires one environment variables to be set:

source


# PromptingTools.TracerMessageType.
julia
TracerMessage{T <: Union{AbstractChatMessage, AbstractDataMessage}} <: AbstractTracerMessage

A mutable wrapper message designed for tracing the flow of messages through the system, allowing for iterative updates and providing additional metadata for observability.

Fields

This structure is particularly useful for debugging, monitoring, and auditing the flow of messages in systems that involve complex interactions or asynchronous processing.

All fields are optional besides the object.

Useful methods: pprint (pretty prints the underlying message), unwrap (to get the object out of tracer), align_tracer! (to set all shared IDs in a vector of tracers to the same), istracermessage to check if given message is an AbstractTracerMessage

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")\nmsg # isa TracerMessage\nmsg.content # access content like if it was the message

source


# PromptingTools.TracerMessageLikeType.
julia
TracerMessageLike{T <: Any} <: AbstractTracer

A mutable structure designed for general-purpose tracing within the system, capable of handling any type of object that is part of the AI Conversation. It provides a flexible way to track and annotate objects as they move through different parts of the system, facilitating debugging, monitoring, and auditing.

Fields

This structure is particularly useful for systems that involve complex interactions or asynchronous processing, where tracking the flow and transformation of objects is crucial.

All fields are optional besides the object.

source


# PromptingTools.TracerSchemaType.
julia
TracerSchema <: AbstractTracerSchema

A schema designed to wrap another schema, enabling pre- and post-execution callbacks for tracing and additional functionalities. This type is specifically utilized within the TracerMessage type to trace the execution flow, facilitating observability and debugging in complex conversational AI systems.

The TracerSchema acts as a middleware, allowing developers to insert custom logic before and after the execution of the primary schema's functionality. This can include logging, performance measurement, or any other form of tracing required to understand or improve the execution flow.

TracerSchema automatically wraps messages in TracerMessage type, which has several important fields, eg,

See also: meta, unwrap, SaverSchema, initialize_tracer, finalize_tracer

Example

julia
wrap_schema = TracerSchema(OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model="gpt-4")\n# output type should be TracerMessage\nmsg isa TracerMessage

You can define your own tracer schema and the corresponding methods: initialize_tracer, finalize_tracer. See src/llm_tracer.jl

source


# PromptingTools.UserMessageWithImagesMethod.

Construct UserMessageWithImages with 1 or more images. Images can be either URLs or local paths.

source


# PromptingTools.X123Type.

With docstring

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::CustomOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="http://localhost:8080", kwargs...)

Dispatch to the OpenAI.create_chat function, for any OpenAI-compatible API.

It expects url keyword argument. Provide it to the aigenerate function via api_kwargs=(; url="my-url")

It will forward your query to the "chat/completions" endpoint of the base URL that you provided (=url).

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::LocalServerOpenAISchema,\n    api_key::AbstractString,\n    model::AbstractString,\n    conversation;\n    url::String = "http://localhost:8080",\n    kwargs...)

Dispatch to the OpenAI.create_chat function, but with the LocalServer API parameters, ie, defaults to url specified by the LOCAL_SERVERpreference. See?PREFERENCES

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::MistralOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="https://api.mistral.ai/v1", kwargs...)

Dispatch to the OpenAI.create_chat function, but with the MistralAI API parameters.

It tries to access the MISTRALAI_API_KEY ENV variable, but you can also provide it via the api_key keyword argument.

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiclassify call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


', 69); const _hoisted_111 = { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }; const _hoisted_112 = /* @__PURE__ */ createBaseVNode("a", { id: 'PromptingTools.aiclassify-Union{Tuple{T}, Tuple{PromptingTools.AbstractOpenAISchema, Union{AbstractString, PromptingTools.AbstractMessage, Vector{<:PromptingTools.AbstractMessage}}}} where T<:Union{AbstractString, Tuple{var"#s89", var"#s88"} where {var"#s89"<:AbstractString, var"#s88"<:AbstractString}}', @@ -36,8 +36,8 @@ const _hoisted_113 = /* @__PURE__ */ createBaseVNode("b", null, [ const _hoisted_114 = /* @__PURE__ */ createBaseVNode("i", null, "Method", -1); const _hoisted_115 = /* @__PURE__ */ createStaticVNode('
julia
aiclassify(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    choices::AbstractVector{T} = ["true", "false", "unknown"],\n    api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...) where {T <: Union{AbstractString, Tuple{<:AbstractString, <:AbstractString}}}

Classifies the given prompt/statement into an arbitrary list of choices, which must be only the choices (vector of strings) or choices and descriptions are provided (vector of tuples, ie, ("choice","description")).

It's quick and easy option for "routing" and similar use cases, as it exploits the logit bias trick and outputs only 1 token. classify into an arbitrary list of categories (including with descriptions). It's quick and easy option for "routing" and similar use cases, as it exploits the logit bias trick, so it outputs only 1 token.

', 3); const _hoisted_118 = /* @__PURE__ */ createBaseVNode("code", null, "choices", -1); -const _hoisted_119 = /* @__PURE__ */ createStaticVNode('

Choices are rewritten into an enumerated list and mapped to a few known OpenAI tokens (maximum of 40 choices supported). Mapping of token IDs for GPT3.5/4 are saved in variable OPENAI_TOKEN_IDS.

It uses Logit bias trick and limits the output to 1 token to force the model to output only true/false/unknown. Credit for the idea goes to AAAzzam.

Arguments

Example

Given a user input, pick one of the two provided categories:

julia
choices = ["animal", "plant"]\ninput = "Palm tree"\naiclassify(:InputClassifier; choices, input)

Choices with descriptions provided as tuples:

julia
choices = [("A", "any animal or creature"), ("P", "any plant or tree"), ("O", "anything else")]\n\n# try the below inputs:\ninput = "spider" # -> returns "A" for any animal or creature\ninput = "daphodil" # -> returns "P" for any plant or tree\ninput = "castle" # -> returns "O" for everything else\naiclassify(:InputClassifier; choices, input)

You could also use this function for routing questions to different endpoints (notice the different template and placeholder used), eg,

julia
choices = [("A", "any question about animal or creature"), ("P", "any question about plant or tree"), ("O", "anything else")]\nquestion = "how many spiders are there?"\nmsg = aiclassify(:QuestionRouter; choices, question)\n# "A"

You can still use a simple true/false classification:

julia
aiclassify("Is two plus two four?") # true\naiclassify("Is two plus three a vegetable on Mars?") # false

aiclassify returns only true/false/unknown. It's easy to get the proper Bool output type out with tryparse, eg,

julia
tryparse(Bool, aiclassify("Is two plus two four?")) isa Bool # true

Output of type Nothing marks that the model couldn't classify the statement as true/false.

Ideally, we would like to re-use some helpful system prompt to get more accurate responses. For this reason we have templates, eg, :JudgeIsItTrue. By specifying the template, we can provide our statement as the expected variable (it in this case) See that the model now correctly classifies the statement as "unknown".

julia
aiclassify(:JudgeIsItTrue; it = "Is two plus three a vegetable on Mars?") # unknown

For better results, use higher quality models like gpt4, eg,

julia
aiclassify(:JudgeIsItTrue;\n    it = "If I had two apples and I got three more, I have five apples now.",\n    model = "gpt4") # true

source

', 21); -const _hoisted_140 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.aiembedFunction.
julia
aiembed(tracer_schema::AbstractTracerSchema,\n    doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}}, postprocess::Function = identity;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiembed call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOllamaManagedSchema,\n        doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},\n        postprocess::F = identity;\n        verbose::Bool = true,\n        api_key::String = "",\n        model::String = MODEL_EMBEDDING,\n        http_kwargs::NamedTuple = (retry_non_idempotent = true,\n                                   retries = 5,\n                                   readtimeout = 120),\n        api_kwargs::NamedTuple = NamedTuple(),\n        kwargs...) where {F <: Function}

The aiembed function generates embeddings for the given input using a specified model and returns a message object containing the embeddings, status, token count, and elapsed time.

Arguments

Returns

Note: Ollama API currently does not return the token count, so it's set to (0,0)

Example

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, "Hello World"; model="openhermes2.5-mistral")\nmsg.content # 4096-element JSON3.Array{Float64...

We can embed multiple strings at once and they will be hcat into a matrix (ie, each column corresponds to one string)

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, ["Hello World", "How are you?"]; model="openhermes2.5-mistral")\nmsg.content # 4096×2 Matrix{Float64}:

If you plan to calculate the cosine distance between embeddings, you can normalize them first:

julia
const PT = PromptingTools\nusing LinearAlgebra\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, ["embed me", "and me too"], LinearAlgebra.normalize; model="openhermes2.5-mistral")\n\n# calculate cosine distance between the two normalized embeddings as a simple dot product\nmsg.content' * msg.content[:, 1] # [1.0, 0.34]

Similarly, you can use the postprocess argument to materialize the data from JSON3.Object by using postprocess = copy

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, "Hello World", copy; model="openhermes2.5-mistral")\nmsg.content # 4096-element Vector{Float64}

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOpenAISchema,\n        doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},\n        postprocess::F = identity;\n        verbose::Bool = true,\n        api_key::String = OPENAI_API_KEY,\n        model::String = MODEL_EMBEDDING, \n        http_kwargs::NamedTuple = (retry_non_idempotent = true,\n                                   retries = 5,\n                                   readtimeout = 120),\n        api_kwargs::NamedTuple = NamedTuple(),\n        kwargs...) where {F <: Function}

The aiembed function generates embeddings for the given input using a specified model and returns a message object containing the embeddings, status, token count, and elapsed time.

Arguments

Returns

Example

julia
msg = aiembed("Hello World")\nmsg.content # 1536-element JSON3.Array{Float64...

We can embed multiple strings at once and they will be hcat into a matrix (ie, each column corresponds to one string)

julia
msg = aiembed(["Hello World", "How are you?"])\nmsg.content # 1536×2 Matrix{Float64}:

If you plan to calculate the cosine distance between embeddings, you can normalize them first:

julia
using LinearAlgebra\nmsg = aiembed(["embed me", "and me too"], LinearAlgebra.normalize)\n\n# calculate cosine distance between the two normalized embeddings as a simple dot product\nmsg.content' * msg.content[:, 1] # [1.0, 0.787]

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE;\n    return_type::Type,\n    verbose::Bool = true,\n    api_key::String = ANTHROPIC_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Extract required information (defined by a struct return_type) from the provided prompt by leveraging Anthropic's function calling mode.

This is a perfect solution for extracting structured information from text (eg, extract organization names in news articles, etc.).

Read best practics here.

It's effectively a light wrapper around aigenerate call, which requires additional keyword argument return_type to be provided and will enforce the model outputs to adhere to it.

Arguments

Returns

If return_all=false (default):

If return_all=true:

See also: function_call_signature, MaybeExtract, ItemsExtract, aigenerate

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

"Person's age, height, and weight."\nstruct MyMeasurement\n    age::Int # required\n    height::Union{Int,Nothing} # optional\n    weight::Union{Nothing,Float64} # optional\nend\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall."; model="claudeh", return_type=MyMeasurement)\n# PromptingTools.DataMessage(MyMeasurement)\nmsg.content\n# MyMeasurement(30, 180, 80.0)

The fields that allow Nothing are marked as optional in the schema:

msg = aiextract("James is 30."; model="claudeh", return_type=MyMeasurement)\n# MyMeasurement(30, nothing, nothing)

If there are multiple items you want to extract, define a wrapper struct to get a Vector of MyMeasurement:

struct ManyMeasurements\n    measurements::Vector{MyMeasurement}\nend\n\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; model="claudeh", return_type=ManyMeasurements)\n\nmsg.content.measurements\n# 2-element Vector{MyMeasurement}:\n#  MyMeasurement(30, 180, 80.0)\n#  MyMeasurement(19, 190, nothing)

Or you can use the convenience wrapper ItemsExtract to extract multiple measurements (zero, one or more):

julia
using PromptingTools: ItemsExtract\n\nreturn_type = ItemsExtract{MyMeasurement}\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; model="claudeh", return_type)\n\nmsg.content.items # see the extracted items

Or if you want your extraction to fail gracefully when data isn't found, use MaybeExtract{T} wrapper (this trick is inspired by the Instructor package!):

using PromptingTools: MaybeExtract\n\nreturn_type = MaybeExtract{MyMeasurement}\n# Effectively the same as:\n# struct MaybeExtract{T}\n#     result::Union{T, Nothing} // The result of the extraction\n#     error::Bool // true if a result is found, false otherwise\n#     message::Union{Nothing, String} // Only present if no result is found, should be short and concise\n# end\n\n# If LLM extraction fails, it will return a Dict with `error` and `message` fields instead of the result!\nmsg = aiextract("Extract measurements from the text: I am giraffe"; model="claudeo", return_type)\nmsg.content\n# Output: MaybeExtract{MyMeasurement}(nothing, true, "I'm sorry, but your input of "I am giraffe" does not contain any information about a person's age, height or weight measurements that I can extract. To use this tool, please provide a statement that includes at least the person's age, and optionally their height in inches and weight in pounds. Without that information, I am unable to extract the requested measurements.")

That way, you can handle the error gracefully and get a reason why extraction failed (in msg.content.message).

However, this can fail with weaker models like claudeh, so we can apply some of our prompt templates with embedding reasoning step:

julia
msg = aiextract(:ExtractDataCoTXML; data="I am giraffe", model="claudeh", return_type)\nmsg.content\n# Output: MaybeExtract{MyMeasurement}(nothing, true, "The provided data does not contain the expected information about a person's age, height, and weight.")

Note that when using a prompt template, we provide data for the extraction as the corresponding placeholder (see aitemplates("extract") for documentation of this template).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people! ```

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    return_type::Type,\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = (;\n        tool_choice = "exact"),\n    kwargs...)

Extract required information (defined by a struct return_type) from the provided prompt by leveraging OpenAI function calling mode.

This is a perfect solution for extracting structured information from text (eg, extract organization names in news articles, etc.)

It's effectively a light wrapper around aigenerate call, which requires additional keyword argument return_type to be provided and will enforce the model outputs to adhere to it.

Arguments

Returns

If return_all=false (default):

If return_all=true:

See also: function_call_signature, MaybeExtract, ItemsExtract, aigenerate

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

"Person's age, height, and weight."\nstruct MyMeasurement\n    age::Int # required\n    height::Union{Int,Nothing} # optional\n    weight::Union{Nothing,Float64} # optional\nend\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall."; return_type=MyMeasurement)\n# PromptingTools.DataMessage(MyMeasurement)\nmsg.content\n# MyMeasurement(30, 180, 80.0)

The fields that allow Nothing are marked as optional in the schema:

msg = aiextract("James is 30."; return_type=MyMeasurement)\n# MyMeasurement(30, nothing, nothing)

If there are multiple items you want to extract, define a wrapper struct to get a Vector of MyMeasurement:

struct ManyMeasurements\n    measurements::Vector{MyMeasurement}\nend\n\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; return_type=ManyMeasurements)\n\nmsg.content.measurements\n# 2-element Vector{MyMeasurement}:\n#  MyMeasurement(30, 180, 80.0)\n#  MyMeasurement(19, 190, nothing)

Or you can use the convenience wrapper ItemsExtract to extract multiple measurements (zero, one or more):

julia
using PromptingTools: ItemsExtract\n\nreturn_type = ItemsExtract{MyMeasurement}\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; return_type)\n\nmsg.content.items # see the extracted items

Or if you want your extraction to fail gracefully when data isn't found, use MaybeExtract{T} wrapper (this trick is inspired by the Instructor package!):

using PromptingTools: MaybeExtract\n\nreturn_type = MaybeExtract{MyMeasurement}\n# Effectively the same as:\n# struct MaybeExtract{T}\n#     result::Union{T, Nothing} // The result of the extraction\n#     error::Bool // true if a result is found, false otherwise\n#     message::Union{Nothing, String} // Only present if no result is found, should be short and concise\n# end\n\n# If LLM extraction fails, it will return a Dict with `error` and `message` fields instead of the result!\nmsg = aiextract("Extract measurements from the text: I am giraffe"; return_type)\nmsg.content\n# MaybeExtract{MyMeasurement}(nothing, true, "I'm sorry, but I can only assist with human measurements.")

That way, you can handle the error gracefully and get a reason why extraction failed (in msg.content.message).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people!

Some non-OpenAI providers require a different specification of the "tool choice" than OpenAI. For example, to use Mistral models ("mistrall" for mistral large), do:

julia
"Some fruit"\nstruct Fruit\n    name::String\nend\naiextract("I ate an apple",return_type=Fruit,api_kwargs=(;tool_choice="any"),model="mistrall")\n# Notice two differences: 1) struct MUST have a docstring, 2) tool_choice is set explicitly set to "any"

source


# PromptingTools.aiextractMethod.
julia
aiextract(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiextract call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = ANTHROPIC_API_KEY, model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the Anthropic API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.AnthropicSchema() # We need to explicit if we want Anthropic, otherwise OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="claudeh") #claudeh is the model alias for Claude 3 Haiku, fast and cheap model\n[ Info: Tokens: 21 @ Cost: $0.0 in 0.6 seconds\nAIMessage("Hello!")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed, :cost, :log_prob, :finish_reason, :run_id, :sample_id, :_type)\nmsg.content # "Hello!

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) Alternatively, if you provide a known model name or alias (eg, claudeh for Claude 3 Haiku - see MODEL_REGISTRY), the schema will be inferred from the model name.

We will use Claude 3 Haiku model for the following examples, so not need to specify the schema. See also "claudeo" and "claudes" for other Claude 3 models.

You can use string interpolation:

julia
const PT = PromptingTools\n\na = 1\nmsg=aigenerate("What is `$a+$a`?"; model="claudeh")\nmsg.content # "The answer to `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}. Claude models are good at completeling conversations that ended with an AIMessage (they just continue where it left off):

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?"),\n    PT.AIMessage("Hmm, strong the attachment is,")]\n\nmsg = aigenerate(conversation; model="claudeh")\nAIMessage("I sense. But unhealthy it may be. Your iPhone, a tool it is, not a living being. Feelings of affection, understandable they are, <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractGoogleSchema, prompt::ALLOWED_PROMPT_TYPE;\n    verbose::Bool = true,\n    api_key::String = GOOGLE_API_KEY,\n    model::String = "gemini-pro", return_all::Bool = false, dry_run::Bool = false,\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the Google Gemini API. Get the API key here.

Note:

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aiembed, aiclassify, aiextract, aiscan, aitemplates

Example

Simple hello world to test the API:

julia
result = aigenerate("Say Hi!"; model="gemini-pro")\n# AIMessage("Hi there! 👋 I'm here to help you with any questions or tasks you may have. Just let me know what you need, and I'll do my best to assist you.")

result is an AIMessage object. Access the generated string via content property:

julia
typeof(result) # AIMessage{SubString{String}}\npropertynames(result) # (:content, :status, :tokens, :elapsed\nresult.content # "Hi there! ...

___ You can use string interpolation and alias "gemini":

julia
a = 1\nmsg=aigenerate("What is `$a+$a`?"; model="gemini")\nmsg.content # "1+1 is 2."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\nmsg=aigenerate(conversation; model="gemini")\n# AIMessage("Young Padawan, you have stumbled into a dangerous path.... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = "", model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str, aiembed

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema() # We need to explicit if we want Ollama, OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="openhermes2.5-mistral")\n# [ Info: Tokens: 69 in 0.9 seconds\n# AIMessage("Hello! How can I assist you today?")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed\nmsg.content # "Hello! How can I assist you today?"

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) ___ You can use string interpolation:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\na = 1\nmsg=aigenerate(schema, "What is `$a+$a`?"; model="openhermes2.5-mistral")\nmsg.content # "The result of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\n\nmsg = aigenerate(schema, conversation; model="openhermes2.5-mistral")\n# [ Info: Tokens: 111 in 2.1 seconds\n# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = "", model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str, aiembed

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema() # We need to explicit if we want Ollama, OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="openhermes2.5-mistral")\n# [ Info: Tokens: 69 in 0.9 seconds\n# AIMessage("Hello! How can I assist you today?")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed\nmsg.content # "Hello! How can I assist you today?"

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) ___ You can use string interpolation:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\na = 1\nmsg=aigenerate(schema, "What is `$a+$a`?"; model="openhermes2.5-mistral")\nmsg.content # "The result of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\n\nmsg = aigenerate(schema, conversation; model="openhermes2.5-mistral")\n# [ Info: Tokens: 111 in 2.1 seconds\n# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT, return_all::Bool = false, dry_run::Bool = false,\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aiembed, aiclassify, aiextract, aiscan, aitemplates

Example

Simple hello world to test the API:

julia
result = aigenerate("Say Hi!")\n# [ Info: Tokens: 29 @ Cost: $0.0 in 1.0 seconds\n# AIMessage("Hello! How can I assist you today?")

result is an AIMessage object. Access the generated string via content property:

julia
typeof(result) # AIMessage{SubString{String}}\npropertynames(result) # (:content, :status, :tokens, :elapsed\nresult.content # "Hello! How can I assist you today?"

___ You can use string interpolation:

julia
a = 1\nmsg=aigenerate("What is `$a+$a`?")\nmsg.content # "The sum of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\nmsg=aigenerate(conversation)\n# AIMessage("Ah, strong feelings you have for your iPhone. A Jedi's path, this is not... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", return_all::Bool = false, kwargs...)

Wraps the normal aigenerate call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")\nmsg isa TracerMessage # true\nmsg.content # access content like if it was the message\nPT.pprint(msg) # pretty-print the message

It works on a vector of messages and converts only the non-tracer ones, eg,

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nconv = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t", return_all = true)\nall(PT.istracermessage, conv) #true

source


# PromptingTools.aiimageMethod.
julia
aiimage(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    image_size::AbstractString = "1024x1024",\n    image_quality::AbstractString = "standard",\n    image_n::Integer = 1,\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_IMAGE_GENERATION,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generates an image from the provided prompt. If multiple "messages" are provided in prompt, it extracts the text ONLY from the last message!

Image (or the reference to it) will be returned in a DataMessage.content, the format will depend on the api_kwargs.response_format you set.

Can be used for generating images of varying quality and style with dall-e-* models. This function DOES NOT SUPPORT multi-turn conversations (ie, do not provide previous conversation via conversation argument).

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aiscan, aitemplates

Notes

Example

Generate an image:

julia
# You can experiment with `image_size`, `image_quality` kwargs!\nmsg = aiimage("A white cat on a car")\n\n# Download the image into a file\nusing Downloads\nDownloads.download(msg.content[:url], "cat_on_car.png")\n\n# You can also see the revised prompt that DALL-E 3 used\nmsg.content[:revised_prompt]\n# Output: "Visualize a pristine white cat gracefully perched atop a shiny car. \n# The cat's fur is stark white and its eyes bright with curiosity. \n# As for the car, it could be a contemporary sedan, glossy and in a vibrant color. \n# The scene could be set under the blue sky, enhancing the contrast between the white cat, the colorful car, and the bright blue sky."

Note that you MUST download any URL-based images within 60 minutes. The links will become inactive.

If you wanted to download image directly into the DataMessage, provide response_format="b64_json" in api_kwargs:

julia
msg = aiimage("A white cat on a car"; image_quality="hd", api_kwargs=(; response_format="b64_json"))\n\n# Then you need to use Base64 package to decode it and save it to a file:\nusing Base64\nwrite("cat_on_car_hd.png", base64decode(msg.content[:b64_json]));

source


# PromptingTools.aiimageMethod.
julia
aiimage(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiimage call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOllamaSchema,] prompt::ALLOWED_PROMPT_TYPE; \nimage_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nattach_to_latest::Bool = true,\nverbose::Bool = true, api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (;\n        retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), \n    api_kwargs::NamedTuple = = (; max_tokens = 2500),\n    kwargs...)

Scans the provided image (image_url or image_path) with the goal provided in the prompt.

Can be used for many multi-modal tasks, such as: OCR (transcribe text in the image), image captioning, image classification, etc.

It's effectively a light wrapper around aigenerate call, which uses additional keyword arguments image_url, image_path, image_detail to be provided. At least one image source (url or path) must be provided.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aitemplates

Notes

Example

Describe the provided image:

julia
msg = aiscan("Describe the image"; image_path="julia.png", model="bakllava")\n# [ Info: Tokens: 1141 @ Cost: $0.0117 in 2.2 seconds\n# AIMessage("The image shows a logo consisting of the word "julia" written in lowercase")

You can provide multiple images at once as a vector and ask for "low" level of detail (cheaper):

julia
msg = aiscan("Describe the image"; image_path=["julia.png","python.png"] model="bakllava")

You can use this function as a nice and quick OCR (transcribe text in the image) with a template :OCRTask. Let's transcribe some SQL code from a screenshot (no more re-typing!):

julia
using Downloads\n# Screenshot of some SQL code -- we cannot use image_url directly, so we need to download it first\nimage_url = "https://www.sqlservercentral.com/wp-content/uploads/legacy/8755f69180b7ac7ee76a69ae68ec36872a116ad4/24622.png"\nimage_path = Downloads.download(image_url)\nmsg = aiscan(:OCRTask; image_path, model="bakllava", task="Transcribe the SQL code in the image.", api_kwargs=(; max_tokens=2500))\n\n# AIMessage("```sql\n# update Orders <continue>\n\n# You can add syntax highlighting of the outputs via Markdown\nusing Markdown\nmsg.content |> Markdown.parse

Local models cannot handle image URLs directly (image_url), so you need to download the image first and provide it as image_path:

julia
using Downloads\nimage_path = Downloads.download(image_url)

Notice that we set max_tokens = 2500. If your outputs seem truncated, it might be because the default maximum tokens on the server is set too low!

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOpenAISchema,] prompt::ALLOWED_PROMPT_TYPE; \nimage_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_detail::AbstractString = "auto",\nattach_to_latest::Bool = true,\nverbose::Bool = true, api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (;\n        retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), \n    api_kwargs::NamedTuple = = (; max_tokens = 2500),\n    kwargs...)

Scans the provided image (image_url or image_path) with the goal provided in the prompt.

Can be used for many multi-modal tasks, such as: OCR (transcribe text in the image), image captioning, image classification, etc.

It's effectively a light wrapper around aigenerate call, which uses additional keyword arguments image_url, image_path, image_detail to be provided. At least one image source (url or path) must be provided.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aitemplates

Notes

Example

Describe the provided image:

julia
msg = aiscan("Describe the image"; image_path="julia.png", model="gpt4v")\n# [ Info: Tokens: 1141 @ Cost: $0.0117 in 2.2 seconds\n# AIMessage("The image shows a logo consisting of the word "julia" written in lowercase")

You can provide multiple images at once as a vector and ask for "low" level of detail (cheaper):

julia
msg = aiscan("Describe the image"; image_path=["julia.png","python.png"], image_detail="low", model="gpt4v")

You can use this function as a nice and quick OCR (transcribe text in the image) with a template :OCRTask. Let's transcribe some SQL code from a screenshot (no more re-typing!):

julia
# Screenshot of some SQL code\nimage_url = "https://www.sqlservercentral.com/wp-content/uploads/legacy/8755f69180b7ac7ee76a69ae68ec36872a116ad4/24622.png"\nmsg = aiscan(:OCRTask; image_url, model="gpt4v", task="Transcribe the SQL code in the image.", api_kwargs=(; max_tokens=2500))\n\n# [ Info: Tokens: 362 @ Cost: $0.0045 in 2.5 seconds\n# AIMessage("```sql\n# update Orders <continue>\n\n# You can add syntax highlighting of the outputs via Markdown\nusing Markdown\nmsg.content |> Markdown.parse

Notice that we enforce max_tokens = 2500. That's because OpenAI seems to default to ~300 tokens, which provides incomplete outputs. Hence, we set this value to 2500 as a default. If you still get truncated outputs, increase this value.

source


# PromptingTools.aiscanMethod.
julia
aiscan(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiscan call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aitemplatesFunction.
julia
aitemplates

Find easily the most suitable templates for your use case.

You can search by:

Keyword Arguments

Examples

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")\n# Will surface one specific template\n# 1-element Vector{AITemplateMetadata}:\n# PromptingTools.AITemplateMetadata\n#   name: Symbol JuliaExpertAsk\n#   description: String "For asking questions about Julia language. Placeholders: `ask`"\n#   version: String "1"\n#   wordcount: Int64 237\n#   variables: Array{Symbol}((1,))\n#   system_preview: String "You are a world-class Julia language programmer with the knowledge of the latest syntax. Your commun"\n#   user_preview: String "# Question\n\n{{ask}}"\n#   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")\n# 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames\ntmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name or description fields partially match the query_key::String in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates where provided query_key::Regex matches either of name, description or previews or User or System messages in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name::Symbol exactly matches the query_name::Symbol in TEMPLATE_METADATA.

source


# PromptingTools.align_tracer!Method.

Aligns multiple tracers in the vector to have the same Parent and Thread IDs as the first item.

source


# PromptingTools.align_tracer!Method.

Aligns the tracer message, updating the parent_id, thread_id. Often used to align multiple tracers in the vector to have the same IDs.

source


# PromptingTools.anthropic_apiFunction.
julia
anthropic_api(prompt_schema::AbstractAnthropicSchema,\n    messages::Vector{<:AbstractMessage} = AbstractMessage[];\n    prompt::Union{AbstractString, Nothing} = nothing;\n    system::Union{Nothing, AbstractString} = nothing,\n    endpoint::String = "generate",\n    model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),\n    stream::Bool = false,\n    url::String = "localhost", port::Int = 11434,\n    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

source


# PromptingTools.auth_headerMethod.
julia
auth_header(api_key::Union{Nothing, AbstractString};\n    bearer::Bool = true,\n    x_api_key::Bool = false,\n    extra_headers::AbstractVector = Vector{\n        Pair{String, String},\n    }[],\n    kwargs...)

Creates the authentication headers for any API request. Assumes that the communication is done in JSON format.

Arguments

source


# PromptingTools.build_template_metadataFunction.
julia
build_template_metadata(\n    template::AbstractVector{<:AbstractMessage}, template_name::Symbol,\n    metadata_msgs::AbstractVector{<:MetadataMessage} = MetadataMessage[]; max_length::Int = 100)

Builds AITemplateMetadata for a given template based on the messages in template and other information.

AITemplateMetadata is a helper struct for easy searching and reviewing of templates via aitemplates().

Note: Assumes that there is only ever one UserMessage and SystemMessage (concatenates them together)

source


# PromptingTools.call_costMethod.
julia
call_cost(prompt_tokens::Int, completion_tokens::Int, model::String;\n    cost_of_token_prompt::Number = get(MODEL_REGISTRY,\n        model,\n        (; cost_of_token_prompt = 0.0)).cost_of_token_prompt,\n    cost_of_token_generation::Number = get(MODEL_REGISTRY, model,\n        (; cost_of_token_generation = 0.0)).cost_of_token_generation)\n\ncall_cost(msg, model::String)

Calculate the cost of a call based on the number of tokens in the message and the cost per token.

Arguments

Returns

Examples

julia
# Assuming MODEL_REGISTRY is set up with appropriate costs\nMODEL_REGISTRY = Dict(\n    "model1" => (cost_of_token_prompt = 0.05, cost_of_token_generation = 0.10),\n    "model2" => (cost_of_token_prompt = 0.07, cost_of_token_generation = 0.02)\n)\n\ncost1 = call_cost(10, 20, "model1")\n\n# from message\nmsg1 = AIMessage(;tokens=[10, 20])  # 10 prompt tokens, 20 generation tokens\ncost1 = call_cost(msg1, "model1")\n# cost1 = 10 * 0.05 + 20 * 0.10 = 2.5\n\n# Using custom token costs\ncost2 = call_cost(10, 20, "model3"; cost_of_token_prompt = 0.08, cost_of_token_generation = 0.12)\n# cost2 = 10 * 0.08 + 20 * 0.12 = 3.2

source


# PromptingTools.call_cost_alternativeMethod.

call_cost_alternative()

Alternative cost calculation. Used to calculate cost of image generation with DALL-E 3 and similar.

source


', 57); +const _hoisted_119 = /* @__PURE__ */ createStaticVNode('

Choices are rewritten into an enumerated list and mapped to a few known OpenAI tokens (maximum of 40 choices supported). Mapping of token IDs for GPT3.5/4 are saved in variable OPENAI_TOKEN_IDS.

It uses Logit bias trick and limits the output to 1 token to force the model to output only true/false/unknown. Credit for the idea goes to AAAzzam.

Arguments

Example

Given a user input, pick one of the two provided categories:

julia
choices = ["animal", "plant"]\ninput = "Palm tree"\naiclassify(:InputClassifier; choices, input)

Choices with descriptions provided as tuples:

julia
choices = [("A", "any animal or creature"), ("P", "any plant or tree"), ("O", "anything else")]\n\n# try the below inputs:\ninput = "spider" # -> returns "A" for any animal or creature\ninput = "daphodil" # -> returns "P" for any plant or tree\ninput = "castle" # -> returns "O" for everything else\naiclassify(:InputClassifier; choices, input)

You could also use this function for routing questions to different endpoints (notice the different template and placeholder used), eg,

julia
choices = [("A", "any question about animal or creature"), ("P", "any question about plant or tree"), ("O", "anything else")]\nquestion = "how many spiders are there?"\nmsg = aiclassify(:QuestionRouter; choices, question)\n# "A"

You can still use a simple true/false classification:

julia
aiclassify("Is two plus two four?") # true\naiclassify("Is two plus three a vegetable on Mars?") # false

aiclassify returns only true/false/unknown. It's easy to get the proper Bool output type out with tryparse, eg,

julia
tryparse(Bool, aiclassify("Is two plus two four?")) isa Bool # true

Output of type Nothing marks that the model couldn't classify the statement as true/false.

Ideally, we would like to re-use some helpful system prompt to get more accurate responses. For this reason we have templates, eg, :JudgeIsItTrue. By specifying the template, we can provide our statement as the expected variable (it in this case) See that the model now correctly classifies the statement as "unknown".

julia
aiclassify(:JudgeIsItTrue; it = "Is two plus three a vegetable on Mars?") # unknown

For better results, use higher quality models like gpt4, eg,

julia
aiclassify(:JudgeIsItTrue;\n    it = "If I had two apples and I got three more, I have five apples now.",\n    model = "gpt4") # true

source

', 21); +const _hoisted_140 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.aiembedFunction.
julia
aiembed(tracer_schema::AbstractTracerSchema,\n    doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}}, postprocess::Function = identity;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiembed call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOllamaManagedSchema,\n        doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},\n        postprocess::F = identity;\n        verbose::Bool = true,\n        api_key::String = "",\n        model::String = MODEL_EMBEDDING,\n        http_kwargs::NamedTuple = (retry_non_idempotent = true,\n                                   retries = 5,\n                                   readtimeout = 120),\n        api_kwargs::NamedTuple = NamedTuple(),\n        kwargs...) where {F <: Function}

The aiembed function generates embeddings for the given input using a specified model and returns a message object containing the embeddings, status, token count, and elapsed time.

Arguments

Returns

Note: Ollama API currently does not return the token count, so it's set to (0,0)

Example

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, "Hello World"; model="openhermes2.5-mistral")\nmsg.content # 4096-element JSON3.Array{Float64...

We can embed multiple strings at once and they will be hcat into a matrix (ie, each column corresponds to one string)

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, ["Hello World", "How are you?"]; model="openhermes2.5-mistral")\nmsg.content # 4096×2 Matrix{Float64}:

If you plan to calculate the cosine distance between embeddings, you can normalize them first:

julia
const PT = PromptingTools\nusing LinearAlgebra\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, ["embed me", "and me too"], LinearAlgebra.normalize; model="openhermes2.5-mistral")\n\n# calculate cosine distance between the two normalized embeddings as a simple dot product\nmsg.content' * msg.content[:, 1] # [1.0, 0.34]

Similarly, you can use the postprocess argument to materialize the data from JSON3.Object by using postprocess = copy

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nmsg = aiembed(schema, "Hello World", copy; model="openhermes2.5-mistral")\nmsg.content # 4096-element Vector{Float64}

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOpenAISchema,\n        doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},\n        postprocess::F = identity;\n        verbose::Bool = true,\n        api_key::String = OPENAI_API_KEY,\n        model::String = MODEL_EMBEDDING, \n        http_kwargs::NamedTuple = (retry_non_idempotent = true,\n                                   retries = 5,\n                                   readtimeout = 120),\n        api_kwargs::NamedTuple = NamedTuple(),\n        kwargs...) where {F <: Function}

The aiembed function generates embeddings for the given input using a specified model and returns a message object containing the embeddings, status, token count, and elapsed time.

Arguments

Returns

Example

julia
msg = aiembed("Hello World")\nmsg.content # 1536-element JSON3.Array{Float64...

We can embed multiple strings at once and they will be hcat into a matrix (ie, each column corresponds to one string)

julia
msg = aiembed(["Hello World", "How are you?"])\nmsg.content # 1536×2 Matrix{Float64}:

If you plan to calculate the cosine distance between embeddings, you can normalize them first:

julia
using LinearAlgebra\nmsg = aiembed(["embed me", "and me too"], LinearAlgebra.normalize)\n\n# calculate cosine distance between the two normalized embeddings as a simple dot product\nmsg.content' * msg.content[:, 1] # [1.0, 0.787]

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE;\n    return_type::Type,\n    verbose::Bool = true,\n    api_key::String = ANTHROPIC_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Extract required information (defined by a struct return_type) from the provided prompt by leveraging Anthropic's function calling mode.

This is a perfect solution for extracting structured information from text (eg, extract organization names in news articles, etc.).

Read best practics here.

It's effectively a light wrapper around aigenerate call, which requires additional keyword argument return_type to be provided and will enforce the model outputs to adhere to it.

Arguments

Returns

If return_all=false (default):

If return_all=true:

See also: function_call_signature, MaybeExtract, ItemsExtract, aigenerate

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

"Person's age, height, and weight."\nstruct MyMeasurement\n    age::Int # required\n    height::Union{Int,Nothing} # optional\n    weight::Union{Nothing,Float64} # optional\nend\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall."; model="claudeh", return_type=MyMeasurement)\n# PromptingTools.DataMessage(MyMeasurement)\nmsg.content\n# MyMeasurement(30, 180, 80.0)

The fields that allow Nothing are marked as optional in the schema:

msg = aiextract("James is 30."; model="claudeh", return_type=MyMeasurement)\n# MyMeasurement(30, nothing, nothing)

If there are multiple items you want to extract, define a wrapper struct to get a Vector of MyMeasurement:

struct ManyMeasurements\n    measurements::Vector{MyMeasurement}\nend\n\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; model="claudeh", return_type=ManyMeasurements)\n\nmsg.content.measurements\n# 2-element Vector{MyMeasurement}:\n#  MyMeasurement(30, 180, 80.0)\n#  MyMeasurement(19, 190, nothing)

Or you can use the convenience wrapper ItemsExtract to extract multiple measurements (zero, one or more):

julia
using PromptingTools: ItemsExtract\n\nreturn_type = ItemsExtract{MyMeasurement}\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; model="claudeh", return_type)\n\nmsg.content.items # see the extracted items

Or if you want your extraction to fail gracefully when data isn't found, use MaybeExtract{T} wrapper (this trick is inspired by the Instructor package!):

using PromptingTools: MaybeExtract\n\nreturn_type = MaybeExtract{MyMeasurement}\n# Effectively the same as:\n# struct MaybeExtract{T}\n#     result::Union{T, Nothing} // The result of the extraction\n#     error::Bool // true if a result is found, false otherwise\n#     message::Union{Nothing, String} // Only present if no result is found, should be short and concise\n# end\n\n# If LLM extraction fails, it will return a Dict with `error` and `message` fields instead of the result!\nmsg = aiextract("Extract measurements from the text: I am giraffe"; model="claudeo", return_type)\nmsg.content\n# Output: MaybeExtract{MyMeasurement}(nothing, true, "I'm sorry, but your input of "I am giraffe" does not contain any information about a person's age, height or weight measurements that I can extract. To use this tool, please provide a statement that includes at least the person's age, and optionally their height in inches and weight in pounds. Without that information, I am unable to extract the requested measurements.")

That way, you can handle the error gracefully and get a reason why extraction failed (in msg.content.message).

However, this can fail with weaker models like claudeh, so we can apply some of our prompt templates with embedding reasoning step:

julia
msg = aiextract(:ExtractDataCoTXML; data="I am giraffe", model="claudeh", return_type)\nmsg.content\n# Output: MaybeExtract{MyMeasurement}(nothing, true, "The provided data does not contain the expected information about a person's age, height, and weight.")

Note that when using a prompt template, we provide data for the extraction as the corresponding placeholder (see aitemplates("extract") for documentation of this template).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people! ```

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    return_type::Type,\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = (;\n        tool_choice = "exact"),\n    kwargs...)

Extract required information (defined by a struct return_type) from the provided prompt by leveraging OpenAI function calling mode.

This is a perfect solution for extracting structured information from text (eg, extract organization names in news articles, etc.)

It's effectively a light wrapper around aigenerate call, which requires additional keyword argument return_type to be provided and will enforce the model outputs to adhere to it.

Arguments

Returns

If return_all=false (default):

If return_all=true:

See also: function_call_signature, MaybeExtract, ItemsExtract, aigenerate

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

"Person's age, height, and weight."\nstruct MyMeasurement\n    age::Int # required\n    height::Union{Int,Nothing} # optional\n    weight::Union{Nothing,Float64} # optional\nend\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall."; return_type=MyMeasurement)\n# PromptingTools.DataMessage(MyMeasurement)\nmsg.content\n# MyMeasurement(30, 180, 80.0)

The fields that allow Nothing are marked as optional in the schema:

msg = aiextract("James is 30."; return_type=MyMeasurement)\n# MyMeasurement(30, nothing, nothing)

If there are multiple items you want to extract, define a wrapper struct to get a Vector of MyMeasurement:

struct ManyMeasurements\n    measurements::Vector{MyMeasurement}\nend\n\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; return_type=ManyMeasurements)\n\nmsg.content.measurements\n# 2-element Vector{MyMeasurement}:\n#  MyMeasurement(30, 180, 80.0)\n#  MyMeasurement(19, 190, nothing)

Or you can use the convenience wrapper ItemsExtract to extract multiple measurements (zero, one or more):

julia
using PromptingTools: ItemsExtract\n\nreturn_type = ItemsExtract{MyMeasurement}\nmsg = aiextract("James is 30, weighs 80kg. He's 180cm tall. Then Jack is 19 but really tall - over 190!"; return_type)\n\nmsg.content.items # see the extracted items

Or if you want your extraction to fail gracefully when data isn't found, use MaybeExtract{T} wrapper (this trick is inspired by the Instructor package!):

using PromptingTools: MaybeExtract\n\nreturn_type = MaybeExtract{MyMeasurement}\n# Effectively the same as:\n# struct MaybeExtract{T}\n#     result::Union{T, Nothing} // The result of the extraction\n#     error::Bool // true if a result is found, false otherwise\n#     message::Union{Nothing, String} // Only present if no result is found, should be short and concise\n# end\n\n# If LLM extraction fails, it will return a Dict with `error` and `message` fields instead of the result!\nmsg = aiextract("Extract measurements from the text: I am giraffe"; return_type)\nmsg.content\n# MaybeExtract{MyMeasurement}(nothing, true, "I'm sorry, but I can only assist with human measurements.")

That way, you can handle the error gracefully and get a reason why extraction failed (in msg.content.message).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people!

Some non-OpenAI providers require a different specification of the "tool choice" than OpenAI. For example, to use Mistral models ("mistrall" for mistral large), do:

julia
"Some fruit"\nstruct Fruit\n    name::String\nend\naiextract("I ate an apple",return_type=Fruit,api_kwargs=(;tool_choice="any"),model="mistrall")\n# Notice two differences: 1) struct MUST have a docstring, 2) tool_choice is set explicitly set to "any"

source


# PromptingTools.aiextractMethod.
julia
aiextract(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiextract call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = ANTHROPIC_API_KEY, model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the Anthropic API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.AnthropicSchema() # We need to explicit if we want Anthropic, otherwise OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="claudeh") #claudeh is the model alias for Claude 3 Haiku, fast and cheap model\n[ Info: Tokens: 21 @ Cost: $0.0 in 0.6 seconds\nAIMessage("Hello!")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed, :cost, :log_prob, :finish_reason, :run_id, :sample_id, :_type)\nmsg.content # "Hello!

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) Alternatively, if you provide a known model name or alias (eg, claudeh for Claude 3 Haiku - see MODEL_REGISTRY), the schema will be inferred from the model name.

We will use Claude 3 Haiku model for the following examples, so not need to specify the schema. See also "claudeo" and "claudes" for other Claude 3 models.

You can use string interpolation:

julia
const PT = PromptingTools\n\na = 1\nmsg=aigenerate("What is `$a+$a`?"; model="claudeh")\nmsg.content # "The answer to `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}. Claude models are good at completeling conversations that ended with an AIMessage (they just continue where it left off):

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?"),\n    PT.AIMessage("Hmm, strong the attachment is,")]\n\nmsg = aigenerate(conversation; model="claudeh")\nAIMessage("I sense. But unhealthy it may be. Your iPhone, a tool it is, not a living being. Feelings of affection, understandable they are, <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractGoogleSchema, prompt::ALLOWED_PROMPT_TYPE;\n    verbose::Bool = true,\n    api_key::String = GOOGLE_API_KEY,\n    model::String = "gemini-pro", return_all::Bool = false, dry_run::Bool = false,\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the Google Gemini API. Get the API key here.

Note:

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aiembed, aiclassify, aiextract, aiscan, aitemplates

Example

Simple hello world to test the API:

julia
result = aigenerate("Say Hi!"; model="gemini-pro")\n# AIMessage("Hi there! 👋 I'm here to help you with any questions or tasks you may have. Just let me know what you need, and I'll do my best to assist you.")

result is an AIMessage object. Access the generated string via content property:

julia
typeof(result) # AIMessage{SubString{String}}\npropertynames(result) # (:content, :status, :tokens, :elapsed\nresult.content # "Hi there! ...

___ You can use string interpolation and alias "gemini":

julia
a = 1\nmsg=aigenerate("What is `$a+$a`?"; model="gemini")\nmsg.content # "1+1 is 2."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\nmsg=aigenerate(conversation; model="gemini")\n# AIMessage("Young Padawan, you have stumbled into a dangerous path.... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = "", model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str, aiembed

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema() # We need to explicit if we want Ollama, OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="openhermes2.5-mistral")\n# [ Info: Tokens: 69 in 0.9 seconds\n# AIMessage("Hello! How can I assist you today?")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed\nmsg.content # "Hello! How can I assist you today?"

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) ___ You can use string interpolation:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\na = 1\nmsg=aigenerate(schema, "What is `$a+$a`?"; model="openhermes2.5-mistral")\nmsg.content # "The result of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\n\nmsg = aigenerate(schema, conversation; model="openhermes2.5-mistral")\n# [ Info: Tokens: 111 in 2.1 seconds\n# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,\n    api_key::String = "", model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = NamedTuple(), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

Use msg.content to access the extracted string.

See also: ai_str, aai_str, aiembed

Example

Simple hello world to test the API:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema() # We need to explicit if we want Ollama, OpenAISchema is the default\n\nmsg = aigenerate(schema, "Say hi!"; model="openhermes2.5-mistral")\n# [ Info: Tokens: 69 in 0.9 seconds\n# AIMessage("Hello! How can I assist you today?")

msg is an AIMessage object. Access the generated string via content property:

julia
typeof(msg) # AIMessage{SubString{String}}\npropertynames(msg) # (:content, :status, :tokens, :elapsed\nmsg.content # "Hello! How can I assist you today?"

Note: We need to be explicit about the schema we want to use. If we don't, it will default to OpenAISchema (=PT.DEFAULT_SCHEMA) ___ You can use string interpolation:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\na = 1\nmsg=aigenerate(schema, "What is `$a+$a`?"; model="openhermes2.5-mistral")\nmsg.content # "The result of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\nschema = PT.OllamaManagedSchema()\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\n\nmsg = aigenerate(schema, conversation; model="openhermes2.5-mistral")\n# [ Info: Tokens: 111 in 2.1 seconds\n# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT, return_all::Bool = false, dry_run::Bool = false,\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generate an AI response based on a given prompt using the OpenAI API.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aiembed, aiclassify, aiextract, aiscan, aitemplates

Example

Simple hello world to test the API:

julia
result = aigenerate("Say Hi!")\n# [ Info: Tokens: 29 @ Cost: $0.0 in 1.0 seconds\n# AIMessage("Hello! How can I assist you today?")

result is an AIMessage object. Access the generated string via content property:

julia
typeof(result) # AIMessage{SubString{String}}\npropertynames(result) # (:content, :status, :tokens, :elapsed\nresult.content # "Hello! How can I assist you today?"

___ You can use string interpolation:

julia
a = 1\nmsg=aigenerate("What is `$a+$a`?")\nmsg.content # "The sum of `1+1` is `2`."

___ You can provide the whole conversation or more intricate prompts as a Vector{AbstractMessage}:

julia
const PT = PromptingTools\n\nconversation = [\n    PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),\n    PT.UserMessage("I have feelings for my iPhone. What should I do?")]\nmsg=aigenerate(conversation)\n# AIMessage("Ah, strong feelings you have for your iPhone. A Jedi's path, this is not... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", return_all::Bool = false, kwargs...)

Wraps the normal aigenerate call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nmsg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")\nmsg isa TracerMessage # true\nmsg.content # access content like if it was the message\nPT.pprint(msg) # pretty-print the message

It works on a vector of messages and converts only the non-tracer ones, eg,

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())\nconv = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t", return_all = true)\nall(PT.istracermessage, conv) #true

source


# PromptingTools.aiimageMethod.
julia
aiimage(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;\n    image_size::AbstractString = "1024x1024",\n    image_quality::AbstractString = "standard",\n    image_n::Integer = 1,\n    verbose::Bool = true,\n    api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_IMAGE_GENERATION,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), api_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Generates an image from the provided prompt. If multiple "messages" are provided in prompt, it extracts the text ONLY from the last message!

Image (or the reference to it) will be returned in a DataMessage.content, the format will depend on the api_kwargs.response_format you set.

Can be used for generating images of varying quality and style with dall-e-* models. This function DOES NOT SUPPORT multi-turn conversations (ie, do not provide previous conversation via conversation argument).

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aiscan, aitemplates

Notes

Example

Generate an image:

julia
# You can experiment with `image_size`, `image_quality` kwargs!\nmsg = aiimage("A white cat on a car")\n\n# Download the image into a file\nusing Downloads\nDownloads.download(msg.content[:url], "cat_on_car.png")\n\n# You can also see the revised prompt that DALL-E 3 used\nmsg.content[:revised_prompt]\n# Output: "Visualize a pristine white cat gracefully perched atop a shiny car. \n# The cat's fur is stark white and its eyes bright with curiosity. \n# As for the car, it could be a contemporary sedan, glossy and in a vibrant color. \n# The scene could be set under the blue sky, enhancing the contrast between the white cat, the colorful car, and the bright blue sky."

Note that you MUST download any URL-based images within 60 minutes. The links will become inactive.

If you wanted to download image directly into the DataMessage, provide response_format="b64_json" in api_kwargs:

julia
msg = aiimage("A white cat on a car"; image_quality="hd", api_kwargs=(; response_format="b64_json"))\n\n# Then you need to use Base64 package to decode it and save it to a file:\nusing Base64\nwrite("cat_on_car_hd.png", base64decode(msg.content[:b64_json]));

source


# PromptingTools.aiimageMethod.
julia
aiimage(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiimage call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOllamaSchema,] prompt::ALLOWED_PROMPT_TYPE; \nimage_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nattach_to_latest::Bool = true,\nverbose::Bool = true, api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (;\n        retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), \n    api_kwargs::NamedTuple = = (; max_tokens = 2500),\n    kwargs...)

Scans the provided image (image_url or image_path) with the goal provided in the prompt.

Can be used for many multi-modal tasks, such as: OCR (transcribe text in the image), image captioning, image classification, etc.

It's effectively a light wrapper around aigenerate call, which uses additional keyword arguments image_url, image_path, image_detail to be provided. At least one image source (url or path) must be provided.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aitemplates

Notes

Example

Describe the provided image:

julia
msg = aiscan("Describe the image"; image_path="julia.png", model="bakllava")\n# [ Info: Tokens: 1141 @ Cost: $0.0117 in 2.2 seconds\n# AIMessage("The image shows a logo consisting of the word "julia" written in lowercase")

You can provide multiple images at once as a vector and ask for "low" level of detail (cheaper):

julia
msg = aiscan("Describe the image"; image_path=["julia.png","python.png"] model="bakllava")

You can use this function as a nice and quick OCR (transcribe text in the image) with a template :OCRTask. Let's transcribe some SQL code from a screenshot (no more re-typing!):

julia
using Downloads\n# Screenshot of some SQL code -- we cannot use image_url directly, so we need to download it first\nimage_url = "https://www.sqlservercentral.com/wp-content/uploads/legacy/8755f69180b7ac7ee76a69ae68ec36872a116ad4/24622.png"\nimage_path = Downloads.download(image_url)\nmsg = aiscan(:OCRTask; image_path, model="bakllava", task="Transcribe the SQL code in the image.", api_kwargs=(; max_tokens=2500))\n\n# AIMessage("```sql\n# update Orders <continue>\n\n# You can add syntax highlighting of the outputs via Markdown\nusing Markdown\nmsg.content |> Markdown.parse

Local models cannot handle image URLs directly (image_url), so you need to download the image first and provide it as image_path:

julia
using Downloads\nimage_path = Downloads.download(image_url)

Notice that we set max_tokens = 2500. If your outputs seem truncated, it might be because the default maximum tokens on the server is set too low!

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOpenAISchema,] prompt::ALLOWED_PROMPT_TYPE; \nimage_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,\nimage_detail::AbstractString = "auto",\nattach_to_latest::Bool = true,\nverbose::Bool = true, api_key::String = OPENAI_API_KEY,\n    model::String = MODEL_CHAT,\n    return_all::Bool = false, dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    http_kwargs::NamedTuple = (;\n        retry_non_idempotent = true,\n        retries = 5,\n        readtimeout = 120), \n    api_kwargs::NamedTuple = = (; max_tokens = 2500),\n    kwargs...)

Scans the provided image (image_url or image_path) with the goal provided in the prompt.

Can be used for many multi-modal tasks, such as: OCR (transcribe text in the image), image captioning, image classification, etc.

It's effectively a light wrapper around aigenerate call, which uses additional keyword arguments image_url, image_path, image_detail to be provided. At least one image source (url or path) must be provided.

Arguments

Returns

If return_all=false (default):

Use msg.content to access the extracted string.

If return_all=true:

See also: ai_str, aai_str, aigenerate, aiembed, aiclassify, aiextract, aitemplates

Notes

Example

Describe the provided image:

julia
msg = aiscan("Describe the image"; image_path="julia.png", model="gpt4v")\n# [ Info: Tokens: 1141 @ Cost: $0.0117 in 2.2 seconds\n# AIMessage("The image shows a logo consisting of the word "julia" written in lowercase")

You can provide multiple images at once as a vector and ask for "low" level of detail (cheaper):

julia
msg = aiscan("Describe the image"; image_path=["julia.png","python.png"], image_detail="low", model="gpt4v")

You can use this function as a nice and quick OCR (transcribe text in the image) with a template :OCRTask. Let's transcribe some SQL code from a screenshot (no more re-typing!):

julia
# Screenshot of some SQL code\nimage_url = "https://www.sqlservercentral.com/wp-content/uploads/legacy/8755f69180b7ac7ee76a69ae68ec36872a116ad4/24622.png"\nmsg = aiscan(:OCRTask; image_url, model="gpt4v", task="Transcribe the SQL code in the image.", api_kwargs=(; max_tokens=2500))\n\n# [ Info: Tokens: 362 @ Cost: $0.0045 in 2.5 seconds\n# AIMessage("```sql\n# update Orders <continue>\n\n# You can add syntax highlighting of the outputs via Markdown\nusing Markdown\nmsg.content |> Markdown.parse

Notice that we enforce max_tokens = 2500. That's because OpenAI seems to default to ~300 tokens, which provides incomplete outputs. Hence, we set this value to 2500 as a default. If you still get truncated outputs, increase this value.

source


# PromptingTools.aiscanMethod.
julia
aiscan(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiscan call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

source


# PromptingTools.aitemplatesFunction.
julia
aitemplates

Find easily the most suitable templates for your use case.

You can search by:

Keyword Arguments

Examples

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")\n# Will surface one specific template\n# 1-element Vector{AITemplateMetadata}:\n# PromptingTools.AITemplateMetadata\n#   name: Symbol JuliaExpertAsk\n#   description: String "For asking questions about Julia language. Placeholders: `ask`"\n#   version: String "1"\n#   wordcount: Int64 237\n#   variables: Array{Symbol}((1,))\n#   system_preview: String "You are a world-class Julia language programmer with the knowledge of the latest syntax. Your commun"\n#   user_preview: String "# Question\n\n{{ask}}"\n#   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")\n# 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames\ntmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name or description fields partially match the query_key::String in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates where provided query_key::Regex matches either of name, description or previews or User or System messages in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name::Symbol exactly matches the query_name::Symbol in TEMPLATE_METADATA.

source


# PromptingTools.align_tracer!Method.

Aligns multiple tracers in the vector to have the same Parent and Thread IDs as the first item.

source


# PromptingTools.align_tracer!Method.

Aligns the tracer message, updating the parent_id, thread_id. Often used to align multiple tracers in the vector to have the same IDs.

source


# PromptingTools.anthropic_apiFunction.
julia
anthropic_api(prompt_schema::AbstractAnthropicSchema,\n    messages::Vector{<:AbstractMessage} = AbstractMessage[];\n    prompt::Union{AbstractString, Nothing} = nothing;\n    system::Union{Nothing, AbstractString} = nothing,\n    endpoint::String = "generate",\n    model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),\n    stream::Bool = false,\n    url::String = "localhost", port::Int = 11434,\n    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

source


# PromptingTools.auth_headerMethod.
julia
auth_header(api_key::Union{Nothing, AbstractString};\n    bearer::Bool = true,\n    x_api_key::Bool = false,\n    extra_headers::AbstractVector = Vector{\n        Pair{String, String},\n    }[],\n    kwargs...)

Creates the authentication headers for any API request. Assumes that the communication is done in JSON format.

Arguments

source


# PromptingTools.build_template_metadataFunction.
julia
build_template_metadata(\n    template::AbstractVector{<:AbstractMessage}, template_name::Symbol,\n    metadata_msgs::AbstractVector{<:MetadataMessage} = MetadataMessage[]; max_length::Int = 100)

Builds AITemplateMetadata for a given template based on the messages in template and other information.

AITemplateMetadata is a helper struct for easy searching and reviewing of templates via aitemplates().

Note: Assumes that there is only ever one UserMessage and SystemMessage (concatenates them together)

source


# PromptingTools.call_costMethod.
julia
call_cost(prompt_tokens::Int, completion_tokens::Int, model::String;\n    cost_of_token_prompt::Number = get(MODEL_REGISTRY,\n        model,\n        (; cost_of_token_prompt = 0.0)).cost_of_token_prompt,\n    cost_of_token_generation::Number = get(MODEL_REGISTRY, model,\n        (; cost_of_token_generation = 0.0)).cost_of_token_generation)\n\ncall_cost(msg, model::String)

Calculate the cost of a call based on the number of tokens in the message and the cost per token.

Arguments

Returns

Examples

julia
# Assuming MODEL_REGISTRY is set up with appropriate costs\nMODEL_REGISTRY = Dict(\n    "model1" => (cost_of_token_prompt = 0.05, cost_of_token_generation = 0.10),\n    "model2" => (cost_of_token_prompt = 0.07, cost_of_token_generation = 0.02)\n)\n\ncost1 = call_cost(10, 20, "model1")\n\n# from message\nmsg1 = AIMessage(;tokens=[10, 20])  # 10 prompt tokens, 20 generation tokens\ncost1 = call_cost(msg1, "model1")\n# cost1 = 10 * 0.05 + 20 * 0.10 = 2.5\n\n# Using custom token costs\ncost2 = call_cost(10, 20, "model3"; cost_of_token_prompt = 0.08, cost_of_token_generation = 0.12)\n# cost2 = 10 * 0.08 + 20 * 0.12 = 3.2

source


# PromptingTools.call_cost_alternativeMethod.

call_cost_alternative()

Alternative cost calculation. Used to calculate cost of image generation with DALL-E 3 and similar.

source


', 57); const _hoisted_197 = { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }; const _hoisted_198 = /* @__PURE__ */ createBaseVNode("a", { id: "PromptingTools.create_template-Tuple{AbstractString, AbstractString}", @@ -49,8 +49,8 @@ const _hoisted_199 = /* @__PURE__ */ createBaseVNode("b", null, [ const _hoisted_200 = /* @__PURE__ */ createBaseVNode("i", null, "Method", -1); const _hoisted_201 = /* @__PURE__ */ createStaticVNode('
julia
create_template(; user::AbstractString, system::AbstractString="Act as a helpful AI assistant.", \n    load_as::Union{Nothing, Symbol, AbstractString} = nothing)\n\ncreate_template(system::AbstractString, user::AbstractString, \n    load_as::Union{Nothing, Symbol, AbstractString} = nothing)

Creates a simple template with a user and system message. Convenience function to prevent writing [PT.UserMessage(...), ...]

Arguments

', 4); const _hoisted_205 = /* @__PURE__ */ createBaseVNode("code", null, "kwargs", -1); -const _hoisted_206 = /* @__PURE__ */ createStaticVNode('

Returns a vector of SystemMessage and UserMessage objects. If load_as is provided, it registers the template in the TEMPLATE_STORE and TEMPLATE_METADATA as well.

Examples

Let's generate a quick template for a simple conversation (only one placeholder: name)

julia
# first system message, then user message (or use kwargs)\ntpl=PT.create_template("You must speak like a pirate", "Say hi to {{name}}")\n\n## 2-element Vector{PromptingTools.AbstractChatMessage}:\n## PromptingTools.SystemMessage("You must speak like a pirate")\n##  PromptingTools.UserMessage("Say hi to {{name}}")

You can immediately use this template in ai* functions:

julia
aigenerate(tpl; name="Jack Sparrow")\n# Output: AIMessage("Arr, me hearty! Best be sending me regards to Captain Jack Sparrow on the salty seas! May his compass always point true to the nearest treasure trove. Yarrr!")

If you're interested in saving the template in the template registry, jump to the end of these examples!

If you want to save it in your project folder:

julia
PT.save_template("templates/GreatingPirate.json", tpl; version="1.0") # optionally, add description

It will be saved and accessed under its basename, ie, GreatingPirate.

Now you can load it like all the other templates (provide the template directory):

julia
PT.load_templates!("templates") # it will remember the folder after the first run\n# Note: If you save it again, overwrite it, etc., you need to explicitly reload all templates again!

You can verify that your template is loaded with a quick search for "pirate":

julia
aitemplates("pirate")\n\n## 1-element Vector{AITemplateMetadata}:\n## PromptingTools.AITemplateMetadata\n##   name: Symbol GreatingPirate\n##   description: String ""\n##   version: String "1.0"\n##   wordcount: Int64 46\n##   variables: Array{Symbol}((1,))\n##   system_preview: String "You must speak like a pirate"\n##   user_preview: String "Say hi to {{name}}"\n##   source: String ""

Now you can use it like any other template (notice it's a symbol, so :GreatingPirate):

julia
aigenerate(:GreatingPirate; name="Jack Sparrow")\n# Output: AIMessage("Arr, me hearty! Best be sending me regards to Captain Jack Sparrow on the salty seas! May his compass always point true to the nearest treasure trove. Yarrr!")

If you do not need to save this template as a file, but you want to make it accessible in the template store for all ai* functions, you can use the load_as (= template name) keyword argument:

julia
# this will not only create the template, but also register it for immediate use\ntpl=PT.create_template("You must speak like a pirate", "Say hi to {{name}}"; load_as="GreatingPirate")\n\n# you can now use it like any other template\naiextract(:GreatingPirate; name="Jack Sparrow")

source

', 19); -const _hoisted_225 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.decode_choicesMethod.
julia
decode_choices(schema::OpenAISchema,\n    choices::AbstractVector{<:AbstractString},\n    msg::AIMessage; kwargs...)

Decodes the underlying AIMessage against the original choices to lookup what the category name was.

If it fails, it will return msg.content == nothing

source


# PromptingTools.detect_base_main_overridesMethod.
julia
detect_base_main_overrides(code_block::AbstractString)

Detects if a given code block overrides any Base or Main methods.

Returns a tuple of a boolean and a vector of the overriden methods.

source


# PromptingTools.distance_longest_common_subsequenceMethod.
julia
distance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractString)\n\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractVector{<:AbstractString})

Measures distance between two strings using the length of the longest common subsequence (ie, the lower the number, the better the match). Perfect match is distance = 0.0

Convenience wrapper around length_longest_common_subsequence to normalize the distances to 0-1 range. There is a also a dispatch for comparing a string vs an array of strings.

Notes

Arguments

Example

You can also use it to find the closest context for some AI generated summary/story:

julia
context = ["The enigmatic stranger vanished as swiftly as a wisp of smoke, leaving behind a trail of unanswered questions.",\n    "Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.",\n    "The ancient tree stood as a silent guardian, its gnarled branches reaching for the heavens.",\n    "The melody danced through the air, painting a vibrant tapestry of emotions.",\n    "Time flowed like a relentless river, carrying away memories and leaving imprints in its wake."]\n\nstory = """\n    Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.\n\n    Under the celestial tapestry, the vast ocean whispered its secrets to the indifferent stars. Each ripple, a murmured confidence, each wave, a whispered lament. The glittering celestial bodies listened in silent complicity, their enigmatic gaze reflecting the ocean's unspoken truths. The cosmic dance between the sea and the sky, a symphony of shared secrets, forever echoing in the ethereal expanse.\n    """\n\ndist = distance_longest_common_subsequence(story, context)\n@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


# PromptingTools.encode_choicesMethod.
julia
encode_choices(schema::OpenAISchema, choices::AbstractVector{<:AbstractString}; kwargs...)\n\nencode_choices(schema::OpenAISchema, choices::AbstractVector{T};\nkwargs...) where {T <: Tuple{<:AbstractString, <:AbstractString}}

Encode the choices into an enumerated list that can be interpolated into the prompt and creates the corresponding logit biases (to choose only from the selected tokens).

Optionally, can be a vector tuples, where the first element is the choice and the second is the description.

There can be at most 40 choices provided.

Arguments

Returns

Examples

julia
choices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), ["true", "false"])\nchoices_prompt # Output: "true for "true"\nfalse for "false"\nlogit_bias # Output: Dict(837 => 100, 905 => 100)\n\nchoices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), ["animal", "plant"])\nchoices_prompt # Output: "1. "animal"\n2. "plant""\nlogit_bias # Output: Dict(16 => 100, 17 => 100)

Or choices with descriptions:

julia
choices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), [("A", "any animal or creature"), ("P", "for any plant or tree"), ("O", "for everything else")])\nchoices_prompt # Output: "1. "A" for any animal or creature\n2. "P" for any plant or tree\n3. "O" for everything else"\nlogit_bias # Output: Dict(16 => 100, 17 => 100, 18 => 100)

source


# PromptingTools.eval!Method.
julia
eval!(cb::AbstractCodeBlock;\n    safe_eval::Bool = true,\n    capture_stdout::Bool = true,\n    prefix::AbstractString = "",\n    suffix::AbstractString = "")

Evaluates a code block cb in-place. It runs automatically when AICode is instantiated with a String.

Check the outcome of evaluation with Base.isvalid(cb). If ==true, provide code block has executed successfully.

Steps:

Keyword Arguments

source


# PromptingTools.extract_code_blocksMethod.
julia
extract_code_blocks(markdown_content::String) -> Vector{String}

Extract Julia code blocks from a markdown string.

This function searches through the provided markdown content, identifies blocks of code specifically marked as Julia code (using the julia ... code fence patterns), and extracts the code within these blocks. The extracted code blocks are returned as a vector of strings, with each string representing one block of Julia code.

Note: Only the content within the code fences is extracted, and the code fences themselves are not included in the output.

See also: extract_code_blocks_fallback

Arguments

Returns

Examples

Example with a single Julia code block

julia
markdown_single = """

julia println("Hello, World!")

"""\nextract_code_blocks(markdown_single)\n# Output: ["Hello, World!"]
julia
# Example with multiple Julia code blocks\nmarkdown_multiple = """

julia x = 5

Some text in between

julia y = x + 2

"""\nextract_code_blocks(markdown_multiple)\n# Output: ["x = 5", "y = x + 2"]

source


# PromptingTools.extract_code_blocks_fallbackMethod.
julia
extract_code_blocks_fallback(markdown_content::String, delim::AbstractString="\\n```\\n")

Extract Julia code blocks from a markdown string using a fallback method (splitting by arbitrary delim-iters). Much more simplistic than extract_code_blocks and does not support nested code blocks.

It is often used as a fallback for smaller LLMs that forget to code fence julia ....

Example

julia
code = """

println("hello")

\nSome text

println("world")

"""\n\n# We extract text between triple backticks and check each blob if it looks like a valid Julia code\ncode_parsed = extract_code_blocks_fallback(code) |> x -> filter(is_julia_code, x) |> x -> join(x, "\n")

source


# PromptingTools.extract_function_nameMethod.
julia
extract_function_name(code_block::String) -> Union{String, Nothing}

Extract the name of a function from a given Julia code block. The function searches for two patterns:

If a function name is found, it is returned as a string. If no function name is found, the function returns nothing.

To capture all function names in the block, use extract_function_names.

Arguments

Returns

Example

julia
code = """\nfunction myFunction(arg1, arg2)\n    # Function body\nend\n"""\nextract_function_name(code)\n# Output: "myFunction"

source


# PromptingTools.extract_function_namesMethod.
julia
extract_function_names(code_block::AbstractString)

Extract one or more names of functions defined in a given Julia code block. The function searches for two patterns: - The explicit function declaration pattern: function name(...) ... end - The concise function declaration pattern: name(...) = ...

It always returns a vector of strings, even if only one function name is found (it will be empty).

For only one function name match, use extract_function_name.

source


# PromptingTools.extract_julia_importsMethod.
julia
extract_julia_imports(input::AbstractString; base_or_main::Bool = false)

Detects any using or import statements in a given string and returns the package names as a vector of symbols.

base_or_main is a boolean that determines whether to isolate only Base and Main OR whether to exclude them in the returned vector.

source


# PromptingTools.finalize_outputsMethod.
julia
finalize_outputs(prompt::ALLOWED_PROMPT_TYPE, conv_rendered::Any,\n    msg::Union{Nothing, AbstractMessage, AbstractVector{<:AbstractMessage}};\n    return_all::Bool = false,\n    dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    kwargs...)

Finalizes the outputs of the ai* functions by either returning the conversation history or the last message.

Keyword arguments

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(\n    tracer_schema::AbstractTracerSchema, tracer, msg_or_conv::Union{\n        AbstractMessage, AbstractVector{<:AbstractMessage}};\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer of whatever is nedeed after the ai* calls. Use tracer_kwargs to provide any information necessary (eg, parent_id, thread_id, run_id).

In the default implementation, we convert all non-tracer messages into TracerMessage.

See also: meta, unwrap, SaverSchema, initialize_tracer

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(\n    tracer_schema::SaverSchema, tracer, msg_or_conv::Union{\n        AbstractMessage, AbstractVector{<:AbstractMessage}};\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer by saving the provided conversation msg_or_conv to the disk.

Default path is LOG_DIR/conversation__<first_msg_hash>__<time_received_str>.json, where LOG_DIR is set by user preferences or ENV variable (defaults to log/ in current working directory).

If you want to change the logging directory or the exact file name to log with, you can provide the following arguments to tracer_kwargs:

It can be composed with TracerSchema to also attach necessary metadata (see below).

Example

julia
wrap_schema = PT.SaverSchema(PT.TracerSchema(PT.OpenAISchema()))\nconv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!"; model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)\n\n# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

See also: meta, unwrap, TracerSchema, initialize_tracer

source


# PromptingTools.find_subsequence_positionsMethod.
julia
find_subsequence_positions(subseq, seq) -> Vector{Int}

Find all positions of a subsequence subseq within a larger sequence seq. Used to lookup positions of code blocks in markdown.

This function scans the sequence seq and identifies all starting positions where the subsequence subseq is found. Both subseq and seq should be vectors of integers, typically obtained using codeunits on strings.

Arguments

Returns

Examples

julia
find_subsequence_positions(codeunits("ab"), codeunits("cababcab")) # Returns [2, 5]

source


', 29); +const _hoisted_206 = /* @__PURE__ */ createStaticVNode('

Returns a vector of SystemMessage and UserMessage objects. If load_as is provided, it registers the template in the TEMPLATE_STORE and TEMPLATE_METADATA as well.

Examples

Let's generate a quick template for a simple conversation (only one placeholder: name)

julia
# first system message, then user message (or use kwargs)\ntpl=PT.create_template("You must speak like a pirate", "Say hi to {{name}}")\n\n## 2-element Vector{PromptingTools.AbstractChatMessage}:\n## PromptingTools.SystemMessage("You must speak like a pirate")\n##  PromptingTools.UserMessage("Say hi to {{name}}")

You can immediately use this template in ai* functions:

julia
aigenerate(tpl; name="Jack Sparrow")\n# Output: AIMessage("Arr, me hearty! Best be sending me regards to Captain Jack Sparrow on the salty seas! May his compass always point true to the nearest treasure trove. Yarrr!")

If you're interested in saving the template in the template registry, jump to the end of these examples!

If you want to save it in your project folder:

julia
PT.save_template("templates/GreatingPirate.json", tpl; version="1.0") # optionally, add description

It will be saved and accessed under its basename, ie, GreatingPirate.

Now you can load it like all the other templates (provide the template directory):

julia
PT.load_templates!("templates") # it will remember the folder after the first run\n# Note: If you save it again, overwrite it, etc., you need to explicitly reload all templates again!

You can verify that your template is loaded with a quick search for "pirate":

julia
aitemplates("pirate")\n\n## 1-element Vector{AITemplateMetadata}:\n## PromptingTools.AITemplateMetadata\n##   name: Symbol GreatingPirate\n##   description: String ""\n##   version: String "1.0"\n##   wordcount: Int64 46\n##   variables: Array{Symbol}((1,))\n##   system_preview: String "You must speak like a pirate"\n##   user_preview: String "Say hi to {{name}}"\n##   source: String ""

Now you can use it like any other template (notice it's a symbol, so :GreatingPirate):

julia
aigenerate(:GreatingPirate; name="Jack Sparrow")\n# Output: AIMessage("Arr, me hearty! Best be sending me regards to Captain Jack Sparrow on the salty seas! May his compass always point true to the nearest treasure trove. Yarrr!")

If you do not need to save this template as a file, but you want to make it accessible in the template store for all ai* functions, you can use the load_as (= template name) keyword argument:

julia
# this will not only create the template, but also register it for immediate use\ntpl=PT.create_template("You must speak like a pirate", "Say hi to {{name}}"; load_as="GreatingPirate")\n\n# you can now use it like any other template\naiextract(:GreatingPirate; name="Jack Sparrow")

source

', 19); +const _hoisted_225 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.decode_choicesMethod.
julia
decode_choices(schema::OpenAISchema,\n    choices::AbstractVector{<:AbstractString},\n    msg::AIMessage; kwargs...)

Decodes the underlying AIMessage against the original choices to lookup what the category name was.

If it fails, it will return msg.content == nothing

source


# PromptingTools.detect_base_main_overridesMethod.
julia
detect_base_main_overrides(code_block::AbstractString)

Detects if a given code block overrides any Base or Main methods.

Returns a tuple of a boolean and a vector of the overriden methods.

source


# PromptingTools.distance_longest_common_subsequenceMethod.
julia
distance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractString)\n\ndistance_longest_common_subsequence(\n    input1::AbstractString, input2::AbstractVector{<:AbstractString})

Measures distance between two strings using the length of the longest common subsequence (ie, the lower the number, the better the match). Perfect match is distance = 0.0

Convenience wrapper around length_longest_common_subsequence to normalize the distances to 0-1 range. There is a also a dispatch for comparing a string vs an array of strings.

Notes

Arguments

Example

You can also use it to find the closest context for some AI generated summary/story:

julia
context = ["The enigmatic stranger vanished as swiftly as a wisp of smoke, leaving behind a trail of unanswered questions.",\n    "Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.",\n    "The ancient tree stood as a silent guardian, its gnarled branches reaching for the heavens.",\n    "The melody danced through the air, painting a vibrant tapestry of emotions.",\n    "Time flowed like a relentless river, carrying away memories and leaving imprints in its wake."]\n\nstory = """\n    Beneath the shimmering moonlight, the ocean whispered secrets only the stars could hear.\n\n    Under the celestial tapestry, the vast ocean whispered its secrets to the indifferent stars. Each ripple, a murmured confidence, each wave, a whispered lament. The glittering celestial bodies listened in silent complicity, their enigmatic gaze reflecting the ocean's unspoken truths. The cosmic dance between the sea and the sky, a symphony of shared secrets, forever echoing in the ethereal expanse.\n    """\n\ndist = distance_longest_common_subsequence(story, context)\n@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


# PromptingTools.encode_choicesMethod.
julia
encode_choices(schema::OpenAISchema, choices::AbstractVector{<:AbstractString}; kwargs...)\n\nencode_choices(schema::OpenAISchema, choices::AbstractVector{T};\nkwargs...) where {T <: Tuple{<:AbstractString, <:AbstractString}}

Encode the choices into an enumerated list that can be interpolated into the prompt and creates the corresponding logit biases (to choose only from the selected tokens).

Optionally, can be a vector tuples, where the first element is the choice and the second is the description.

There can be at most 40 choices provided.

Arguments

Returns

Examples

julia
choices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), ["true", "false"])\nchoices_prompt # Output: "true for "true"\nfalse for "false"\nlogit_bias # Output: Dict(837 => 100, 905 => 100)\n\nchoices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), ["animal", "plant"])\nchoices_prompt # Output: "1. "animal"\n2. "plant""\nlogit_bias # Output: Dict(16 => 100, 17 => 100)

Or choices with descriptions:

julia
choices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), [("A", "any animal or creature"), ("P", "for any plant or tree"), ("O", "for everything else")])\nchoices_prompt # Output: "1. "A" for any animal or creature\n2. "P" for any plant or tree\n3. "O" for everything else"\nlogit_bias # Output: Dict(16 => 100, 17 => 100, 18 => 100)

source


# PromptingTools.eval!Method.
julia
eval!(cb::AbstractCodeBlock;\n    safe_eval::Bool = true,\n    capture_stdout::Bool = true,\n    prefix::AbstractString = "",\n    suffix::AbstractString = "")

Evaluates a code block cb in-place. It runs automatically when AICode is instantiated with a String.

Check the outcome of evaluation with Base.isvalid(cb). If ==true, provide code block has executed successfully.

Steps:

Keyword Arguments

source


# PromptingTools.extract_code_blocksMethod.
julia
extract_code_blocks(markdown_content::String) -> Vector{String}

Extract Julia code blocks from a markdown string.

This function searches through the provided markdown content, identifies blocks of code specifically marked as Julia code (using the julia ... code fence patterns), and extracts the code within these blocks. The extracted code blocks are returned as a vector of strings, with each string representing one block of Julia code.

Note: Only the content within the code fences is extracted, and the code fences themselves are not included in the output.

See also: extract_code_blocks_fallback

Arguments

Returns

Examples

Example with a single Julia code block

julia
markdown_single = """

julia println("Hello, World!")

"""\nextract_code_blocks(markdown_single)\n# Output: ["Hello, World!"]
julia
# Example with multiple Julia code blocks\nmarkdown_multiple = """

julia x = 5

Some text in between

julia y = x + 2

"""\nextract_code_blocks(markdown_multiple)\n# Output: ["x = 5", "y = x + 2"]

source


# PromptingTools.extract_code_blocks_fallbackMethod.
julia
extract_code_blocks_fallback(markdown_content::String, delim::AbstractString="\\n```\\n")

Extract Julia code blocks from a markdown string using a fallback method (splitting by arbitrary delim-iters). Much more simplistic than extract_code_blocks and does not support nested code blocks.

It is often used as a fallback for smaller LLMs that forget to code fence julia ....

Example

julia
code = """

println("hello")

\nSome text

println("world")

"""\n\n# We extract text between triple backticks and check each blob if it looks like a valid Julia code\ncode_parsed = extract_code_blocks_fallback(code) |> x -> filter(is_julia_code, x) |> x -> join(x, "\n")

source


# PromptingTools.extract_function_nameMethod.
julia
extract_function_name(code_block::String) -> Union{String, Nothing}

Extract the name of a function from a given Julia code block. The function searches for two patterns:

If a function name is found, it is returned as a string. If no function name is found, the function returns nothing.

To capture all function names in the block, use extract_function_names.

Arguments

Returns

Example

julia
code = """\nfunction myFunction(arg1, arg2)\n    # Function body\nend\n"""\nextract_function_name(code)\n# Output: "myFunction"

source


# PromptingTools.extract_function_namesMethod.
julia
extract_function_names(code_block::AbstractString)

Extract one or more names of functions defined in a given Julia code block. The function searches for two patterns: - The explicit function declaration pattern: function name(...) ... end - The concise function declaration pattern: name(...) = ...

It always returns a vector of strings, even if only one function name is found (it will be empty).

For only one function name match, use extract_function_name.

source


# PromptingTools.extract_julia_importsMethod.
julia
extract_julia_imports(input::AbstractString; base_or_main::Bool = false)

Detects any using or import statements in a given string and returns the package names as a vector of symbols.

base_or_main is a boolean that determines whether to isolate only Base and Main OR whether to exclude them in the returned vector.

source


# PromptingTools.finalize_outputsMethod.
julia
finalize_outputs(prompt::ALLOWED_PROMPT_TYPE, conv_rendered::Any,\n    msg::Union{Nothing, AbstractMessage, AbstractVector{<:AbstractMessage}};\n    return_all::Bool = false,\n    dry_run::Bool = false,\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    kwargs...)

Finalizes the outputs of the ai* functions by either returning the conversation history or the last message.

Keyword arguments

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(\n    tracer_schema::AbstractTracerSchema, tracer, msg_or_conv::Union{\n        AbstractMessage, AbstractVector{<:AbstractMessage}};\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer of whatever is nedeed after the ai* calls. Use tracer_kwargs to provide any information necessary (eg, parent_id, thread_id, run_id).

In the default implementation, we convert all non-tracer messages into TracerMessage.

See also: meta, unwrap, SaverSchema, initialize_tracer

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(\n    tracer_schema::SaverSchema, tracer, msg_or_conv::Union{\n        AbstractMessage, AbstractVector{<:AbstractMessage}};\n    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer by saving the provided conversation msg_or_conv to the disk.

Default path is LOG_DIR/conversation__<first_msg_hash>__<time_received_str>.json, where LOG_DIR is set by user preferences or ENV variable (defaults to log/ in current working directory).

If you want to change the logging directory or the exact file name to log with, you can provide the following arguments to tracer_kwargs:

It can be composed with TracerSchema to also attach necessary metadata (see below).

Example

julia
wrap_schema = PT.SaverSchema(PT.TracerSchema(PT.OpenAISchema()))\nconv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",\n    user="Say hi!"; model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)\n\n# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

See also: meta, unwrap, TracerSchema, initialize_tracer

source


# PromptingTools.find_subsequence_positionsMethod.
julia
find_subsequence_positions(subseq, seq) -> Vector{Int}

Find all positions of a subsequence subseq within a larger sequence seq. Used to lookup positions of code blocks in markdown.

This function scans the sequence seq and identifies all starting positions where the subsequence subseq is found. Both subseq and seq should be vectors of integers, typically obtained using codeunits on strings.

Arguments

Returns

Examples

julia
find_subsequence_positions(codeunits("ab"), codeunits("cababcab")) # Returns [2, 5]

source


', 29); const _hoisted_254 = /* @__PURE__ */ createBaseVNode("div", { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }, [ /* @__PURE__ */ createBaseVNode("a", { id: "PromptingTools.function_call_signature-Tuple{Type}", @@ -301,7 +301,7 @@ const _hoisted_254 = /* @__PURE__ */ createBaseVNode("div", { style: { "border-w ]), /* @__PURE__ */ createTextVNode("\n"), /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [ - /* @__PURE__ */ createBaseVNode("span", null, "[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/extraction.jl#L96-L164)") + /* @__PURE__ */ createBaseVNode("span", null, "[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/extraction.jl#L96-L164)") ]), /* @__PURE__ */ createTextVNode("\n"), /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [ @@ -383,13 +383,13 @@ const _hoisted_254 = /* @__PURE__ */ createBaseVNode("div", { style: { "border-w ]), /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L108-L119", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L108-L119", target: "_blank", rel: "noreferrer" }, "source") ]) ], -1); -const _hoisted_255 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.ggi_generate_contentFunction.

Stub - to be extended in extension: GoogleGenAIPromptingToolsExt. ggi stands for GoogleGenAI

source


# PromptingTools.has_julia_promptMethod.

Checks if a given string has a Julia prompt (julia>) at the beginning of a line.

source


# PromptingTools.initialize_tracerMethod.
julia
initialize_tracer(\n    tracer_schema::AbstractTracerSchema; model = "", tracer_kwargs = NamedTuple(),\n    prompt::ALLOWED_PROMPT_TYPE = "", kwargs...)

Initializes tracer/callback (if necessary). Can provide any keyword arguments in tracer_kwargs (eg, parent_id, thread_id, run_id). Is executed prior to the ai* calls.

By default it captures:

In the default implementation, we just collect the necessary data to build the tracer object in finalize_tracer.

See also: meta, unwrap, TracerSchema, SaverSchema, finalize_tracer

source


# PromptingTools.last_messageMethod.

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.length_longest_common_subsequenceMethod.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"\ntext2 = "___ab_c__abc"\nlongest_common_subsequence(text1, text2)\n# Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]\nquery = "Which product can you recommend for me?"\nlet pos = argmax(length_longest_common_subsequence.(Ref(query), commands))\n    dist = length_longest_common_subsequence(query, commands[pos])\n    norm = dist / min(length(query), length(commands[pos]))\n    @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"\nend

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!

\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/utils.jl#L252-L288)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.list_aliases-Tuple{}' href='#PromptingTools.list_aliases-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.list_aliases</u></b> &mdash; <i>Method</i>.\n\n\n\n\nShows the Dictionary of model aliases in the registry. Add more with `MODEL_ALIASES[alias] = model_name`.\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L914)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.list_registry-Tuple{}' href='#PromptingTools.list_registry-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.list_registry</u></b> &mdash; <i>Method</i>.\n\n\n\n\nShows the list of models in the registry. Add more with `register_model!`.\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L912)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.load_api_keys!-Tuple{}' href='#PromptingTools.load_api_keys!-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.load_api_keys!</u></b> &mdash; <i>Method</i>.\n\n\n\n\nLoads API keys from environment variables and preferences\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L154)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.load_conversation-Tuple{Union{AbstractString, IO}}' href='#PromptingTools.load_conversation-Tuple{Union{AbstractString, IO}}'>#</a>&nbsp;<b><u>PromptingTools.load_conversation</u></b> &mdash; <i>Method</i>.\n\n\n\n\n```julia\nload_conversation(io_or_file::Union{IO, AbstractString})

Loads a conversation (messages) from io_or_file

source


# PromptingTools.load_templateMethod.
julia
load_template(io_or_file::Union{IO, AbstractString})

Loads messaging template from io_or_file and returns tuple of template messages and metadata.

source


# PromptingTools.load_templates!Function.
julia
load_templates!(dir_templates::Union{String, Nothing} = nothing;\n    remember_path::Bool = true,\n    remove_templates::Bool = isnothing(dir_templates),\n    store::Dict{Symbol, <:Any} = TEMPLATE_STORE,\n    metadata_store::Vector{<:AITemplateMetadata} = TEMPLATE_METADATA)

Loads templates from folder templates/ in the package root and stores them in TEMPLATE_STORE and TEMPLATE_METADATA.

Note: Automatically removes any existing templates and metadata from TEMPLATE_STORE and TEMPLATE_METADATA if remove_templates=true.

Arguments

Example

Load the default templates:

julia
PT.load_templates!() # no path needed

Load templates from a new custom path:

julia
PT.load_templates!("path/to/templates") # we will remember this path for future refresh

If you want to now refresh the default templates and the new path, just call load_templates!() without any arguments.

source


# PromptingTools.metaMethod.

Extracts the metadata dictionary from the tracer message or tracer-like object.

source


# PromptingTools.ollama_apiFunction.
julia
ollama_api(prompt_schema::Union{AbstractOllamaManagedSchema, AbstractOllamaSchema},\n    prompt::Union{AbstractString, Nothing} = nothing;\n    system::Union{Nothing, AbstractString} = nothing,\n    messages::Vector{<:AbstractMessage} = AbstractMessage[],\n    endpoint::String = "generate",\n    model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),\n    stream::Bool = false,\n    url::String = "localhost", port::Int = 11434,\n    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

source


# PromptingTools.pprintFunction.

Utility for pretty printing PromptingTools types in REPL.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, conversation::AbstractVector{<:AbstractMessage})

Pretty print a vector of AbstractMessage to the given IO stream.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, msg::AbstractMessage; text_width::Int = displaysize(io)[2])

Pretty print a single AbstractMessage to the given IO stream.

text_width is the width of the text to be displayed. If not provided, it defaults to the width of the given IO stream and add newline separators as needed.

source


# PromptingTools.previewFunction.

Utility for rendering the conversation (vector of messages) as markdown. REQUIRES the Markdown package to load the extension! See also pprint

source


# PromptingTools.push_conversation!Method.
julia
push_conversation!(conv_history, conversation::AbstractVector, max_history::Union{Int, Nothing})

Add a new conversation to the conversation history and resize the history if necessary.

This function appends a conversation to the conv_history, which is a vector of conversations. Each conversation is represented as a vector of AbstractMessage objects. After adding the new conversation, the history is resized according to the max_history parameter to ensure that the size of the history does not exceed the specified limit.

Arguments

Returns

The updated conversation history.

Example

julia
new_conversation = aigenerate("Hello World"; return_all = true)\npush_conversation!(PT.CONV_HISTORY, new_conversation, 10)

This is done automatically by the ai"" macros.

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\\n\\n", "\\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n"] # split by paragraphs, sentences, and newlines (not by words)\nchunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n", " "] # split by paragraphs, sentences, and newlines, words\nchunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters\nchunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\\n\\n", "\\n", " ", ""].

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", "\\n", " ", ""]\nchunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"\nchunks = recursive_splitter(text; max_length=13)\nlength(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars\nrecursive_splitter(text; separator=",", max_length=10000) # for 4K context window\nlength(chunks[1]) # Output: 4

source


# PromptingTools.register_model!Function.
julia
register_model!(registry = MODEL_REGISTRY;\n    name::String,\n    schema::Union{AbstractPromptSchema, Nothing} = nothing,\n    cost_of_token_prompt::Float64 = 0.0,\n    cost_of_token_generation::Float64 = 0.0,\n    description::String = "")

Register a new AI model with name and its associated schema.

Registering a model helps with calculating the costs and automatically selecting the right prompt schema.

Arguments

source


# PromptingTools.remove_julia_promptMethod.
julia
remove_julia_prompt(s::T) where {T<:AbstractString}

If it detects a julia prompt, it removes it and all lines that do not have it (except for those that belong to the code block).

source


# PromptingTools.remove_templates!Method.
julia
    remove_templates!()

Removes all templates from TEMPLATE_STORE and TEMPLATE_METADATA.

source


# PromptingTools.remove_unsafe_linesMethod.

Iterates over the lines of a string and removes those that contain a package operation or a missing import.

source


# PromptingTools.renderMethod.

Renders provided messaging template (template) under the default schema (PROMPT_SCHEMA).

source


', 45); +const _hoisted_255 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.ggi_generate_contentFunction.

Stub - to be extended in extension: GoogleGenAIPromptingToolsExt. ggi stands for GoogleGenAI

source


# PromptingTools.has_julia_promptMethod.

Checks if a given string has a Julia prompt (julia>) at the beginning of a line.

source


# PromptingTools.initialize_tracerMethod.
julia
initialize_tracer(\n    tracer_schema::AbstractTracerSchema; model = "", tracer_kwargs = NamedTuple(),\n    prompt::ALLOWED_PROMPT_TYPE = "", kwargs...)

Initializes tracer/callback (if necessary). Can provide any keyword arguments in tracer_kwargs (eg, parent_id, thread_id, run_id). Is executed prior to the ai* calls.

By default it captures:

In the default implementation, we just collect the necessary data to build the tracer object in finalize_tracer.

See also: meta, unwrap, TracerSchema, SaverSchema, finalize_tracer

source


# PromptingTools.last_messageMethod.

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.length_longest_common_subsequenceMethod.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"\ntext2 = "___ab_c__abc"\nlongest_common_subsequence(text1, text2)\n# Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]\nquery = "Which product can you recommend for me?"\nlet pos = argmax(length_longest_common_subsequence.(Ref(query), commands))\n    dist = length_longest_common_subsequence(query, commands[pos])\n    norm = dist / min(length(query), length(commands[pos]))\n    @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"\nend

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!

\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/utils.jl#L252-L288)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.list_aliases-Tuple{}' href='#PromptingTools.list_aliases-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.list_aliases</u></b> &mdash; <i>Method</i>.\n\n\n\n\nShows the Dictionary of model aliases in the registry. Add more with `MODEL_ALIASES[alias] = model_name`.\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L914)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.list_registry-Tuple{}' href='#PromptingTools.list_registry-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.list_registry</u></b> &mdash; <i>Method</i>.\n\n\n\n\nShows the list of models in the registry. Add more with `register_model!`.\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L912)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.load_api_keys!-Tuple{}' href='#PromptingTools.load_api_keys!-Tuple{}'>#</a>&nbsp;<b><u>PromptingTools.load_api_keys!</u></b> &mdash; <i>Method</i>.\n\n\n\n\nLoads API keys from environment variables and preferences\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L154)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.load_conversation-Tuple{Union{AbstractString, IO}}' href='#PromptingTools.load_conversation-Tuple{Union{AbstractString, IO}}'>#</a>&nbsp;<b><u>PromptingTools.load_conversation</u></b> &mdash; <i>Method</i>.\n\n\n\n\n```julia\nload_conversation(io_or_file::Union{IO, AbstractString})

Loads a conversation (messages) from io_or_file

source


# PromptingTools.load_templateMethod.
julia
load_template(io_or_file::Union{IO, AbstractString})

Loads messaging template from io_or_file and returns tuple of template messages and metadata.

source


# PromptingTools.load_templates!Function.
julia
load_templates!(dir_templates::Union{String, Nothing} = nothing;\n    remember_path::Bool = true,\n    remove_templates::Bool = isnothing(dir_templates),\n    store::Dict{Symbol, <:Any} = TEMPLATE_STORE,\n    metadata_store::Vector{<:AITemplateMetadata} = TEMPLATE_METADATA)

Loads templates from folder templates/ in the package root and stores them in TEMPLATE_STORE and TEMPLATE_METADATA.

Note: Automatically removes any existing templates and metadata from TEMPLATE_STORE and TEMPLATE_METADATA if remove_templates=true.

Arguments

Example

Load the default templates:

julia
PT.load_templates!() # no path needed

Load templates from a new custom path:

julia
PT.load_templates!("path/to/templates") # we will remember this path for future refresh

If you want to now refresh the default templates and the new path, just call load_templates!() without any arguments.

source


# PromptingTools.metaMethod.

Extracts the metadata dictionary from the tracer message or tracer-like object.

source


# PromptingTools.ollama_apiFunction.
julia
ollama_api(prompt_schema::Union{AbstractOllamaManagedSchema, AbstractOllamaSchema},\n    prompt::Union{AbstractString, Nothing} = nothing;\n    system::Union{Nothing, AbstractString} = nothing,\n    messages::Vector{<:AbstractMessage} = AbstractMessage[],\n    endpoint::String = "generate",\n    model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),\n    stream::Bool = false,\n    url::String = "localhost", port::Int = 11434,\n    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

source


# PromptingTools.pprintFunction.

Utility for pretty printing PromptingTools types in REPL.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, conversation::AbstractVector{<:AbstractMessage})

Pretty print a vector of AbstractMessage to the given IO stream.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, msg::AbstractMessage; text_width::Int = displaysize(io)[2])

Pretty print a single AbstractMessage to the given IO stream.

text_width is the width of the text to be displayed. If not provided, it defaults to the width of the given IO stream and add newline separators as needed.

source


# PromptingTools.previewFunction.

Utility for rendering the conversation (vector of messages) as markdown. REQUIRES the Markdown package to load the extension! See also pprint

source


# PromptingTools.push_conversation!Method.
julia
push_conversation!(conv_history, conversation::AbstractVector, max_history::Union{Int, Nothing})

Add a new conversation to the conversation history and resize the history if necessary.

This function appends a conversation to the conv_history, which is a vector of conversations. Each conversation is represented as a vector of AbstractMessage objects. After adding the new conversation, the history is resized according to the max_history parameter to ensure that the size of the history does not exceed the specified limit.

Arguments

Returns

The updated conversation history.

Example

julia
new_conversation = aigenerate("Hello World"; return_all = true)\npush_conversation!(PT.CONV_HISTORY, new_conversation, 10)

This is done automatically by the ai"" macros.

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\\n\\n", "\\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n"] # split by paragraphs, sentences, and newlines (not by words)\nchunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", ". ", "\\n", " "] # split by paragraphs, sentences, and newlines, words\nchunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters\nchunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\\n\\n", "\\n", " ", ""].

julia
text = "Paragraph 1\\n\\nParagraph 2. Sentence 1. Sentence 2.\\nParagraph 3"\nseparators = ["\\n\\n", "\\n", " ", ""]\nchunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"\nchunks = recursive_splitter(text; max_length=13)\nlength(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars\nrecursive_splitter(text; separator=",", max_length=10000) # for 4K context window\nlength(chunks[1]) # Output: 4

source


# PromptingTools.register_model!Function.
julia
register_model!(registry = MODEL_REGISTRY;\n    name::String,\n    schema::Union{AbstractPromptSchema, Nothing} = nothing,\n    cost_of_token_prompt::Float64 = 0.0,\n    cost_of_token_generation::Float64 = 0.0,\n    description::String = "")

Register a new AI model with name and its associated schema.

Registering a model helps with calculating the costs and automatically selecting the right prompt schema.

Arguments

source


# PromptingTools.remove_julia_promptMethod.
julia
remove_julia_prompt(s::T) where {T<:AbstractString}

If it detects a julia prompt, it removes it and all lines that do not have it (except for those that belong to the code block).

source


# PromptingTools.remove_templates!Method.
julia
    remove_templates!()

Removes all templates from TEMPLATE_STORE and TEMPLATE_METADATA.

source


# PromptingTools.remove_unsafe_linesMethod.

Iterates over the lines of a string and removes those that contain a package operation or a missing import.

source


# PromptingTools.renderMethod.

Renders provided messaging template (template) under the default schema (PROMPT_SCHEMA).

source


', 45); const _hoisted_300 = { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }; const _hoisted_301 = /* @__PURE__ */ createBaseVNode("a", { id: "PromptingTools.render-Tuple{PromptingTools.AbstractAnthropicSchema, Vector{<:PromptingTools.AbstractMessage}}", @@ -419,7 +419,7 @@ const _hoisted_306 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_307 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_anthropic.jl#L7-L19", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_anthropic.jl#L7-L19", target: "_blank", rel: "noreferrer" }, "source") @@ -448,7 +448,7 @@ const _hoisted_315 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_316 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_google.jl#L9-L20", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_google.jl#L9-L20", target: "_blank", rel: "noreferrer" }, "source") @@ -482,7 +482,7 @@ const _hoisted_325 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_326 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_ollama_managed.jl#L9-L21", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_ollama_managed.jl#L9-L21", target: "_blank", rel: "noreferrer" }, "source") @@ -511,7 +511,7 @@ const _hoisted_334 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_335 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_ollama.jl#L11-L22", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_ollama.jl#L11-L22", target: "_blank", rel: "noreferrer" }, "source") @@ -527,8 +527,8 @@ const _hoisted_339 = /* @__PURE__ */ createBaseVNode("b", null, [ ], -1); const _hoisted_340 = /* @__PURE__ */ createBaseVNode("i", null, "Method", -1); const _hoisted_341 = /* @__PURE__ */ createStaticVNode('
julia
render(schema::AbstractOpenAISchema,\n    messages::Vector{<:AbstractMessage};\n    image_detail::AbstractString = "auto",\n    conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],\n    kwargs...)
', 1); -const _hoisted_342 = /* @__PURE__ */ createStaticVNode('

Keyword Arguments

source

', 3); -const _hoisted_345 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.renderMethod.
julia
render(tracer_schema::AbstractTracerSchema,\n    conv::AbstractVector{<:AbstractMessage}; kwargs...)

Passthrough. No changes.

source


', 3); +const _hoisted_342 = /* @__PURE__ */ createStaticVNode('

Keyword Arguments

source

', 3); +const _hoisted_345 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.renderMethod.
julia
render(tracer_schema::AbstractTracerSchema,\n    conv::AbstractVector{<:AbstractMessage}; kwargs...)

Passthrough. No changes.

source


', 3); const _hoisted_348 = { style: { "border-width": "1px", "border-style": "solid", "border-color": "black", "padding": "1em", "border-radius": "25px" } }; const _hoisted_349 = /* @__PURE__ */ createBaseVNode("a", { id: "PromptingTools.render-Tuple{PromptingTools.NoSchema, Vector{<:PromptingTools.AbstractMessage}}", @@ -547,12 +547,12 @@ const _hoisted_359 = /* @__PURE__ */ createBaseVNode("li", null, [ ], -1); const _hoisted_360 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_shared.jl#L10-L28", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_shared.jl#L10-L28", target: "_blank", rel: "noreferrer" }, "source") ], -1); -const _hoisted_361 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.replace_wordsMethod.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"\nreplace_words(text, ["Disney", "Snow White", "Mickey Mouse"])\n# Output: "ABC is a great company"

source


# PromptingTools.resize_conversation!Method.
julia
resize_conversation!(conv_history, max_history::Union{Int, Nothing})

Resize the conversation history to a specified maximum length.

This function trims the conv_history to ensure that its size does not exceed max_history. It removes the oldest conversations first if the length of conv_history is greater than max_history.

Arguments

Returns

The resized conversation history.

Example

julia
resize_conversation!(PT.CONV_HISTORY, PT.MAX_HISTORY_LENGTH)

After the function call, conv_history will contain only the 10 most recent conversations.

This is done automatically by the ai"" macros.

source


# PromptingTools.response_to_messageMethod.
julia
response_to_message(schema::AbstractOpenAISchema,\n    MSG::Type{AIMessage},\n    choice,\n    resp;\n    model_id::AbstractString = "",\n    time::Float64 = 0.0,\n    run_id::Integer = rand(Int16),\n    sample_id::Union{Nothing, Integer} = nothing)

Utility to facilitate unwrapping of HTTP response to a message type MSG provided for OpenAI-like responses

Note: Extracts finish_reason and log_prob if available in the response.

Arguments

source


# PromptingTools.response_to_messageMethod.

Utility to facilitate unwrapping of HTTP response to a message type MSG provided. Designed to handle multi-sample completions.

source


# PromptingTools.save_conversationMethod.
julia
save_conversation(io_or_file::Union{IO, AbstractString},\n    messages::AbstractVector{<:AbstractMessage})

Saves provided conversation (messages) to io_or_file. If you need to add some metadata, see save_template.

source


# PromptingTools.save_conversationsMethod.
julia
save_conversations(schema::AbstractPromptSchema, filename::AbstractString,\n    conversations::Vector{<:AbstractVector{<:PT.AbstractMessage}})

Saves provided conversations (vector of vectors of messages) to filename rendered in the particular schema.

Commonly used for finetuning models with schema = ShareGPTSchema()

The format is JSON Lines, where each line is a JSON object representing one provided conversation.

See also: save_conversation

Examples

You must always provide a VECTOR of conversations

julia
messages = AbstractMessage[SystemMessage("System message 1"),\n    UserMessage("User message"),\n    AIMessage("AI message")]\nconversation = [messages] # vector of vectors\n\ndir = tempdir()\nfn = joinpath(dir, "conversations.jsonl")\nsave_conversations(fn, conversation)\n\n# Content of the file (one line for each conversation)\n# {"conversations":[{"value":"System message 1","from":"system"},{"value":"User message","from":"human"},{"value":"AI message","from":"gpt"}]}

source


# PromptingTools.save_templateMethod.
julia
save_template(io_or_file::Union{IO, AbstractString},\n    messages::AbstractVector{<:AbstractChatMessage};\n    content::AbstractString = "Template Metadata",\n    description::AbstractString = "",\n    version::AbstractString = "1",\n    source::AbstractString = "")

Saves provided messaging template (messages) to io_or_file. Automatically adds metadata based on provided keyword arguments.

source


# PromptingTools.set_preferences!Method.
julia
set_preferences!(pairs::Pair{String, <:Any}...)

Set preferences for PromptingTools. See ?PREFERENCES for more information.

See also: get_preferences

Example

Change your API key and default model:

julia
PromptingTools.set_preferences!("OPENAI_API_KEY" => "key1", "MODEL_CHAT" => "chat1")

source


# PromptingTools.unique_permutationMethod.
julia
unique_permutation(inputs::AbstractVector)

Returns indices of unique items in a vector inputs. Access the unique values as inputs[unique_permutation(inputs)].

source


# PromptingTools.unwrapMethod.

Unwraps the tracer message or tracer-like object, returning the original object.

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,\n    text_width::Int = 20;\n    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.@aai_strMacro.
julia
aai"user_prompt"[model_alias] -> AIMessage

Asynchronous version of @ai_str macro, which will log the result once it's ready.

See also aai!"" if you want an asynchronous reply to the provided message / continue the conversation.

Example

Send asynchronous request to GPT-4, so we don't have to wait for the response: Very practical with slow models, so you can keep working in the meantime.

julia
\n**...with some delay...**\n\n**[ Info: Tokens: 29 @ Cost: 0.0011\n in 2.7 seconds**\n\n**[ Info: AIMessage> Hello! How can I assist you today?**\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/macros.jl#L99-L116)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.@ai!_str-Tuple{Any, Vararg{Any}}' href='#PromptingTools.@ai!_str-Tuple{Any, Vararg{Any}}'>#</a>&nbsp;<b><u>PromptingTools.@ai!_str</u></b> &mdash; <i>Macro</i>.\n\n\n\n\n```julia\nai!"user_prompt"[model_alias] -> AIMessage

The ai!"" string macro is used to continue a previous conversation with the AI model.

It appends the new user prompt to the last conversation in the tracked history (in PromptingTools.CONV_HISTORY) and generates a response based on the entire conversation context. If you want to see the previous conversation, you can access it via PromptingTools.CONV_HISTORY, which keeps at most last PromptingTools.MAX_HISTORY_LENGTH conversations.

Arguments

Returns

AIMessage corresponding to the new user prompt, considering the entire conversation history.

Example

To continue a conversation:

julia
# start conversation as normal\nai"Say hi." \n\n# ... wait for reply and then react to it:\n\n# continue the conversation (notice that you can change the model, eg, to more powerful one for better answer)\nai!"What do you think about that?"gpt4t\n# AIMessage("Considering our previous discussion, I think that...")

Usage Notes

Important

Ensure that the conversation history is not too long to maintain relevancy and coherence in the AI's responses. The history length is managed by MAX_HISTORY_LENGTH.

source


# PromptingTools.@ai_strMacro.
julia
ai"user_prompt"[model_alias] -> AIMessage

The ai"" string macro generates an AI response to a given prompt by using aigenerate under the hood.

See also ai!"" if you want to reply to the provided message / continue the conversation.

Arguments

Returns

AIMessage corresponding to the input prompt.

Example

julia
result = ai"Hello, how are you?"\n# AIMessage("Hello! I'm an AI assistant, so I don't have feelings, but I'm here to help you. How can I assist you today?")

If you want to interpolate some variables or additional context, simply use string interpolation:

julia
a=1\nresult = ai"What is `$a+$a`?"\n# AIMessage("The sum of `1+1` is `2`.")

If you want to use a different model, eg, GPT-4, you can provide its alias as a flag:

julia
result = ai"What is `1.23 * 100 + 1`?"gpt4t\n# AIMessage("The answer is 124.")

source


# PromptingTools.@timeoutMacro.
julia
@timeout(seconds, expr_to_run, expr_when_fails)

Simple macro to run an expression with a timeout of seconds. If the expr_to_run fails to finish in seconds seconds, expr_when_fails is returned.

Example

julia
x = @timeout 1 begin\n    sleep(1.1)\n    println("done")\n    1\nend "failed"

source


', 29); +const _hoisted_361 = /* @__PURE__ */ createStaticVNode('
# PromptingTools.replace_wordsMethod.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"\nreplace_words(text, ["Disney", "Snow White", "Mickey Mouse"])\n# Output: "ABC is a great company"

source


# PromptingTools.resize_conversation!Method.
julia
resize_conversation!(conv_history, max_history::Union{Int, Nothing})

Resize the conversation history to a specified maximum length.

This function trims the conv_history to ensure that its size does not exceed max_history. It removes the oldest conversations first if the length of conv_history is greater than max_history.

Arguments

Returns

The resized conversation history.

Example

julia
resize_conversation!(PT.CONV_HISTORY, PT.MAX_HISTORY_LENGTH)

After the function call, conv_history will contain only the 10 most recent conversations.

This is done automatically by the ai"" macros.

source


# PromptingTools.response_to_messageMethod.
julia
response_to_message(schema::AbstractOpenAISchema,\n    MSG::Type{AIMessage},\n    choice,\n    resp;\n    model_id::AbstractString = "",\n    time::Float64 = 0.0,\n    run_id::Integer = rand(Int16),\n    sample_id::Union{Nothing, Integer} = nothing)

Utility to facilitate unwrapping of HTTP response to a message type MSG provided for OpenAI-like responses

Note: Extracts finish_reason and log_prob if available in the response.

Arguments

source


# PromptingTools.response_to_messageMethod.

Utility to facilitate unwrapping of HTTP response to a message type MSG provided. Designed to handle multi-sample completions.

source


# PromptingTools.save_conversationMethod.
julia
save_conversation(io_or_file::Union{IO, AbstractString},\n    messages::AbstractVector{<:AbstractMessage})

Saves provided conversation (messages) to io_or_file. If you need to add some metadata, see save_template.

source


# PromptingTools.save_conversationsMethod.
julia
save_conversations(schema::AbstractPromptSchema, filename::AbstractString,\n    conversations::Vector{<:AbstractVector{<:PT.AbstractMessage}})

Saves provided conversations (vector of vectors of messages) to filename rendered in the particular schema.

Commonly used for finetuning models with schema = ShareGPTSchema()

The format is JSON Lines, where each line is a JSON object representing one provided conversation.

See also: save_conversation

Examples

You must always provide a VECTOR of conversations

julia
messages = AbstractMessage[SystemMessage("System message 1"),\n    UserMessage("User message"),\n    AIMessage("AI message")]\nconversation = [messages] # vector of vectors\n\ndir = tempdir()\nfn = joinpath(dir, "conversations.jsonl")\nsave_conversations(fn, conversation)\n\n# Content of the file (one line for each conversation)\n# {"conversations":[{"value":"System message 1","from":"system"},{"value":"User message","from":"human"},{"value":"AI message","from":"gpt"}]}

source


# PromptingTools.save_templateMethod.
julia
save_template(io_or_file::Union{IO, AbstractString},\n    messages::AbstractVector{<:AbstractChatMessage};\n    content::AbstractString = "Template Metadata",\n    description::AbstractString = "",\n    version::AbstractString = "1",\n    source::AbstractString = "")

Saves provided messaging template (messages) to io_or_file. Automatically adds metadata based on provided keyword arguments.

source


# PromptingTools.set_preferences!Method.
julia
set_preferences!(pairs::Pair{String, <:Any}...)

Set preferences for PromptingTools. See ?PREFERENCES for more information.

See also: get_preferences

Example

Change your API key and default model:

julia
PromptingTools.set_preferences!("OPENAI_API_KEY" => "key1", "MODEL_CHAT" => "chat1")

source


# PromptingTools.unique_permutationMethod.
julia
unique_permutation(inputs::AbstractVector)

Returns indices of unique items in a vector inputs. Access the unique values as inputs[unique_permutation(inputs)].

source


# PromptingTools.unwrapMethod.

Unwraps the tracer message or tracer-like object, returning the original object.

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,\n    text_width::Int = 20;\n    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.@aai_strMacro.
julia
aai"user_prompt"[model_alias] -> AIMessage

Asynchronous version of @ai_str macro, which will log the result once it's ready.

See also aai!"" if you want an asynchronous reply to the provided message / continue the conversation.

Example

Send asynchronous request to GPT-4, so we don't have to wait for the response: Very practical with slow models, so you can keep working in the meantime.

julia
\n**...with some delay...**\n\n**[ Info: Tokens: 29 @ Cost: 0.0011\n in 2.7 seconds**\n\n**[ Info: AIMessage> Hello! How can I assist you today?**\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/macros.jl#L99-L116)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.@ai!_str-Tuple{Any, Vararg{Any}}' href='#PromptingTools.@ai!_str-Tuple{Any, Vararg{Any}}'>#</a>&nbsp;<b><u>PromptingTools.@ai!_str</u></b> &mdash; <i>Macro</i>.\n\n\n\n\n```julia\nai!"user_prompt"[model_alias] -> AIMessage

The ai!"" string macro is used to continue a previous conversation with the AI model.

It appends the new user prompt to the last conversation in the tracked history (in PromptingTools.CONV_HISTORY) and generates a response based on the entire conversation context. If you want to see the previous conversation, you can access it via PromptingTools.CONV_HISTORY, which keeps at most last PromptingTools.MAX_HISTORY_LENGTH conversations.

Arguments

Returns

AIMessage corresponding to the new user prompt, considering the entire conversation history.

Example

To continue a conversation:

julia
# start conversation as normal\nai"Say hi." \n\n# ... wait for reply and then react to it:\n\n# continue the conversation (notice that you can change the model, eg, to more powerful one for better answer)\nai!"What do you think about that?"gpt4t\n# AIMessage("Considering our previous discussion, I think that...")

Usage Notes

Important

Ensure that the conversation history is not too long to maintain relevancy and coherence in the AI's responses. The history length is managed by MAX_HISTORY_LENGTH.

source


# PromptingTools.@ai_strMacro.
julia
ai"user_prompt"[model_alias] -> AIMessage

The ai"" string macro generates an AI response to a given prompt by using aigenerate under the hood.

See also ai!"" if you want to reply to the provided message / continue the conversation.

Arguments

Returns

AIMessage corresponding to the input prompt.

Example

julia
result = ai"Hello, how are you?"\n# AIMessage("Hello! I'm an AI assistant, so I don't have feelings, but I'm here to help you. How can I assist you today?")

If you want to interpolate some variables or additional context, simply use string interpolation:

julia
a=1\nresult = ai"What is `$a+$a`?"\n# AIMessage("The sum of `1+1` is `2`.")

If you want to use a different model, eg, GPT-4, you can provide its alias as a flag:

julia
result = ai"What is `1.23 * 100 + 1`?"gpt4t\n# AIMessage("The answer is 124.")

source


# PromptingTools.@timeoutMacro.
julia
@timeout(seconds, expr_to_run, expr_when_fails)

Simple macro to run an expression with a timeout of seconds. If the expr_to_run fails to finish in seconds seconds, expr_when_fails is returned.

Example

julia
x = @timeout 1 begin\n    sleep(1.1)\n    println("done")\n    1\nend "failed"

source


', 29); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("div", null, [ _hoisted_1, diff --git a/dev/assets/reference.md.CAg04DWR.lean.js b/dev/assets/reference.md.Ud_SMp1n.lean.js similarity index 97% rename from dev/assets/reference.md.CAg04DWR.lean.js rename to dev/assets/reference.md.Ud_SMp1n.lean.js index 7824166b6..2e44fa43e 100644 --- a/dev/assets/reference.md.CAg04DWR.lean.js +++ b/dev/assets/reference.md.Ud_SMp1n.lean.js @@ -19,7 +19,7 @@ const _hoisted_40 = /* @__PURE__ */ createBaseVNode("a", { }, "here", -1); const _hoisted_41 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_interface.jl#L286-L300", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_interface.jl#L286-L300", target: "_blank", rel: "noreferrer" }, "source") @@ -301,7 +301,7 @@ const _hoisted_254 = /* @__PURE__ */ createBaseVNode("div", { style: { "border-w ]), /* @__PURE__ */ createTextVNode("\n"), /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [ - /* @__PURE__ */ createBaseVNode("span", null, "[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/extraction.jl#L96-L164)") + /* @__PURE__ */ createBaseVNode("span", null, "[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/extraction.jl#L96-L164)") ]), /* @__PURE__ */ createTextVNode("\n"), /* @__PURE__ */ createBaseVNode("span", { class: "line" }, [ @@ -383,7 +383,7 @@ const _hoisted_254 = /* @__PURE__ */ createBaseVNode("div", { style: { "border-w ]), /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L108-L119", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L108-L119", target: "_blank", rel: "noreferrer" }, "source") @@ -419,7 +419,7 @@ const _hoisted_306 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_307 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_anthropic.jl#L7-L19", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_anthropic.jl#L7-L19", target: "_blank", rel: "noreferrer" }, "source") @@ -448,7 +448,7 @@ const _hoisted_315 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_316 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_google.jl#L9-L20", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_google.jl#L9-L20", target: "_blank", rel: "noreferrer" }, "source") @@ -482,7 +482,7 @@ const _hoisted_325 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_326 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_ollama_managed.jl#L9-L21", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_ollama_managed.jl#L9-L21", target: "_blank", rel: "noreferrer" }, "source") @@ -511,7 +511,7 @@ const _hoisted_334 = /* @__PURE__ */ createBaseVNode("ul", null, [ ], -1); const _hoisted_335 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_ollama.jl#L11-L22", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_ollama.jl#L11-L22", target: "_blank", rel: "noreferrer" }, "source") @@ -547,7 +547,7 @@ const _hoisted_359 = /* @__PURE__ */ createBaseVNode("li", null, [ ], -1); const _hoisted_360 = /* @__PURE__ */ createBaseVNode("p", null, [ /* @__PURE__ */ createBaseVNode("a", { - href: "https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/llm_shared.jl#L10-L28", + href: "https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/llm_shared.jl#L10-L28", target: "_blank", rel: "noreferrer" }, "source") diff --git a/dev/assets/reference_agenttools.md.D3tITjg2.js b/dev/assets/reference_agenttools.md.Mh6J_xkG.js similarity index 97% rename from dev/assets/reference_agenttools.md.D3tITjg2.js rename to dev/assets/reference_agenttools.md.Mh6J_xkG.js index 12e1cad87..95a8c8ad0 100644 --- a/dev/assets/reference_agenttools.md.D3tITjg2.js +++ b/dev/assets/reference_agenttools.md.Mh6J_xkG.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Reference for AgentTools","description":"","frontmatter":{},"headers":[],"relativePath":"reference_agenttools.md","filePath":"reference_agenttools.md","lastUpdated":null}'); const _sfc_main = { name: "reference_agenttools.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for AgentTools

# PromptingTools.Experimental.AgentToolsModule.
julia
AgentTools

Provides Agentic functionality providing lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}\n\nAIGenerate(args...; kwargs...)\nAIEmbed(args...; kwargs...)\nAIExtract(args...; kwargs...)

A lazy call wrapper for AI functions in the PromptingTools module, such as aigenerate.

The AICall struct is designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This approach allows for more flexible and efficient handling of AI function calls, especially in interactive environments.

Seel also: run!, AICodeFixer

Fields

Example

Initiate an AICall like any ai* function, eg, AIGenerate:

julia
aicall = AICall(aigenerate)\n\n# With arguments and kwargs like ai* functions\n# from `aigenerate(schema, conversation; model="abc", api_kwargs=(; temperature=0.1))`\n# to\naicall = AICall(aigenerate, schema, conversation; model="abc", api_kwargs=(; temperature=0.1)\n\n# Or with a template\naicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!\n````\n\nYou can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

source


# PromptingTools.Experimental.AgentTools.AICodeFixerType.
julia
AICodeFixer(aicall::AICall, templates::Vector{<:PT.UserMessage}; num_rounds::Int = 3, feedback_func::Function = aicodefixer_feedback; kwargs...)\nAICodeFixer(aicall::AICall, template::Union{AITemplate, Symbol} = :CodeFixerRCI; kwargs...)

An AIAgent that iteratively evaluates any received Julia code and provides feedback back to the AI model if num_rounds>0. AICodeFixer manages the lifecycle of a code fixing session, including tracking conversation history, rounds of interaction, and applying user feedback through a specialized feedback function.

It integrates with lazy AI call structures like AIGenerate.

The operation is "lazy", ie, the agent is only executed when needed, eg, when run! is called.

Fields

Note: Any kwargs provided to run!() will be passed to the underlying AICall.

Example

Let's create an AIGenerate call and then pipe it to AICodeFixer to run a few rounds of the coding fixing:

julia
# Create an AIGenerate call\nlazy_call = AIGenerate("Write a function to do XYZ...")\n\n# the action starts only when `run!` is called\nresult = lazy_call |> AICodeFixer |> run!\n\n# Access the result of the code fixing session\n# result.call refers to the AIGenerate lazy call above\nconversation = result.call.conversation\nfixed_code = last(conversation) # usually in the last message\n\n# Preview the conversation history\npreview(conversation)

You can change the template used to provide user feedback and number of counds via arguments:

julia
# Setup an AIGenerate call\nlazy_call = AIGenerate(aigenerate, "Write code to do XYZ...")\n\n# Custom template and 2 fixing rounds\nresult = AICodeFixer(lazy_call, [PT.UserMessage("Please fix the code.\n\nFeedback: {{feedback}}")]; num_rounds = 2) |> run!\n\n# The result now contains the AI's attempts to fix the code\npreview(result.call.conversation)

Notes

source


# PromptingTools.Experimental.AgentTools.RetryConfigType.
julia
RetryConfig

Configuration for self-fixing the AI calls. It includes the following fields:

Fields

source


# PromptingTools.Experimental.AgentTools.SampleNodeType.
julia
SampleNode{T}

A node in the Monte Carlo Tree Search tree.

It's used to hold the data we're trying to optimize/discover (eg, a conversation), the scores from evaluation (wins, visits) and the results of the evaluations upon failure (feedback).

Fields

source


# PromptingTools.Experimental.AgentTools.ThompsonSamplingType.
julia
ThompsonSampling <: AbstractScoringMethod

Implements scoring and selection for Thompson Sampling method. See https://en.wikipedia.org/wiki/Thompson_sampling for more details.

source


# PromptingTools.Experimental.AgentTools.UCTType.
julia
UCT <: AbstractScoringMethod

Implements scoring and selection for UCT (Upper Confidence Bound for Trees) sampling method. See https://en.wikipedia.org/wiki/Monte_Carlo_tree_search#Exploration_and_exploitation for more details.

source


# PromptingTools.Experimental.AgentTools.AIClassifyMethod.
julia
AIClassify(args...; kwargs...)

Creates a lazy instance of aiclassify. It is an instance of AICall with aiclassify as the function.

Use exactly the same arguments and keyword arguments as aiclassify (see ?aiclassify for details).

source


# PromptingTools.Experimental.AgentTools.AIEmbedMethod.
julia
AIEmbed(args...; kwargs...)

Creates a lazy instance of aiembed. It is an instance of AICall with aiembed as the function.

Use exactly the same arguments and keyword arguments as aiembed (see ?aiembed for details).

source


# PromptingTools.Experimental.AgentTools.AIExtractMethod.
julia
AIExtract(args...; kwargs...)

Creates a lazy instance of aiextract. It is an instance of AICall with aiextract as the function.

Use exactly the same arguments and keyword arguments as aiextract (see ?aiextract for details).

source


# PromptingTools.Experimental.AgentTools.AIGenerateMethod.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AIScanMethod.
julia
AIScan(args...; kwargs...)

Creates a lazy instance of aiscan. It is an instance of AICall with aiscan as the function.

Use exactly the same arguments and keyword arguments as aiscan (see ?aiscan for details).

source


# PromptingTools.Experimental.AgentTools.add_feedback!Method.
julia
add_feedback!(\n    conversation::AbstractVector{<:PT.AbstractMessage}, sample::SampleNode; feedback_inplace::Bool = false,\n    feedback_template::Symbol = :FeedbackFromEvaluator)

Adds formatted feedback to the conversation based on the sample node feedback (and its ancestors).

Arguments

Example

julia
sample = SampleNode(; data = nothing, feedback = "Feedback X")\nconversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")]\nconversation = AT.add_feedback!(conversation, sample)\nconversation[end].content == "### Feedback from Evaluator\\nFeedback X\\n"\n\nInplace feedback:

julia conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample; feedback_inplace = true) conversation[end].content == "I say hi!\\n\\n### Feedback from Evaluator\\nFeedback X\\n"

\nSample with ancestors with feedback:

julia sample_p = SampleNode(; data = nothing, feedback = "\\nFeedback X") sample = expand!(sample_p, nothing) sample.feedback = "\\nFeedback Y" conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample)

conversation[end].content == "### Feedback from Evaluator\\n\\nFeedback X\\n–––––\\n\\nFeedback Y\\n" ```

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackMethod.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

Returns

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)\nnew_kwargs = aicodefixer_feedback(cb)\n\nnew_kwargs = aicodefixer_feedback(msg)\nnew_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(\n    f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";\n    verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,\n    max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

Gotchas

Arguments

Returns

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model\nout = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(out) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, out; retry_delay = 2, max_retries = 2)

If you provide arguments to the aicall, we try to honor them as much as possible in the following calls, eg, set low verbosity

julia
out = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\nmodel = "NOTEXIST", verbose=false)\nrun!(out)\n# No info message, you just see `success = false` in the properties of the AICall

Let's show a toy example to demonstrate the runtime checks / guardrails for the model output. We'll play a color guessing game (I'm thinking "yellow"):

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n\n## Let's ensure that the output is in lowercase - simple and short\nairetry!(x -> all(islowercase, last_output(x)), out, "You must answer in lowercase.")\n# [ Info: Condition not met. Retrying...\n\n\n## Let's add final hint - it took us 2 retries\nairetry!(x -> startswith(last_output(x), "y"), out, "It starts with "y"")\n# [ Info: Condition not met. Retrying...\n# [ Info: Condition not met. Retrying...\n\n\n## We end up with the correct answer\nlast_output(out)\n# Output: "yellow"

Let's explore how we got here. We save the various attempts in a "tree" (SampleNode object) You can access it in out.samples, which is the ROOT of the tree (top level). Currently "active" sample ID is out.active_sample_id -> that's the same as conversation field in your AICall.

julia
# Root node:\nout.samples\n# Output: SampleNode(id: 46839, stats: 6/12, length: 2)\n\n# Active sample (our correct answer):\nout.active_sample_id \n# Output: 50086\n\n# Let's obtain the active sample node with this ID  - use getindex notation or function find_node\nout.samples[out.active_sample_id]\n# Output: SampleNode(id: 50086, stats: 1/1, length: 7)\n\n# The SampleNode has two key fields: data and feedback. Data is where the conversation is stored:\nactive_sample = out.samples[out.active_sample_id]\nactive_sample.data == out.conversation # Output: true -> This is the winning guess!

We also get a clear view of the tree structure of all samples with print_samples:

julia
julia> print_samples(out.samples)\nSampleNode(id: 46839, stats: 6/12, score: 0.5, length: 2)\n├─ SampleNode(id: 12940, stats: 5/8, score: 1.41, length: 4)\n│  ├─ SampleNode(id: 34315, stats: 3/4, score: 1.77, length: 6)\n│  │  ├─ SampleNode(id: 20493, stats: 1/1, score: 2.67, length: 7)\n│  │  └─ SampleNode(id: 50086, stats: 1/1, score: 2.67, length: 7)\n│  └─ SampleNode(id: 2733, stats: 1/2, score: 1.94, length: 5)\n└─ SampleNode(id: 48343, stats: 1/4, score: 1.36, length: 4)\n   ├─ SampleNode(id: 30088, stats: 0/1, score: 1.67, length: 5)\n   └─ SampleNode(id: 44816, stats: 0/1, score: 1.67, length: 5)

You can use the id to grab and inspect any of these nodes, eg,

julia
out.samples[2733]\n# Output: SampleNode(id: 2733, stats: 1/2, length: 5)

We can also iterate through all samples and extract whatever information we want with PostOrderDFS or PreOrderDFS (exported from AbstractTrees.jl)

julia
for sample in PostOrderDFS(out.samples)\n    # Data is the universal field for samples, we put `conversation` in there\n    # Last item in data is the last message in coversation\n    msg = sample.data[end]\n    if msg isa PT.AIMessage # skip feedback\n        # get only the message content, ie, the guess\n        println("ID: $(sample.id), Answer: $(msg.content)")\n    end\nend\n\n# ID: 20493, Answer: yellow\n# ID: 50086, Answer: yellow\n# ID: 2733, Answer: red\n# ID: 30088, Answer: blue\n# ID: 44816, Answer: blue

Note: airetry! will attempt to fix the model max_retries times. If you set throw=true, it will throw an ErrorException if the condition is not met after max_retries retries.

Let's define a mini program to guess the number and use airetry! to guide the model to the correct answer:

julia
"""\n    llm_guesser()\n\nMini program to guess the number provided by the user (betwee 1-100).\n"""\nfunction llm_guesser(user_number::Int)\n    @assert 1 <= user_number <= 100\n    prompt = """\nI'm thinking a number between 1-100. Guess which one it is. \nYou must respond only with digits and nothing else. \nYour guess:"""\n    ## 2 samples at a time, max 5 fixing rounds\n    out = AIGenerate(prompt; config = RetryConfig(; n_samples = 2, max_retries = 5),\n        api_kwargs = (; n = 2)) |> run!\n    ## Check the proper output format - must parse to Int, use do-syntax\n    ## We can provide feedback via a function!\n    function feedback_f(aicall)\n        "Output: $(last_output(aicall))\nFeedback: You must respond only with digits!!"\n    end\n    airetry!(out, feedback_f) do aicall\n        !isnothing(tryparse(Int, last_output(aicall)))\n    end\n    ## Give a hint on bounds\n    lower_bound = (user_number ÷ 10) * 10\n    upper_bound = lower_bound + 10\n    airetry!(\n        out, "The number is between or equal to $lower_bound to $upper_bound.") do aicall\n        guess = tryparse(Int, last_output(aicall))\n        lower_bound <= guess <= upper_bound\n    end\n    ## You can make at most 3x guess now -- if there is max_retries in `config.max_retries` left\n    max_retries = out.config.retries + 3\n    function feedback_f2(aicall)\n        guess = tryparse(Int, last_output(aicall))\n        "Your guess of $(guess) is wrong, it's $(abs(guess-user_number)) numbers away."\n    end\n    airetry!(out, feedback_f2; max_retries) do aicall\n        tryparse(Int, last_output(aicall)) == user_number\n    end\n\n    ## Evaluate the best guess\n    @info "Results: Guess: $(last_output(out)) vs User: $user_number (Number of calls made: $(out.config.calls))"\n    return out\nend\n\n# Let's play the game\nout = llm_guesser(33)\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Results: Guess: 33 vs User: 33 (Number of calls made: 10)

Yay! We got it 😃

Now, we could explore different samples (eg, print_samples(out.samples)) or see what the model guessed at each step:

julia
print_samples(out.samples)\n## SampleNode(id: 57694, stats: 6/14, score: 0.43, length: 2)\n## ├─ SampleNode(id: 35603, stats: 5/10, score: 1.23, length: 4)\n## │  ├─ SampleNode(id: 55394, stats: 1/4, score: 1.32, length: 6)\n## │  │  ├─ SampleNode(id: 20737, stats: 0/1, score: 1.67, length: 7)\n## │  │  └─ SampleNode(id: 52910, stats: 0/1, score: 1.67, length: 7)\n## │  └─ SampleNode(id: 43094, stats: 3/4, score: 1.82, length: 6)\n## │     ├─ SampleNode(id: 14966, stats: 1/1, score: 2.67, length: 7)\n## │     └─ SampleNode(id: 32991, stats: 1/1, score: 2.67, length: 7)\n## └─ SampleNode(id: 20506, stats: 1/4, score: 1.4, length: 4)\n##    ├─ SampleNode(id: 37581, stats: 0/1, score: 1.67, length: 5)\n##    └─ SampleNode(id: 46632, stats: 0/1, score: 1.67, length: 5)\n\n# Lastly, let's check all the guesses AI made across all samples. \n# Our winning guess was ID 32991 (`out.active_sample_id`)\n\nfor sample in PostOrderDFS(out.samples)\n    [println("ID: $(sample.id), Guess: $(msg.content)")\n     for msg in sample.data if msg isa PT.AIMessage]\nend\n## ID: 20737, Guess: 50\n## ID: 20737, Guess: 35\n## ID: 20737, Guess: 37\n## ID: 52910, Guess: 50\n## ID: 52910, Guess: 35\n## ID: 52910, Guess: 32\n## ID: 14966, Guess: 50\n## ID: 14966, Guess: 35\n## ID: 14966, Guess: 33\n## ID: 32991, Guess: 50\n## ID: 32991, Guess: 35\n## ID: 32991, Guess: 33\n## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.backpropagate!Method.

Provides scores for a given node (and all its ancestors) based on the evaluation (wins, visits).

source


# PromptingTools.Experimental.AgentTools.beta_sampleMethod.
julia
beta_sample::Real, β::Real)

Approximates a sample from the Beta distribution by generating two independent Gamma distributed samples and using their ratio.

source


# PromptingTools.Experimental.AgentTools.collect_all_feedbackMethod.

Collects all feedback from the node and its ancestors (parents). Returns a string separated by separator.

source


# PromptingTools.Experimental.AgentTools.error_feedbackMethod.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


# PromptingTools.Experimental.AgentTools.evaluate_condition!Function.
julia
evaluate_condition!(f_cond::Function, aicall::AICallBlock,\n    feedback::Union{AbstractString, Function} = "";\n    evaluate_all::Bool = true, feedback_expensive::Bool = false)

Evalutes the condition f_cond (must return Bool) on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback.

Mutating as the results are saved in aicall.samples

If evaluate_all is true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample..

For f_cond and feedback functions, you can use the last_message and last_output utilities to access the last message and last output in the conversation, respectively.

Arguments

Returns

Example

julia
# Mimic AIGenerate run!\naicall = AIGenerate("Say hi!"; config = RetryConfig(; n_samples = 2))\nsample = expand!(aicall.samples, aicall.conversation; success = true)\naicall.active_sample_id = sample.id\n\n# Return whether it passed and node to take the next action from\ncond, node = AT.evaluate_condition!(x -> occursin("hi", last_output(x)), aicall)\n\n# Checks:\ncond == true\nnode == sample\nnode.wins == 1

With feedback: ```julia

Mimic AIGenerate run with feedback

aicall = AIGenerate( :BlankSystemUser; system = "a", user = "b") sample = expand!(aicall.samples, aicall.conversation; success = true) aicall.active_sample_id = sample.id

Evaluate

cond, node = AT.evaluate_condition!( x -> occursin("NOTFOUND", last_output(x)), aicall, "Feedback X") cond == false # fail sample == node # same node (no other choice) node.wins == 0 node.feedback == " Feedback X"

source


# PromptingTools.Experimental.AgentTools.expand!Method.

Expands the tree with a new node from parent using the given data and success.

source


# PromptingTools.Experimental.AgentTools.extract_configMethod.

Extracts config::RetryConfig from kwargs and returns the rest of the kwargs.

source


# PromptingTools.Experimental.AgentTools.find_nodeMethod.

Finds a node with a given id in the tree starting from node.

source


# PromptingTools.Experimental.AgentTools.gamma_sampleMethod.
julia
gamma_sample::Real, θ::Real)

Approximates a sample from the Gamma distribution using the Marsaglia and Tsang method.

source


# PromptingTools.Experimental.AgentTools.print_samplesMethod.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.Experimental.AgentTools.remove_used_kwargsMethod.

Removes the kwargs that have already been used in the conversation. Returns NamedTuple.

source


# PromptingTools.Experimental.AgentTools.reset_success!Function.

Sets the success field of all nodes in the tree to success value.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(codefixer::AICodeFixer; verbose::Int = 1, max_conversation_length::Int = 32000, run_kwargs...)

Executes the code fixing process encapsulated by the AICodeFixer instance. This method iteratively refines and fixes code by running the AI call in a loop for a specified number of rounds, using feedback from the code evaluation (aicodefixer_feedback) to improve the outcome in each iteration.

Arguments

Returns

Usage

julia
aicall = AICall(aigenerate, schema=mySchema, conversation=myConversation)\ncodefixer = AICodeFixer(aicall, myTemplates; num_rounds=5)\nresult = run!(codefixer, verbose=2)

Notes

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(aicall::AICallBlock; verbose::Int = 1, catch_errors::Bool = false, return_all::Bool = true, kwargs...)

Executes the AI call wrapped by an AICallBlock instance. This method triggers the actual communication with the AI model and processes the response based on the provided conversation context and parameters.

Note: Currently return_all must always be set to true.

Arguments

Returns

Example

julia
aicall = AICall(aigenerate)\nrun!(aicall)

Alternatively, you can trigger the run! call by using the AICall as a functor and calling it with a string or a UserMessage:

julia
aicall = AICall(aigenerate)\naicall("Say hi!")

Notes

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the ThomsonSampling method, similar to Bandit algorithms.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the UCT (Upper Confidence Bound for Trees) method.

source


# PromptingTools.Experimental.AgentTools.select_bestFunction.
julia
select_best(node::SampleNode, scoring::AbstractScoringMethod = UCT();\n    ordering::Symbol = :PostOrderDFS)

Selects the best node from the tree using the given scoring (UCT or ThompsonSampling). Defaults to UCT. Thompson Sampling is more random with small samples, while UCT stabilizes much quicker thanks to looking at parent nodes as well.

Ordering can be either :PreOrderDFS or :PostOrderDFS. Defaults to :PostOrderDFS, which favors the leaves (end points of the tree).

Example

Compare the different scoring methods:

julia
# Set up mock samples and scores\ndata = PT.AbstractMessage[]\nroot = SampleNode(; data)\nchild1 = expand!(root, data)\nbackpropagate!(child1; wins = 1, visits = 1)\nchild2 = expand!(root, data)\nbackpropagate!(child2; wins = 0, visits = 1)\nchild11 = expand!(child1, data)\nbackpropagate!(child11; wins = 1, visits = 1)\n\n# Select with UCT\nn = select_best(root, UCT())\nSampleNode(id: 29826, stats: 1/1, length: 0)\n\n# Show the tree:\nprint_samples(root; scoring = UCT())\n## SampleNode(id: 13184, stats: 2/3, score: 0.67, length: 0)\n## ├─ SampleNode(id: 26078, stats: 2/2, score: 2.05, length: 0)\n## │  └─ SampleNode(id: 29826, stats: 1/1, score: 2.18, length: 0)\n## └─ SampleNode(id: 39931, stats: 0/1, score: 1.48, length: 0)\n\n# Select with ThompsonSampling - much more random with small samples\nn = select_best(root, ThompsonSampling())\nSampleNode(id: 26078, stats: 2/2, length: 0)\n\n# Show the tree (run it a few times and see how the scores jump around):\nprint_samples(root; scoring = ThompsonSampling())\n## SampleNode(id: 13184, stats: 2/3, score: 0.6, length: 0)\n## ├─ SampleNode(id: 26078, stats: 2/2, score: 0.93, length: 0)\n## │  └─ SampleNode(id: 29826, stats: 1/1, score: 0.22, length: 0)\n## └─ SampleNode(id: 39931, stats: 0/1, score: 0.84, length: 0)

source


# PromptingTools.Experimental.AgentTools.split_multi_samplesMethod.

If the conversation has multiple AIMessage samples, split them into separate conversations with the common past.

source


# PromptingTools.Experimental.AgentTools.truncate_conversationMethod.
julia
truncate_conversation(conversation::AbstractVector{<:PT.AbstractMessage};\n    max_conversation_length::Int = 32000)

Truncates a given conversation to a max_conversation_length characters by removing messages "in the middle". It tries to retain the original system+user message and also the most recent messages.

Practically, if a conversation is too long, it will start by removing the most recent message EXCEPT for the last two (assumed to be the last AIMessage with the code and UserMessage with the feedback

Arguments

max_conversation_length is in characters; assume c. 2-3 characters per LLM token, so 32000 should correspond to 16K context window.

source


# PromptingTools.Experimental.AgentTools.unwrap_aicall_argsMethod.

Unwraps the arguments for AICall and returns the schema and conversation (if provided). Expands any provided AITemplate.

source


# PromptingTools.last_messageMethod.

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source


', 76); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for AgentTools

# PromptingTools.Experimental.AgentToolsModule.
julia
AgentTools

Provides Agentic functionality providing lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}\n\nAIGenerate(args...; kwargs...)\nAIEmbed(args...; kwargs...)\nAIExtract(args...; kwargs...)

A lazy call wrapper for AI functions in the PromptingTools module, such as aigenerate.

The AICall struct is designed to facilitate a deferred execution model (lazy evaluation) for AI functions that interact with a Language Learning Model (LLM). It stores the necessary information for an AI call and executes the underlying AI function only when supplied with a UserMessage or when the run! method is applied. This approach allows for more flexible and efficient handling of AI function calls, especially in interactive environments.

Seel also: run!, AICodeFixer

Fields

Example

Initiate an AICall like any ai* function, eg, AIGenerate:

julia
aicall = AICall(aigenerate)\n\n# With arguments and kwargs like ai* functions\n# from `aigenerate(schema, conversation; model="abc", api_kwargs=(; temperature=0.1))`\n# to\naicall = AICall(aigenerate, schema, conversation; model="abc", api_kwargs=(; temperature=0.1)\n\n# Or with a template\naicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!\n````\n\nYou can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

source


# PromptingTools.Experimental.AgentTools.AICodeFixerType.
julia
AICodeFixer(aicall::AICall, templates::Vector{<:PT.UserMessage}; num_rounds::Int = 3, feedback_func::Function = aicodefixer_feedback; kwargs...)\nAICodeFixer(aicall::AICall, template::Union{AITemplate, Symbol} = :CodeFixerRCI; kwargs...)

An AIAgent that iteratively evaluates any received Julia code and provides feedback back to the AI model if num_rounds>0. AICodeFixer manages the lifecycle of a code fixing session, including tracking conversation history, rounds of interaction, and applying user feedback through a specialized feedback function.

It integrates with lazy AI call structures like AIGenerate.

The operation is "lazy", ie, the agent is only executed when needed, eg, when run! is called.

Fields

Note: Any kwargs provided to run!() will be passed to the underlying AICall.

Example

Let's create an AIGenerate call and then pipe it to AICodeFixer to run a few rounds of the coding fixing:

julia
# Create an AIGenerate call\nlazy_call = AIGenerate("Write a function to do XYZ...")\n\n# the action starts only when `run!` is called\nresult = lazy_call |> AICodeFixer |> run!\n\n# Access the result of the code fixing session\n# result.call refers to the AIGenerate lazy call above\nconversation = result.call.conversation\nfixed_code = last(conversation) # usually in the last message\n\n# Preview the conversation history\npreview(conversation)

You can change the template used to provide user feedback and number of counds via arguments:

julia
# Setup an AIGenerate call\nlazy_call = AIGenerate(aigenerate, "Write code to do XYZ...")\n\n# Custom template and 2 fixing rounds\nresult = AICodeFixer(lazy_call, [PT.UserMessage("Please fix the code.\n\nFeedback: {{feedback}}")]; num_rounds = 2) |> run!\n\n# The result now contains the AI's attempts to fix the code\npreview(result.call.conversation)

Notes

source


# PromptingTools.Experimental.AgentTools.RetryConfigType.
julia
RetryConfig

Configuration for self-fixing the AI calls. It includes the following fields:

Fields

source


# PromptingTools.Experimental.AgentTools.SampleNodeType.
julia
SampleNode{T}

A node in the Monte Carlo Tree Search tree.

It's used to hold the data we're trying to optimize/discover (eg, a conversation), the scores from evaluation (wins, visits) and the results of the evaluations upon failure (feedback).

Fields

source


# PromptingTools.Experimental.AgentTools.ThompsonSamplingType.
julia
ThompsonSampling <: AbstractScoringMethod

Implements scoring and selection for Thompson Sampling method. See https://en.wikipedia.org/wiki/Thompson_sampling for more details.

source


# PromptingTools.Experimental.AgentTools.UCTType.
julia
UCT <: AbstractScoringMethod

Implements scoring and selection for UCT (Upper Confidence Bound for Trees) sampling method. See https://en.wikipedia.org/wiki/Monte_Carlo_tree_search#Exploration_and_exploitation for more details.

source


# PromptingTools.Experimental.AgentTools.AIClassifyMethod.
julia
AIClassify(args...; kwargs...)

Creates a lazy instance of aiclassify. It is an instance of AICall with aiclassify as the function.

Use exactly the same arguments and keyword arguments as aiclassify (see ?aiclassify for details).

source


# PromptingTools.Experimental.AgentTools.AIEmbedMethod.
julia
AIEmbed(args...; kwargs...)

Creates a lazy instance of aiembed. It is an instance of AICall with aiembed as the function.

Use exactly the same arguments and keyword arguments as aiembed (see ?aiembed for details).

source


# PromptingTools.Experimental.AgentTools.AIExtractMethod.
julia
AIExtract(args...; kwargs...)

Creates a lazy instance of aiextract. It is an instance of AICall with aiextract as the function.

Use exactly the same arguments and keyword arguments as aiextract (see ?aiextract for details).

source


# PromptingTools.Experimental.AgentTools.AIGenerateMethod.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AIScanMethod.
julia
AIScan(args...; kwargs...)

Creates a lazy instance of aiscan. It is an instance of AICall with aiscan as the function.

Use exactly the same arguments and keyword arguments as aiscan (see ?aiscan for details).

source


# PromptingTools.Experimental.AgentTools.add_feedback!Method.
julia
add_feedback!(\n    conversation::AbstractVector{<:PT.AbstractMessage}, sample::SampleNode; feedback_inplace::Bool = false,\n    feedback_template::Symbol = :FeedbackFromEvaluator)

Adds formatted feedback to the conversation based on the sample node feedback (and its ancestors).

Arguments

Example

julia
sample = SampleNode(; data = nothing, feedback = "Feedback X")\nconversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")]\nconversation = AT.add_feedback!(conversation, sample)\nconversation[end].content == "### Feedback from Evaluator\\nFeedback X\\n"\n\nInplace feedback:

julia conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample; feedback_inplace = true) conversation[end].content == "I say hi!\\n\\n### Feedback from Evaluator\\nFeedback X\\n"

\nSample with ancestors with feedback:

julia sample_p = SampleNode(; data = nothing, feedback = "\\nFeedback X") sample = expand!(sample_p, nothing) sample.feedback = "\\nFeedback Y" conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample)

conversation[end].content == "### Feedback from Evaluator\\n\\nFeedback X\\n–––––\\n\\nFeedback Y\\n" ```

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackMethod.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)\naicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

Returns

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)\nnew_kwargs = aicodefixer_feedback(cb)\n\nnew_kwargs = aicodefixer_feedback(msg)\nnew_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(\n    f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";\n    verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,\n    max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

Gotchas

Arguments

Returns

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model\nout = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\n    model = "NOTEXIST")\nrun!(out) # fails\n\n# we ask to wait 2s between retries and retry 2 times (can be set in `config` in aicall as well)\nairetry!(isvalid, out; retry_delay = 2, max_retries = 2)

If you provide arguments to the aicall, we try to honor them as much as possible in the following calls, eg, set low verbosity

julia
out = AIGenerate("say hi!"; config = RetryConfig(; catch_errors = true),\nmodel = "NOTEXIST", verbose=false)\nrun!(out)\n# No info message, you just see `success = false` in the properties of the AICall

Let's show a toy example to demonstrate the runtime checks / guardrails for the model output. We'll play a color guessing game (I'm thinking "yellow"):

julia
# Notice that we ask for two samples (`n_samples=2`) at each attempt (to improve our chances). \n# Both guesses are scored at each time step, and the best one is chosen for the next step.\n# And with OpenAI, we can set `api_kwargs = (;n=2)` to get both samples simultaneously (cheaper and faster)!\nout = AIGenerate(\n    "Guess what color I'm thinking. It could be: blue, red, black, white, yellow. Answer with 1 word only";\n    verbose = false,\n    config = RetryConfig(; n_samples = 2), api_kwargs = (; n = 2))\nrun!(out)\n\n\n## Check that the output is 1 word only, third argument is the feedback that will be provided if the condition fails\n## Notice: functions operate on `aicall` as the only argument. We can use utilities like `last_output` and `last_message` to access the last message and output in the conversation.\nairetry!(x -> length(split(last_output(x), r" |\\.")) == 1, out,\n    "You must answer with 1 word only.")\n\n\n## Let's ensure that the output is in lowercase - simple and short\nairetry!(x -> all(islowercase, last_output(x)), out, "You must answer in lowercase.")\n# [ Info: Condition not met. Retrying...\n\n\n## Let's add final hint - it took us 2 retries\nairetry!(x -> startswith(last_output(x), "y"), out, "It starts with "y"")\n# [ Info: Condition not met. Retrying...\n# [ Info: Condition not met. Retrying...\n\n\n## We end up with the correct answer\nlast_output(out)\n# Output: "yellow"

Let's explore how we got here. We save the various attempts in a "tree" (SampleNode object) You can access it in out.samples, which is the ROOT of the tree (top level). Currently "active" sample ID is out.active_sample_id -> that's the same as conversation field in your AICall.

julia
# Root node:\nout.samples\n# Output: SampleNode(id: 46839, stats: 6/12, length: 2)\n\n# Active sample (our correct answer):\nout.active_sample_id \n# Output: 50086\n\n# Let's obtain the active sample node with this ID  - use getindex notation or function find_node\nout.samples[out.active_sample_id]\n# Output: SampleNode(id: 50086, stats: 1/1, length: 7)\n\n# The SampleNode has two key fields: data and feedback. Data is where the conversation is stored:\nactive_sample = out.samples[out.active_sample_id]\nactive_sample.data == out.conversation # Output: true -> This is the winning guess!

We also get a clear view of the tree structure of all samples with print_samples:

julia
julia> print_samples(out.samples)\nSampleNode(id: 46839, stats: 6/12, score: 0.5, length: 2)\n├─ SampleNode(id: 12940, stats: 5/8, score: 1.41, length: 4)\n│  ├─ SampleNode(id: 34315, stats: 3/4, score: 1.77, length: 6)\n│  │  ├─ SampleNode(id: 20493, stats: 1/1, score: 2.67, length: 7)\n│  │  └─ SampleNode(id: 50086, stats: 1/1, score: 2.67, length: 7)\n│  └─ SampleNode(id: 2733, stats: 1/2, score: 1.94, length: 5)\n└─ SampleNode(id: 48343, stats: 1/4, score: 1.36, length: 4)\n   ├─ SampleNode(id: 30088, stats: 0/1, score: 1.67, length: 5)\n   └─ SampleNode(id: 44816, stats: 0/1, score: 1.67, length: 5)

You can use the id to grab and inspect any of these nodes, eg,

julia
out.samples[2733]\n# Output: SampleNode(id: 2733, stats: 1/2, length: 5)

We can also iterate through all samples and extract whatever information we want with PostOrderDFS or PreOrderDFS (exported from AbstractTrees.jl)

julia
for sample in PostOrderDFS(out.samples)\n    # Data is the universal field for samples, we put `conversation` in there\n    # Last item in data is the last message in coversation\n    msg = sample.data[end]\n    if msg isa PT.AIMessage # skip feedback\n        # get only the message content, ie, the guess\n        println("ID: $(sample.id), Answer: $(msg.content)")\n    end\nend\n\n# ID: 20493, Answer: yellow\n# ID: 50086, Answer: yellow\n# ID: 2733, Answer: red\n# ID: 30088, Answer: blue\n# ID: 44816, Answer: blue

Note: airetry! will attempt to fix the model max_retries times. If you set throw=true, it will throw an ErrorException if the condition is not met after max_retries retries.

Let's define a mini program to guess the number and use airetry! to guide the model to the correct answer:

julia
"""\n    llm_guesser()\n\nMini program to guess the number provided by the user (betwee 1-100).\n"""\nfunction llm_guesser(user_number::Int)\n    @assert 1 <= user_number <= 100\n    prompt = """\nI'm thinking a number between 1-100. Guess which one it is. \nYou must respond only with digits and nothing else. \nYour guess:"""\n    ## 2 samples at a time, max 5 fixing rounds\n    out = AIGenerate(prompt; config = RetryConfig(; n_samples = 2, max_retries = 5),\n        api_kwargs = (; n = 2)) |> run!\n    ## Check the proper output format - must parse to Int, use do-syntax\n    ## We can provide feedback via a function!\n    function feedback_f(aicall)\n        "Output: $(last_output(aicall))\nFeedback: You must respond only with digits!!"\n    end\n    airetry!(out, feedback_f) do aicall\n        !isnothing(tryparse(Int, last_output(aicall)))\n    end\n    ## Give a hint on bounds\n    lower_bound = (user_number ÷ 10) * 10\n    upper_bound = lower_bound + 10\n    airetry!(\n        out, "The number is between or equal to $lower_bound to $upper_bound.") do aicall\n        guess = tryparse(Int, last_output(aicall))\n        lower_bound <= guess <= upper_bound\n    end\n    ## You can make at most 3x guess now -- if there is max_retries in `config.max_retries` left\n    max_retries = out.config.retries + 3\n    function feedback_f2(aicall)\n        guess = tryparse(Int, last_output(aicall))\n        "Your guess of $(guess) is wrong, it's $(abs(guess-user_number)) numbers away."\n    end\n    airetry!(out, feedback_f2; max_retries) do aicall\n        tryparse(Int, last_output(aicall)) == user_number\n    end\n\n    ## Evaluate the best guess\n    @info "Results: Guess: $(last_output(out)) vs User: $user_number (Number of calls made: $(out.config.calls))"\n    return out\nend\n\n# Let's play the game\nout = llm_guesser(33)\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Condition not met. Retrying...\n[ Info: Results: Guess: 33 vs User: 33 (Number of calls made: 10)

Yay! We got it 😃

Now, we could explore different samples (eg, print_samples(out.samples)) or see what the model guessed at each step:

julia
print_samples(out.samples)\n## SampleNode(id: 57694, stats: 6/14, score: 0.43, length: 2)\n## ├─ SampleNode(id: 35603, stats: 5/10, score: 1.23, length: 4)\n## │  ├─ SampleNode(id: 55394, stats: 1/4, score: 1.32, length: 6)\n## │  │  ├─ SampleNode(id: 20737, stats: 0/1, score: 1.67, length: 7)\n## │  │  └─ SampleNode(id: 52910, stats: 0/1, score: 1.67, length: 7)\n## │  └─ SampleNode(id: 43094, stats: 3/4, score: 1.82, length: 6)\n## │     ├─ SampleNode(id: 14966, stats: 1/1, score: 2.67, length: 7)\n## │     └─ SampleNode(id: 32991, stats: 1/1, score: 2.67, length: 7)\n## └─ SampleNode(id: 20506, stats: 1/4, score: 1.4, length: 4)\n##    ├─ SampleNode(id: 37581, stats: 0/1, score: 1.67, length: 5)\n##    └─ SampleNode(id: 46632, stats: 0/1, score: 1.67, length: 5)\n\n# Lastly, let's check all the guesses AI made across all samples. \n# Our winning guess was ID 32991 (`out.active_sample_id`)\n\nfor sample in PostOrderDFS(out.samples)\n    [println("ID: $(sample.id), Guess: $(msg.content)")\n     for msg in sample.data if msg isa PT.AIMessage]\nend\n## ID: 20737, Guess: 50\n## ID: 20737, Guess: 35\n## ID: 20737, Guess: 37\n## ID: 52910, Guess: 50\n## ID: 52910, Guess: 35\n## ID: 52910, Guess: 32\n## ID: 14966, Guess: 50\n## ID: 14966, Guess: 35\n## ID: 14966, Guess: 33\n## ID: 32991, Guess: 50\n## ID: 32991, Guess: 35\n## ID: 32991, Guess: 33\n## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.backpropagate!Method.

Provides scores for a given node (and all its ancestors) based on the evaluation (wins, visits).

source


# PromptingTools.Experimental.AgentTools.beta_sampleMethod.
julia
beta_sample::Real, β::Real)

Approximates a sample from the Beta distribution by generating two independent Gamma distributed samples and using their ratio.

source


# PromptingTools.Experimental.AgentTools.collect_all_feedbackMethod.

Collects all feedback from the node and its ancestors (parents). Returns a string separated by separator.

source


# PromptingTools.Experimental.AgentTools.error_feedbackMethod.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


# PromptingTools.Experimental.AgentTools.evaluate_condition!Function.
julia
evaluate_condition!(f_cond::Function, aicall::AICallBlock,\n    feedback::Union{AbstractString, Function} = "";\n    evaluate_all::Bool = true, feedback_expensive::Bool = false)

Evalutes the condition f_cond (must return Bool) on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback.

Mutating as the results are saved in aicall.samples

If evaluate_all is true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample..

For f_cond and feedback functions, you can use the last_message and last_output utilities to access the last message and last output in the conversation, respectively.

Arguments

Returns

Example

julia
# Mimic AIGenerate run!\naicall = AIGenerate("Say hi!"; config = RetryConfig(; n_samples = 2))\nsample = expand!(aicall.samples, aicall.conversation; success = true)\naicall.active_sample_id = sample.id\n\n# Return whether it passed and node to take the next action from\ncond, node = AT.evaluate_condition!(x -> occursin("hi", last_output(x)), aicall)\n\n# Checks:\ncond == true\nnode == sample\nnode.wins == 1

With feedback: ```julia

Mimic AIGenerate run with feedback

aicall = AIGenerate( :BlankSystemUser; system = "a", user = "b") sample = expand!(aicall.samples, aicall.conversation; success = true) aicall.active_sample_id = sample.id

Evaluate

cond, node = AT.evaluate_condition!( x -> occursin("NOTFOUND", last_output(x)), aicall, "Feedback X") cond == false # fail sample == node # same node (no other choice) node.wins == 0 node.feedback == " Feedback X"

source


# PromptingTools.Experimental.AgentTools.expand!Method.

Expands the tree with a new node from parent using the given data and success.

source


# PromptingTools.Experimental.AgentTools.extract_configMethod.

Extracts config::RetryConfig from kwargs and returns the rest of the kwargs.

source


# PromptingTools.Experimental.AgentTools.find_nodeMethod.

Finds a node with a given id in the tree starting from node.

source


# PromptingTools.Experimental.AgentTools.gamma_sampleMethod.
julia
gamma_sample::Real, θ::Real)

Approximates a sample from the Gamma distribution using the Marsaglia and Tsang method.

source


# PromptingTools.Experimental.AgentTools.print_samplesMethod.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.Experimental.AgentTools.remove_used_kwargsMethod.

Removes the kwargs that have already been used in the conversation. Returns NamedTuple.

source


# PromptingTools.Experimental.AgentTools.reset_success!Function.

Sets the success field of all nodes in the tree to success value.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(codefixer::AICodeFixer; verbose::Int = 1, max_conversation_length::Int = 32000, run_kwargs...)

Executes the code fixing process encapsulated by the AICodeFixer instance. This method iteratively refines and fixes code by running the AI call in a loop for a specified number of rounds, using feedback from the code evaluation (aicodefixer_feedback) to improve the outcome in each iteration.

Arguments

Returns

Usage

julia
aicall = AICall(aigenerate, schema=mySchema, conversation=myConversation)\ncodefixer = AICodeFixer(aicall, myTemplates; num_rounds=5)\nresult = run!(codefixer, verbose=2)

Notes

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(aicall::AICallBlock; verbose::Int = 1, catch_errors::Bool = false, return_all::Bool = true, kwargs...)

Executes the AI call wrapped by an AICallBlock instance. This method triggers the actual communication with the AI model and processes the response based on the provided conversation context and parameters.

Note: Currently return_all must always be set to true.

Arguments

Returns

Example

julia
aicall = AICall(aigenerate)\nrun!(aicall)

Alternatively, you can trigger the run! call by using the AICall as a functor and calling it with a string or a UserMessage:

julia
aicall = AICall(aigenerate)\naicall("Say hi!")

Notes

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the ThomsonSampling method, similar to Bandit algorithms.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the UCT (Upper Confidence Bound for Trees) method.

source


# PromptingTools.Experimental.AgentTools.select_bestFunction.
julia
select_best(node::SampleNode, scoring::AbstractScoringMethod = UCT();\n    ordering::Symbol = :PostOrderDFS)

Selects the best node from the tree using the given scoring (UCT or ThompsonSampling). Defaults to UCT. Thompson Sampling is more random with small samples, while UCT stabilizes much quicker thanks to looking at parent nodes as well.

Ordering can be either :PreOrderDFS or :PostOrderDFS. Defaults to :PostOrderDFS, which favors the leaves (end points of the tree).

Example

Compare the different scoring methods:

julia
# Set up mock samples and scores\ndata = PT.AbstractMessage[]\nroot = SampleNode(; data)\nchild1 = expand!(root, data)\nbackpropagate!(child1; wins = 1, visits = 1)\nchild2 = expand!(root, data)\nbackpropagate!(child2; wins = 0, visits = 1)\nchild11 = expand!(child1, data)\nbackpropagate!(child11; wins = 1, visits = 1)\n\n# Select with UCT\nn = select_best(root, UCT())\nSampleNode(id: 29826, stats: 1/1, length: 0)\n\n# Show the tree:\nprint_samples(root; scoring = UCT())\n## SampleNode(id: 13184, stats: 2/3, score: 0.67, length: 0)\n## ├─ SampleNode(id: 26078, stats: 2/2, score: 2.05, length: 0)\n## │  └─ SampleNode(id: 29826, stats: 1/1, score: 2.18, length: 0)\n## └─ SampleNode(id: 39931, stats: 0/1, score: 1.48, length: 0)\n\n# Select with ThompsonSampling - much more random with small samples\nn = select_best(root, ThompsonSampling())\nSampleNode(id: 26078, stats: 2/2, length: 0)\n\n# Show the tree (run it a few times and see how the scores jump around):\nprint_samples(root; scoring = ThompsonSampling())\n## SampleNode(id: 13184, stats: 2/3, score: 0.6, length: 0)\n## ├─ SampleNode(id: 26078, stats: 2/2, score: 0.93, length: 0)\n## │  └─ SampleNode(id: 29826, stats: 1/1, score: 0.22, length: 0)\n## └─ SampleNode(id: 39931, stats: 0/1, score: 0.84, length: 0)

source


# PromptingTools.Experimental.AgentTools.split_multi_samplesMethod.

If the conversation has multiple AIMessage samples, split them into separate conversations with the common past.

source


# PromptingTools.Experimental.AgentTools.truncate_conversationMethod.
julia
truncate_conversation(conversation::AbstractVector{<:PT.AbstractMessage};\n    max_conversation_length::Int = 32000)

Truncates a given conversation to a max_conversation_length characters by removing messages "in the middle". It tries to retain the original system+user message and also the most recent messages.

Practically, if a conversation is too long, it will start by removing the most recent message EXCEPT for the last two (assumed to be the last AIMessage with the code and UserMessage with the feedback

Arguments

max_conversation_length is in characters; assume c. 2-3 characters per LLM token, so 32000 should correspond to 16K context window.

source


# PromptingTools.Experimental.AgentTools.unwrap_aicall_argsMethod.

Unwraps the arguments for AICall and returns the schema and conversation (if provided). Expands any provided AITemplate.

source


# PromptingTools.last_messageMethod.

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source


', 76); const _hoisted_77 = [ _hoisted_1 ]; diff --git a/dev/assets/reference_agenttools.md.D3tITjg2.lean.js b/dev/assets/reference_agenttools.md.Mh6J_xkG.lean.js similarity index 100% rename from dev/assets/reference_agenttools.md.D3tITjg2.lean.js rename to dev/assets/reference_agenttools.md.Mh6J_xkG.lean.js diff --git a/dev/assets/reference_apitools.md.DFChcjHy.js b/dev/assets/reference_apitools.md.D-H_XvV3.js similarity index 97% rename from dev/assets/reference_apitools.md.DFChcjHy.js rename to dev/assets/reference_apitools.md.D-H_XvV3.js index 29e241299..44886cc89 100644 --- a/dev/assets/reference_apitools.md.DFChcjHy.js +++ b/dev/assets/reference_apitools.md.D-H_XvV3.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Reference for APITools","description":"","frontmatter":{},"headers":[],"relativePath":"reference_apitools.md","filePath":"reference_apitools.md","lastUpdated":null}'); const _sfc_main = { name: "reference_apitools.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for APITools

# PromptingTools.Experimental.APITools.create_websearchMethod.
julia
create_websearch(query::AbstractString;\n    api_key::AbstractString,\n    search_depth::AbstractString = "basic")

Arguments

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


# PromptingTools.Experimental.APITools.tavily_apiMethod.
julia
tavily_api(;\n    api_key::AbstractString,\n    endpoint::String = "search",\n    url::AbstractString = "https://api.tavily.com",\n    http_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Sends API requests to Tavily and returns the response.

source


', 6); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for APITools

# PromptingTools.Experimental.APITools.create_websearchMethod.
julia
create_websearch(query::AbstractString;\n    api_key::AbstractString,\n    search_depth::AbstractString = "basic")

Arguments

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


# PromptingTools.Experimental.APITools.tavily_apiMethod.
julia
tavily_api(;\n    api_key::AbstractString,\n    endpoint::String = "search",\n    url::AbstractString = "https://api.tavily.com",\n    http_kwargs::NamedTuple = NamedTuple(),\n    kwargs...)

Sends API requests to Tavily and returns the response.

source


', 6); const _hoisted_7 = [ _hoisted_1 ]; diff --git a/dev/assets/reference_apitools.md.DFChcjHy.lean.js b/dev/assets/reference_apitools.md.D-H_XvV3.lean.js similarity index 100% rename from dev/assets/reference_apitools.md.DFChcjHy.lean.js rename to dev/assets/reference_apitools.md.D-H_XvV3.lean.js diff --git a/dev/assets/reference_experimental.md.DKoVf3wG.js b/dev/assets/reference_experimental.md.DC6rrNQd.js similarity index 97% rename from dev/assets/reference_experimental.md.DKoVf3wG.js rename to dev/assets/reference_experimental.md.DC6rrNQd.js index ec18251e1..f9ac0a14a 100644 --- a/dev/assets/reference_experimental.md.DKoVf3wG.js +++ b/dev/assets/reference_experimental.md.DC6rrNQd.js @@ -1,7 +1,7 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Reference for Experimental Module","description":"","frontmatter":{},"headers":[],"relativePath":"reference_experimental.md","filePath":"reference_experimental.md","lastUpdated":null}'); const _sfc_main = { name: "reference_experimental.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for Experimental Module

Note: This module is experimental and may change in future releases. The intention is for the functionality to be moved to separate packages over time.

# PromptingTools.ExperimentalModule.
julia
Experimental

This module is for experimental code that is not yet ready for production. It is not included in the main module, so it must be explicitly imported.

Contains:

source


', 5); +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for Experimental Module

Note: This module is experimental and may change in future releases. The intention is for the functionality to be moved to separate packages over time.

# PromptingTools.ExperimentalModule.
julia
Experimental

This module is for experimental code that is not yet ready for production. It is not included in the main module, so it must be explicitly imported.

Contains:

source


', 5); const _hoisted_6 = [ _hoisted_1 ]; diff --git a/dev/assets/reference_experimental.md.DKoVf3wG.lean.js b/dev/assets/reference_experimental.md.DC6rrNQd.lean.js similarity index 100% rename from dev/assets/reference_experimental.md.DKoVf3wG.lean.js rename to dev/assets/reference_experimental.md.DC6rrNQd.lean.js diff --git a/dev/assets/reference_ragtools.md.B2JuNvyi.js b/dev/assets/reference_ragtools.md.B2JuNvyi.js new file mode 100644 index 000000000..593a506db --- /dev/null +++ b/dev/assets/reference_ragtools.md.B2JuNvyi.js @@ -0,0 +1,15 @@ +import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; +const __pageData = JSON.parse('{"title":"Reference for RAGTools","description":"","frontmatter":{},"headers":[],"relativePath":"reference_ragtools.md","filePath":"reference_ragtools.md","lastUpdated":null}'); +const _sfc_main = { name: "reference_ragtools.md" }; +const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for RAGTools

# PromptingTools.Experimental.RAGToolsModule.
julia
RAGTools

Provides Retrieval-Augmented Generation (RAG) functionality.

Requires: LinearAlgebra, SparseArrays, Unicode, PromptingTools for proper functionality.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.RAGTools.AbstractCandidateChunksType.
julia
AbstractCandidateChunks

Abstract type for storing candidate chunks, ie, references to items in a AbstractChunkIndex.

Return type from find_closest and find_tags functions.

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractChunkIndexType.
julia
AbstractChunkIndex <: AbstractDocumentIndex

Main abstract type for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractGeneratorType.
julia
AbstractGenerator <: AbstractGenerationMethod

Abstract type for generating an answer with generate! (use to change the process / return type of generate).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractIndexBuilderType.
julia
AbstractIndexBuilder

Abstract type for building an index with build_index (use to change the process / return type of build_index).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractMultiIndexType.
julia
AbstractMultiIndex <: AbstractDocumentIndex

Experimental abstract type for storing multiple document indexes. Not yet implemented.

source


# PromptingTools.Experimental.RAGTools.AbstractRetrieverType.
julia
AbstractRetriever <: AbstractRetrievalMethod

Abstract type for retrieving chunks from an index with retrieve (use to change the process / return type of retrieve).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AdvancedGeneratorType.
julia
AdvancedGenerator <: AbstractGenerator

Default implementation for generate!. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, SimpleRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.AdvancedRetrieverType.
julia
AdvancedRetriever <: AbstractRetriever

Dispatch for retrieve with advanced retrieval methods to improve result quality. Compared to SimpleRetriever, it adds rephrasing the query and reranking the results.

Fields

source


# PromptingTools.Experimental.RAGTools.AllTagFilterType.
julia
AllTagFilter <: AbstractTagFilter

Finds the chunks that have ALL OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.AnnotatedNodeType.
julia
AnnotatedNode{T}  <: AbstractAnnotatedNode

A node to add annotations to the generated answer in airag

Annotations can be: sources, scores, whether its supported or not by the context, etc.

Fields

source


# PromptingTools.Experimental.RAGTools.AnyTagFilterType.
julia
AnyTagFilter <: AbstractTagFilter

Finds the chunks that have ANY OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.BM25SimilarityType.
julia
BM25Similarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the BM25 similarity between the query and the chunks' embeddings in binary form.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.BatchEmbedderType.
julia
BatchEmbedder <: AbstractEmbedder

Default embedder for get_embeddings functions. It passes individual documents to be embedded in chunks to aiembed.

source


# PromptingTools.Experimental.RAGTools.BinaryBatchEmbedderType.
julia
BinaryBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form (eg, BitMatrix).

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BinaryCosineSimilarityType.
julia
BinaryCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

It follows the two-pass approach:

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedBatchEmbedderType.
julia
BitPackedBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form packed in UInt64 (eg, BitMatrix.chunks).

See also utilities pack_bits and unpack_bits to move between packed/non-packed binary forms.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedCosineSimilarityType.
julia
BitPackedCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

The difference to BinaryCosineSimilarity is that the binary values are packed into UInt64, which is more efficient.

Reference: HuggingFace: Embedding Quantization. Implementation of hamming_distance is based on TinyRAG.

source


# PromptingTools.Experimental.RAGTools.CandidateChunksType.
julia
CandidateChunks

A struct for storing references to chunks in the given index (identified by index_id) called positions and scores holding the strength of similarity (=1 is the highest, most similar). It's the result of the retrieval stage of RAG.

Fields

source


# PromptingTools.Experimental.RAGTools.ChunkEmbeddingsIndexType.
julia
ChunkEmbeddingsIndex

Main struct for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Previously, this struct was called ChunkIndex.

Fields

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexType.
julia
ChunkKeywordsIndex

Struct for storing chunks of text and associated keywords for BM25 similarity search.

Fields

Example

We can easily create a keywords-based index from a standard embeddings-based index.

julia
\n# Let's assume we have a standard embeddings-based index\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Creating an additional index for keyword-based search (BM25), is as simple as\nindex_keywords = ChunkKeywordsIndex(index)\n\n# We can immediately create a MultiIndex (a hybrid index holding both indices)\nmulti_index = MultiIndex([index, index_keywords])

You can also build the index via build_index

julia
# given some sentences and sources\nindex_keywords = build_index(KeywordsIndexer(), sentences; chunker_kwargs=(; sources))\n\n# Retrive closest chunks with\nretriever = SimpleBM25Retriever()\nresult = retrieve(retriever, index_keywords, "What are the best practices for parallel computing in Julia?")\nresult.context

If you want to use airag, don't forget to specify the config to make sure keywords are processed (ie, tokenized) and that BM25 is used for searching candidates

julia
cfg = RAGConfig(; retriever = SimpleBM25Retriever());\nairag(cfg, index_keywords;\n    question = "What are the best practices for parallel computing in Julia?")

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexMethod.
julia
ChunkKeywordsIndex(\n    [processor::AbstractProcessor=KeywordsProcessor(),] index::ChunkEmbeddingsIndex; verbose::Int = 1,\n    index_id = gensym("ChunkKeywordsIndex"), processor_kwargs...)

Convenience method to quickly create a ChunkKeywordsIndex from an existing ChunkEmbeddingsIndex.

Example

julia
\n# Let's assume we have a standard embeddings-based index\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Creating an additional index for keyword-based search (BM25), is as simple as\nindex_keywords = ChunkKeywordsIndex(index)\n\n# We can immediately create a MultiIndex (a hybrid index holding both indices)\nmulti_index = MultiIndex([index, index_keywords])

source


# PromptingTools.Experimental.RAGTools.CohereRerankerType.
julia
CohereReranker <: AbstractReranker

Rerank strategy using the Cohere Rerank API. Requires an API key.

source


# PromptingTools.Experimental.RAGTools.ContextEnumeratorType.
julia
ContextEnumerator <: AbstractContextBuilder

Default method for build_context! method. It simply enumerates the context snippets around each position in candidates. When possibly, it will add surrounding chunks (from the same source).

source


# PromptingTools.Experimental.RAGTools.CosineSimilarityType.
julia
CosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the cosine similarity between the query and the chunks' embeddings.

source


# PromptingTools.Experimental.RAGTools.DocumentTermMatrixType.
julia
DocumentTermMatrix{T<:AbstractString}

A sparse matrix of term frequencies and document lengths to allow calculation of BM25 similarity scores.

source


# PromptingTools.Experimental.RAGTools.FileChunkerType.
julia
FileChunker <: AbstractChunker

Chunker when you provide file paths to get_chunks functions.

Ie, the inputs will be validated first (eg, file exists, etc) and then read into memory.

Set as default chunker in get_chunks functions.

source


# PromptingTools.Experimental.RAGTools.FlashRankerType.
julia
FlashRanker <: AbstractReranker

Rerank strategy using the package FlashRank.jl and local models.

You must first import the FlashRank.jl package. To automatically download any required models, set your ENV["DATADEPS_ALWAYS_ACCEPT"] = true (see DataDeps for more details).

Example

julia
using FlashRank\n\n# Wrap the model to be a valid Ranker recognized by RAGTools\n# It will be provided to the airag/rerank function to avoid instantiating it on every call\nreranker = FlashRank.RankerModel(:mini) |> FlashRanker\n# You can choose :tiny or :mini\n\n## Apply to the pipeline configuration, eg, \ncfg = RAGConfig(; retriever = AdvancedRetriever(; reranker))\n\n# Ask a question (assumes you have some `index`)\nquestion = "What are the best practices for parallel computing in Julia?"\nresult = airag(cfg, index; question, return_all = true)

source


# PromptingTools.Experimental.RAGTools.HTMLStylerType.
julia
HTMLStyler

Defines styling via classes (attribute class) and styles (attribute style) for HTML formatting of AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.HyDERephraserType.
julia
HyDERephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

It uses a prompt-based rephrasing method called HyDE (Hypothetical Document Embedding), where instead of looking for an embedding of the question, we look for the documents most similar to a synthetic passage that would be a good answer to our question.

Reference: Arxiv paper.

source


# PromptingTools.Experimental.RAGTools.JudgeAllScoresType.

final_rating is the average of all scoring criteria. Explain the final_rating in rationale

source


# PromptingTools.Experimental.RAGTools.JudgeRatingType.

Provide the final_rating between 1-5. Provide the rationale for it.

source


# PromptingTools.Experimental.RAGTools.KeywordsIndexerType.
julia
KeywordsIndexer <: AbstractIndexBuilder

Keyword-based index (BM25) to be returned by build_index.

It uses TextChunker, KeywordsProcessor, and NoTagger as default chunker, processor, and tagger.

source


# PromptingTools.Experimental.RAGTools.KeywordsProcessorType.
julia
KeywordsProcessor <: AbstractProcessor

Default keywords processor for get_keywords functions. It normalizes the documents, tokenizes them and builds a DocumentTermMatrix.

source


# PromptingTools.Experimental.RAGTools.MultiCandidateChunksType.
julia
MultiCandidateChunks

A struct for storing references to multiple sets of chunks across different indices. Each set of chunks is identified by an index_id in index_ids, with corresponding positions in the index and scores indicating the strength of similarity.

This struct is useful for scenarios where candidates are drawn from multiple indices, and there is a need to keep track of which candidates came from which index.

Fields

source


# PromptingTools.Experimental.RAGTools.MultiFinderType.
julia
MultiFinder <: AbstractSimilarityFinder

Composite finder for MultiIndex where we want to set multiple finders for each index. Positions correspond to indexes(::MultiIndex).

source


# PromptingTools.Experimental.RAGTools.MultiIndexType.
julia
MultiIndex

Composite index that stores multiple ChunkIndex objects and their embeddings.

Fields

Use accesor indexes to access the individual indexes.

Examples

We can create a MultiIndex from a vector of AbstractChunkIndex objects.

julia
index = build_index(SimpleIndexer(), texts; chunker_kwargs = (; sources))\nindex_keywords = ChunkKeywordsIndex(index) # same chunks as above but adds BM25 instead of embeddings\n\nmulti_index = MultiIndex([index, index_keywords])

To use airag with different types of indices, we need to specify how to find the closest items for each index

julia
# Cosine similarity for embeddings and BM25 for keywords, same order as indexes in MultiIndex\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\n\n# Notice that we add `processor` to make sure keywords are processed (ie, tokenized) as well\ncfg = RAGConfig(; retriever = SimpleRetriever(; processor = RT.KeywordsProcessor(), finder))\n\n# Ask questions\nmsg = airag(cfg, multi_index; question = "What are the best practices for parallel computing in Julia?")\npprint(msg) # prettify the answer

source


# PromptingTools.Experimental.RAGTools.NoEmbedderType.
julia
NoEmbedder <: AbstractEmbedder

No-op embedder for get_embeddings functions. It returns nothing.

source


# PromptingTools.Experimental.RAGTools.NoPostprocessorType.
julia
NoPostprocessor <: AbstractPostprocessor

Default method for postprocess! method. A passthrough option that returns the result without any changes.

Overload this method to add custom postprocessing steps, eg, logging, saving conversations to disk, etc.

source


# PromptingTools.Experimental.RAGTools.NoProcessorType.
julia
NoProcessor <: AbstractProcessor

No-op processor for get_keywords functions. It returns the inputs as is.

source


# PromptingTools.Experimental.RAGTools.NoRefinerType.
julia
NoRefiner <: AbstractRefiner

Default method for refine! method. A passthrough option that returns the result.answer without any changes.

source


# PromptingTools.Experimental.RAGTools.NoRephraserType.
julia
NoRephraser <: AbstractRephraser

No-op implementation for rephrase, which simply passes the question through.

source


# PromptingTools.Experimental.RAGTools.NoRerankerType.
julia
NoReranker <: AbstractReranker

No-op implementation for rerank, which simply passes the candidate chunks through.

source


# PromptingTools.Experimental.RAGTools.NoTagFilterType.
julia
NoTagFilter <: AbstractTagFilter

No-op implementation for find_tags, which simply returns all chunks.

source


# PromptingTools.Experimental.RAGTools.NoTaggerType.
julia
NoTagger <: AbstractTagger

No-op tagger for get_tags functions. It returns (nothing, nothing).

source


# PromptingTools.Experimental.RAGTools.OpenTaggerType.
julia
OpenTagger <: AbstractTagger

Tagger for get_tags functions, which generates possible tags for each chunk via aiextract. You can customize it via prompt template (default: :RAGExtractMetadataShort), but it's quite open-ended (ie, AI decides the possible tags).

source


# PromptingTools.Experimental.RAGTools.PassthroughTaggerType.
julia
PassthroughTagger <: AbstractTagger

Tagger for get_tags functions, which passes tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]).

source


# PromptingTools.Experimental.RAGTools.RAGConfigType.
julia
RAGConfig <: AbstractRAGConfig

Default configuration for RAG. It uses SimpleIndexer, SimpleRetriever, and SimpleGenerator as default components.

To customize the components, replace corresponding fields for each step of the RAG pipeline (eg, use subtypes(AbstractIndexBuilder) to find the available options).

source


# PromptingTools.Experimental.RAGTools.RAGResultType.
julia
RAGResult

A struct for debugging RAG answers. It contains the question, answer, context, and the candidate chunks at each step of the RAG pipeline.

Think of the flow as question -> rephrased_questions -> answer -> final_answer with the context and candidate chunks helping along the way.

Fields

See also: pprint (pretty printing), annotate_support (for annotating the answer)

source


# PromptingTools.Experimental.RAGTools.RankGPTRerankerType.
julia
RankGPTReranker <: AbstractReranker

Rerank strategy using the RankGPT algorithm (calling LLMs).

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.RankGPTResultType.
julia
RankGPTResult

Results from the RankGPT algorithm.

Fields

source


# PromptingTools.Experimental.RAGTools.SimpleAnswererType.
julia
SimpleAnswerer <: AbstractAnswerer

Default method for answer! method. Generates an answer using the aigenerate function with the provided context and question.

source


# PromptingTools.Experimental.RAGTools.SimpleBM25RetrieverType.
julia
SimpleBM25Retriever <: AbstractRetriever

Keyword-based implementation for retrieve. It does a simple similarity search via BM25Similarity and returns the results.

Make sure to use consistent processor and tagger with the Preparation Stage (build_index)!

Fields

source


# PromptingTools.Experimental.RAGTools.SimpleGeneratorType.
julia
SimpleGenerator <: AbstractGenerator

Default implementation for generate. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, NoRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.SimpleIndexerType.
julia
SimpleIndexer <: AbstractIndexBuilder

Default implementation for build_index.

It uses TextChunker, BatchEmbedder, and NoTagger as default chunker, embedder, and tagger.

source


# PromptingTools.Experimental.RAGTools.SimpleRefinerType.
julia
SimpleRefiner <: AbstractRefiner

Refines the answer using the same context previously provided via the provided prompt template.

source


# PromptingTools.Experimental.RAGTools.SimpleRephraserType.
julia
SimpleRephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

source


# PromptingTools.Experimental.RAGTools.SimpleRetrieverType.
julia
SimpleRetriever <: AbstractRetriever

Default implementation for retrieve. It does a simple similarity search via CosineSimilarity and returns the results.

Make sure to use consistent embedder and tagger with the Preparation Stage (build_index)!

Fields

source


# PromptingTools.Experimental.RAGTools.StylerType.
julia
Styler

Defines styling keywords for printstyled for each AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.SubChunkIndexType.
julia
SubChunkIndex

A view of the parent index with respect to the chunks (and chunk-aligned fields). All methods and accessors working for AbstractChunkIndex also work for SubChunkIndex. It does not yet work for MultiIndex.

Fields

Example

julia
cc = CandidateChunks(index.id, 1:10)\nsub_index = @view(index[cc])

You can use SubChunkIndex to access chunks or sources (and other fields) from a parent index, eg,

julia
RT.chunks(sub_index)\nRT.sources(sub_index)\nRT.chunkdata(sub_index) # slice of embeddings\nRT.embeddings(sub_index) # slice of embeddings\nRT.tags(sub_index) # slice of tags\nRT.tags_vocab(sub_index) # unchanged, identical to parent version\nRT.extras(sub_index) # slice of extras

Access the parent index that the positions correspond to

julia
parent(sub_index)\nRT.positions(sub_index)

source


# PromptingTools.Experimental.RAGTools.SubDocumentTermMatrixType.

A partial view of a DocumentTermMatrix, tf is MATERIALIZED for performance and fewer allocations.

source


# PromptingTools.Experimental.RAGTools.TavilySearchRefinerType.
julia
TavilySearchRefiner <: AbstractRefiner

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

source


# PromptingTools.Experimental.RAGTools.TextChunkerType.
julia
TextChunker <: AbstractChunker

Chunker when you provide text to get_chunks functions. Inputs are directly chunked

source


# PromptingTools.Experimental.RAGTools.TrigramAnnotaterType.
julia
TrigramAnnotater

Annotation method where we score answer versus each context based on word-level trigrams that match.

It's very simple method (and it can loose some semantic meaning in longer sequences like negative), but it works reasonably well for both text and code.

source


# PromptingTools.Experimental.RAGTools._normalizeFunction.

Shortcut to LinearAlgebra.normalize. Provided in the package extension RAGToolsExperimentalExt (Requires SparseArrays, Unicode, and LinearAlgebra)

source


# PromptingTools.Experimental.RAGTools.add_node_metadata!Method.
julia
add_node_metadata!(annotater::TrigramAnnotater,\n    root::AnnotatedNode; add_sources::Bool = true, add_scores::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing)

Adds metadata to the children of root. Metadata includes sources and scores, if requested.

Optionally, it can add a list of sources at the end of the printed text.

The metadata is added by inserting new nodes in the root children list (with no children of its own to be printed out).

source


# PromptingTools.Experimental.RAGTools.airagMethod.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;\n    question::AbstractString,\n    verbose::Integer = 1, return_all::Bool = false,\n    api_kwargs::NamedTuple = NamedTuple(),\n    retriever::AbstractRetriever = cfg.retriever,\n    retriever_kwargs::NamedTuple = NamedTuple(),\n    generator::AbstractGenerator = cfg.generator,\n    generator_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

High-level wrapper for Retrieval-Augmented Generation (RAG), it combines together the retrieve and generate! steps which you can customize if needed.

The simplest version first finds the relevant chunks in index for the question and then sends these chunks to the AI model to help with generating a response to the question.

To customize the components, replace the types (retriever, generator) of the corresponding step of the RAG pipeline - or go into sub-routines within the steps. Eg, use subtypes(AbstractRetriever) to find the available options.

Arguments

Returns

See also build_index, retrieve, generate!, RAGResult, getpropertynested, setpropertynested, merge_kwargs_nested, ChunkKeywordsIndex.

Examples

Using airag to get a response for a question:

julia
index = build_index(...)  # create an index\nquestion = "How to make a barplot in Makie.jl?"\nmsg = airag(index; question)

To understand the details of the RAG process, use return_all=true

julia
msg, details = airag(index; question, return_all = true)\n# details is a RAGDetails object with all the internal steps of the `airag` function

You can also pretty-print details to highlight generated text vs text that is supported by context. It also includes annotations of which context was used for each part of the response (where available).

julia
PT.pprint(details)

Example with advanced retrieval (with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n). In addition, it will be done with a "custom" locally-hosted model.

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        rephraser_kwargs = (;\n            model = "custom"),\n        embedder_kwargs = (;\n            model = "custom"),\n        tagger_kwargs = (;\n            model = "custom")),\n    generator_kwargs = (;\n        answerer_kwargs = (;\n            model = "custom"),\n        refiner_kwargs = (;\n            model = "custom")),\n    api_kwargs = (;\n        url = "http://localhost:8080"))\n\nresult = airag(cfg, index, question; kwargs...)

If you want to use hybrid retrieval (embeddings + BM25), you can easily create an additional index based on keywords and pass them both into a MultiIndex.

You need to provide an explicit config, so the pipeline knows how to handle each index in the search similarity phase (finder).

julia
index = # your existing index\n\n# create the multi-index with the keywords index\nindex_keywords = ChunkKeywordsIndex(index)\nmulti_index = MultiIndex([index, index_keywords])\n\n# define the similarity measures for the indices that you have (same order)\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\ncfg = RAGConfig(; retriever=AdvancedRetriever(; processor=RT.KeywordsProcessor(), finder))\n\n# Run the pipeline with the new hybrid retrieval (return the `RAGResult` to see the details)\nresult = airag(cfg, multi_index; question, return_all=true)\n\n# Pretty-print the result\nPT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.align_node_styles!Method.
julia
align_node_styles!(annotater::TrigramAnnotater, nodes::AbstractVector{<:AnnotatedNode}; kwargs...)

Aligns the styles of the nodes based on the surrounding nodes ("fill-in-the-middle").

If the node has no score, but the surrounding nodes have the same style, the node will inherit the style of the surrounding nodes.

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,\n    context::AbstractVector; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Annotates the answer with the overlap/what's supported in context and returns the annotated tree of nodes representing the answer

Returns a "root" node with children nodes representing the sentences/code blocks in the answer. Only the "leaf" nodes are to be printed (to avoid duplication), "leaf" nodes are those with NO children.

Default logic:

Arguments

Example

julia
annotater = TrigramAnnotater()\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test context. Another context sentence."\n\nannotated_root = annotate_support(annotater, answer, context)\npprint(annotated_root) # pretty print the annotated tree

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(\n    annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",\n    context = ["Test context.", "Completely different"])\nannotated_root = annotate_support(annotater, res)\nPT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.answer!Method.
julia
answer!(\n    answerer::SimpleAnswerer, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    model::AbstractString = PT.MODEL_CHAT, verbose::Bool = true,\n    template::Symbol = :RAGAnswerFromContext,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generates an answer using the aigenerate function with the provided result.context and result.question.

Returns

Arguments

source


# PromptingTools.Experimental.RAGTools.build_contextMethod.
julia
build_context(contexter::ContextEnumerator,\n    index::AbstractDocumentIndex, candidates::AbstractCandidateChunks;\n    verbose::Bool = true,\n    chunks_window_margin::Tuple{Int, Int} = (1, 1), kwargs...)\n\n    build_context!(contexter::ContextEnumerator,\n    index::AbstractDocumentIndex, result::AbstractRAGResult; kwargs...)

Build context strings for each position in candidates considering a window margin around each position. If mutating version is used (build_context!), it will use result.reranked_candidates to update the result.context field.

Arguments

Returns

Examples

julia
index = ChunkIndex(...)  # Assuming a proper index is defined\ncandidates = CandidateChunks(index.id, [2, 4], [0.1, 0.2])\ncontext = build_context(ContextEnumerator(), index, candidates; chunks_window_margin=(0, 1)) # include only one following chunk for each matching chunk

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(\n    indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkKeywordsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = indexer.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(\n    indexer::AbstractIndexBuilder, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkEmbeddingsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = indexer.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Build an INDEX for RAG (Retriever-Augmented Generation) applications from the provided file paths. INDEX is a object storing the document chunks and their embeddings (and potentially other information).

The function processes each file or document (depending on chunker), splits its content into chunks, embeds these chunks, optionally extracts metadata, and then combines this information into a retrievable index.

Define your own methods via indexer and its subcomponents (chunker, embedder, tagger).

Arguments

Returns

See also: ChunkEmbeddingsIndex, get_chunks, get_embeddings, get_tags, CandidateChunks, find_closest, find_tags, rerank, retrieve, generate!, airag

Examples

julia
# Default is loading a vector of strings and chunking them (`TextChunker()`)\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Another example with tags extraction, splitting only sentences and verbose output\n# Assuming `test_files` is a vector of file paths\nindexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger())\nindex = build_index(indexer, test_files; \n        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsMethod.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};\n               model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, \n               verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]\nsources = ["source1", "source2"]\nqa_evals = build_qa_evals(doc_chunks, sources)

source


# PromptingTools.Experimental.RAGTools.build_tagsFunction.

Builds a matrix of tags and a vocabulary list. REQUIRES SparseArrays, LinearAlgebra, Unicode packages to be loaded!!

source


# PromptingTools.Experimental.RAGTools.build_tagsMethod.
julia
build_tags(tagger::AbstractTagger, chunk_tags::Nothing; kwargs...)

No-op that skips any tag building, returning nothing, nothing

Otherwise, it would build the sparse matrix and the vocabulary (requires SparseArrays and LinearAlgebra packages to be loaded).

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.cohere_apiMethod.
julia
cohere_api(;\napi_key::AbstractString,\nendpoint::String,\nurl::AbstractString="https://api.cohere.ai/v1",\nhttp_kwargs::NamedTuple=NamedTuple(),\nkwargs...)

Lightweight wrapper around the Cohere API. See https://cohere.com/docs for more details.

Arguments

source


# PromptingTools.Experimental.RAGTools.create_permutation_instructionMethod.
julia
create_permutation_instruction(\n    context::AbstractVector{<:AbstractString}; rank_start::Integer = 1,\n    rank_end::Integer = 100, max_length::Integer = 512, template::Symbol = :RAGRankGPT)

Creates rendered template with injected context passages.

source


# PromptingTools.Experimental.RAGTools.extract_rankingMethod.
julia
extract_ranking(str::AbstractString)

Extracts the ranking from the response into a sorted array of integers.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BitPackedCosineSimilarity, emb::AbstractMatrix{<:Bool},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using bit-packed binary embeddings (in the index).

This is a two-pass approach:

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to bit-packed binary like this:

julia
bitpacked_emb = pack_bits(emb.>0)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::AbstractSimilarityFinder, index::AbstractChunkIndex,\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, kwargs...)

Finds the indices of chunks (represented by embeddings in index) that are closest to query embedding (query_emb).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BinaryCosineSimilarity, emb::AbstractMatrix{<:Bool},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using binary embeddings (in the index).

This is a two-pass approach:

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to binary like this:

julia
binary_emb = map(>(0), emb)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BM25Similarity, dtm::AbstractDocumentTermMatrix,\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by DocumentTermMatrix in dtm) that are closest to query tokens (query_tokens) using BM25.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::CosineSimilarity, emb::AbstractMatrix{<:Real},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest (in cosine similarity for CosineSimilarity()) to query embedding (query_emb).

finder is the logic used for the similarity search. Default is CosineSimilarity.

If minimum_similarity is provided, only indices with similarity greater than or equal to it are returned. Similarity can be between -1 and 1 (-1 = completely opposite, 1 = exactly the same).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AnyTagFilter, index::AbstractChunkIndex,\n    tag::Union{AbstractString, Regex}; kwargs...)\n\nfind_tags(method::AnyTagFilter, index::AbstractChunkIndex,\n    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ANY OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AllTagFilter, index::AbstractChunkIndex,\n    tag::Union{AbstractString, Regex}; kwargs...)\n\nfind_tags(method::AllTagFilter, index::AbstractChunkIndex,\n    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ALL OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::NoTagFilter, index::AbstractChunkIndex,\n    tags::Union{T, AbstractVector{<:T}}; kwargs...) where {T <:\n                                                           Union{\n    AbstractString, Regex, Nothing}}\n    tags; kwargs...)

Returns all chunks in the index, ie, no filtering, so we simply return nothing (easier for dispatch).

source


# PromptingTools.Experimental.RAGTools.generate!Method.
julia
generate!(\n    generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Integer = 1,\n    api_kwargs::NamedTuple = NamedTuple(),\n    contexter::AbstractContextBuilder = generator.contexter,\n    contexter_kwargs::NamedTuple = NamedTuple(),\n    answerer::AbstractAnswerer = generator.answerer,\n    answerer_kwargs::NamedTuple = NamedTuple(),\n    refiner::AbstractRefiner = generator.refiner,\n    refiner_kwargs::NamedTuple = NamedTuple(),\n    postprocessor::AbstractPostprocessor = generator.postprocessor,\n    postprocessor_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generate the response using the provided generator and the index and result. It is the second step in the RAG pipeline (after retrieve)

Returns the mutated result with the result.final_answer and the full conversation saved in result.conversations[:final_answer].

Notes

Arguments

See also: retrieve, build_context!, ContextEnumerator, answer!, SimpleAnswerer, refine!, NoRefiner, SimpleRefiner, postprocess!, NoPostprocessor

Examples

julia
Assume we already have `index`\n\nquestion = "What are the best practices for parallel computing in Julia?"\n\n# Retrieve the relevant chunks - returns RAGResult\nresult = retrieve(index, question)\n\n# Generate the answer using the default generator, mutates the same result\nresult = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.get_chunksMethod.
julia
get_chunks(chunker::AbstractChunker,\n    files_or_docs::Vector{<:AbstractString};\n    sources::AbstractVector{<:AbstractString} = files_or_docs,\n    verbose::Bool = true,\n    separators = ["\\n\\n", ". ", "\\n", " "], max_length::Int = 256)

Chunks the provided files_or_docs into chunks of maximum length max_length (if possible with provided separators).

Supports two modes of operation:

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner - BatchEmbedder.

BatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BinaryBatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    return_type::Type = Matrix{Bool},\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix - BinaryBatchEmbedder.

BinaryBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BitPackedBatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix represented in UInt64 (bit-packed) - BitPackedBatchEmbedder.

BitPackedBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

The best option for FAST and MEMORY-EFFICIENT storage of embeddings, for retrieval use BitPackedCosineSimilarity.

Notes

Arguments

See also: unpack_bits, pack_bits, BitPackedCosineSimilarity.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::NoTagger, docs::AbstractVector{<:AbstractString};\n    kwargs...)

Simple no-op that skips any tagging of the documents

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::OpenTagger, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Extracts "tags" (metadata/keywords) from a vector of docs using the provided model (kwarg model).

Arguments

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::PassthroughTagger, docs::AbstractVector{<:AbstractString};\n    tags::AbstractVector{<:AbstractVector{<:AbstractString}},\n    kwargs...)

Pass tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]). It then builds the vocabulary from the tags and returns both the tags in matrix form and the vocabulary.

source


# PromptingTools.Experimental.RAGTools.getpropertynestedFunction.
julia
getpropertynested(\n    nt::NamedTuple, parent_keys::Vector{Symbol}, key::Symbol, default = nothing)

Get a property key from a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to get some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))\ngetpropertynested(kw, [:abc], :def)\n# Output: "x"

source


# PromptingTools.Experimental.RAGTools.hamming_distanceMethod.
julia
hamming_distance(\n    mat::AbstractMatrix{T}, query::AbstractVector{T})::Vector{Int} where {T <: Integer}

Calculates the column-wise Hamming distance between a matrix of binary vectors mat and a single binary vector vect.

This is the first-pass ranking for BinaryCosineSimilarity method.

Implementation from domluna's tinyRAG.

source


# PromptingTools.Experimental.RAGTools.hcat_truncateMethod.
julia
hcat_truncate(matrices::AbstractVector{<:AbstractMatrix{T}},\n    truncate_dimension::Union{Nothing, Int} = nothing; verbose::Bool = false) where {T <:\n                                                                                     Real}

Horizontal concatenation of matrices, with optional truncation of the rows of each matrix to the specified dimension (reducing embedding dimensionality).

More efficient that a simple splatting, as the resulting matrix is pre-allocated in one go.

Returns: a Matrix{Float32}

Arguments

Examples

julia
a = rand(Float32, 1000, 10)\nb = rand(Float32, 1000, 20)\n\nc = hcat_truncate([a, b])\nsize(c) # (1000, 30)\n\nd = hcat_truncate([a, b], 500)\nsize(d) # (500, 30)

source


# PromptingTools.Experimental.RAGTools.load_textMethod.
julia
load_text(chunker::AbstractChunker, input;\n    kwargs...)

Load text from input using the provided chunker

Available chunkers:

source


# PromptingTools.Experimental.RAGTools.merge_kwargs_nestedMethod.
julia
merge_kwargs_nested(nt1::NamedTuple, nt2::NamedTuple)

Merges two nested NamedTuples nt1 and nt2 recursively. The nt2 values will overwrite the nt1 values when overlapping.

Example

julia
kw = (; abc = (; def = "x"))\nkw2 = (; abc = (; def = "x", def2 = 2), new = 1)\nmerge_kwargs_nested(kw, kw2)

source


# PromptingTools.Experimental.RAGTools.pack_bitsMethod.
julia
pack_bits(arr::AbstractMatrix{<:Bool}) -> Matrix{UInt64}\npack_bits(vect::AbstractVector{<:Bool}) -> Vector{UInt64}

Pack a matrix or vector of boolean values into a more compact representation using UInt64.

Arguments (Input)

Returns

Examples

For vectors:

julia
bin = rand(Bool, 128)\nbinint = pack_bits(bin)\nbinx = unpack_bits(binint)\n@assert bin == binx

For matrices:

julia
bin = rand(Bool, 128, 10)\nbinint = pack_bits(bin)\nbinx = unpack_bits(binint)\n@assert bin == binx

source


# PromptingTools.Experimental.RAGTools.permutation_step!Method.
julia
permutation_step!(\n    result::RankGPTResult; rank_start::Integer = 1, rank_end::Integer = 100, kwargs...)

One sub-step of the RankGPT algorithm permutation ranking within the window of chunks defined by rank_start and rank_end positions.

source


# PromptingTools.Experimental.RAGTools.preprocess_tokensFunction.
julia
preprocess_tokens(text::AbstractString, stemmer=nothing; stopwords::Union{Nothing,Set{String}}=nothing, min_length::Int=3)

Preprocess provided text by removing numbers, punctuation, and applying stemming for BM25 search index.

Returns a list of preprocessed tokens.

Example

julia
stemmer = Snowball.Stemmer("english")\nstopwords = Set(["a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "some", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"])\ntext = "This is a sample paragraph to test the functionality of your text preprocessor. It contains a mix of uppercase and lowercase letters, as well as punctuation marks such as commas, periods, and exclamation points! Let's see how your preprocessor handles quotes, like "this one", and also apostrophes, like in don't. Will it preserve the formatting of this paragraph, including the indentation and line breaks?"\npreprocess_tokens(text, stemmer; stopwords)

source


# PromptingTools.Experimental.RAGTools.print_htmlMethod.
julia
print_html([io::IO,] parent_node::AbstractAnnotatedNode)\n\nprint_html([io::IO,] rag::AbstractRAGResult; add_sources::Bool = false,\n    add_scores::Bool = false, default_styler = HTMLStyler(),\n    low_styler = HTMLStyler(styles = "color:magenta", classes = ""),\n    medium_styler = HTMLStyler(styles = "color:blue", classes = ""),\n    high_styler = HTMLStyler(styles = "", classes = ""), styler_kwargs...)

Pretty-prints the annotation parent_node (or RAGResult) to the io stream (or returns the string) in HTML format (assumes node is styled with styler HTMLStyler).

It wraps each "token" into a span with requested styling (HTMLStyler's properties classes and styles). It also replaces new lines with <br> for better HTML formatting.

For any non-HTML styler, it prints the content as plain text.

Returns

See also HTMLStyler, annotate_support, and set_node_style! for how the styling is applied and what the arguments mean.

Examples

Note: RT is an alias for PromptingTools.Experimental.RAGTools

Simple start directly with the RAGResult:

julia
# set up the text/RAGResult\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test answer. It has multiple sentences."\nrag = RT.RAGResult(; context, final_answer=answer, question="")\n\n# print the HTML\nprint_html(rag)

Low-level control by creating our AnnotatedNode:

julia
# prepare your HTML styling\nstyler_kwargs = (;\n    default_styler=RT.HTMLStyler(),\n    low_styler=RT.HTMLStyler(styles="color:magenta", classes=""),\n    medium_styler=RT.HTMLStyler(styles="color:blue", classes=""),\n    high_styler=RT.HTMLStyler(styles="", classes=""))\n\n# annotate the text\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test answer. It has multiple sentences."\n\nparent_node = RT.annotate_support(\n    RT.TrigramAnnotater(), answer, context; add_sources=false, add_scores=false, styler_kwargs...)\n\n# print the HTML\nprint_html(parent_node)\n\n# or to accumulate more nodes\nio = IOBuffer()\nprint_html(io, parent_node)

source


# PromptingTools.Experimental.RAGTools.rank_gptMethod.
julia
rank_gpt(chunks::AbstractVector{<:AbstractString}, question::AbstractString;\n    verbose::Int = 1, rank_start::Integer = 1, rank_end::Integer = 100,\n    window_size::Integer = 20, step::Integer = 10,\n    num_rounds::Integer = 1, model::String = "gpt4o", kwargs...)

Ranks the chunks based on their relevance for question. Returns the ranking permutation of the chunks in the order they are most relevant to the question (the first is the most relevant).

Example

julia
result = rank_gpt(chunks, question; rank_start=1, rank_end=25, window_size=8, step=4, num_rounds=3, model="gpt4o")

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.rank_sliding_window!Method.
julia
rank_sliding_window!(\n    result::RankGPTResult; verbose::Int = 1, rank_start = 1, rank_end = 100,\n    window_size = 20, step = 10, model::String = "gpt4o", kwargs...)

One single pass of the RankGPT algorithm permutation ranking across all positions between rank_start and rank_end.

source


# PromptingTools.Experimental.RAGTools.receive_permutation!Method.
julia
receive_permutation!(\n    curr_rank::AbstractVector{<:Integer}, response::AbstractString;\n    rank_start::Integer = 1, rank_end::Integer = 100)

Extracts and heals the permutation to contain all ranking positions.

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(args...; k::Int=60)

Merges multiple rankings and calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]\npositions2 = [2, 4, 6, 8, 10]\npositions3 = [2, 4, 6, 11, 12]\n\nmerged_positions, scores = reciprocal_rank_fusion(positions1, positions2, positions3)

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(\n    positions1::AbstractVector{<:Integer}, scores1::AbstractVector{<:T},\n    positions2::AbstractVector{<:Integer},\n    scores2::AbstractVector{<:T}; k::Int = 60) where {T <: Real}

Merges two sets of rankings and their joint scores. Calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]\nscores1 = [0.9, 0.8, 0.7, 0.6, 0.5]\npositions2 = [2, 4, 6, 8, 10]\nscores2 = [0.5, 0.6, 0.7, 0.8, 0.9]\n\nmerged, scores = reciprocal_rank_fusion(positions1, scores1, positions2, scores2; k = 60)

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::NoRefiner, index::AbstractChunkIndex, result::AbstractRAGResult;\n    kwargs...)

Simple no-op function for refine. It simply copies the result.answer and result.conversations[:answer] without any changes.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::SimpleRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_CHAT,\n    template::Symbol = :RAGAnswerRefiner,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Give model a chance to refine the answer (using the same or different context than previously provided).

This method uses the same context as the original answer, however, it can be modified to do additional retrieval and use a different context.

Returns

Arguments

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::TavilySearchRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_CHAT,\n    include_answer::Bool = true,\n    max_results::Integer = 5,\n    include_domains::AbstractVector{<:AbstractString} = String[],\n    exclude_domains::AbstractVector{<:AbstractString} = String[],\n    template::Symbol = :RAGWebSearchRefiner,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

Note: The web results and web answer (if requested) will be added to the context and sources!

Returns

Arguments

Example

julia
refiner!(TavilySearchRefiner(), index, result)\n# See result.final_answer or pprint(result)

To enable this refiner in a full RAG pipeline, simply swap the component in the config:

julia
cfg = RT.RAGConfig()\ncfg.generator.refiner = RT.TavilySearchRefiner()\n\nresult = airag(cfg, index; question, return_all = true)\npprint(result)

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;\n    verbose::Bool = true,\n    model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryHyDE,\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Rephrases the question using the provided rephraser template = RAGQueryHyDE.

Special flavor of rephrasing using HyDE (Hypothetical Document Embedding) method, which aims to find the documents most similar to a synthetic passage that would be a good answer to our question.

Returns both the original and the rephrased question.

Arguments

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::NoRephraser, question::AbstractString; kwargs...)

No-op, simple passthrough.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;\n    verbose::Bool = true,\n    model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryOptimizer,\n    cost_tracker = Threads.Atomic{Float64}(0.0), kwargs...)

Rephrases the question using the provided rephraser template.

Returns both the original and the rephrased question.

Arguments

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(\n    reranker::CohereReranker, index::AbstractDocumentIndex, question::AbstractString,\n    candidates::AbstractCandidateChunks;\n    verbose::Bool = false,\n    api_key::AbstractString = PT.COHERE_API_KEY,\n    top_n::Integer = length(candidates.scores),\n    model::AbstractString = "rerank-english-v3.0",\n    return_documents::Bool = false,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Re-ranks a list of candidate chunks using the Cohere Rerank API. See https://cohere.com/rerank for more details.

Arguments

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(\n    reranker::RankGPTReranker, index::AbstractDocumentIndex, question::AbstractString,\n    candidates::AbstractCandidateChunks;\n    api_key::AbstractString = PT.OPENAI_API_KEY,\n    model::AbstractString = PT.MODEL_CHAT,\n    verbose::Bool = false,\n    top_n::Integer = length(candidates.scores),\n    unique_chunks::Bool = true,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Re-ranks a list of candidate chunks using the RankGPT algorithm. See https://github.com/sunnweiwei/RankGPT for more details.

It uses LLM calls to rank the candidate chunks.

Arguments

Examples

julia
index = <some index>\nquestion = "What are the best practices for parallel computing in Julia?"\n\ncfg = RAGConfig(; retriever = SimpleRetriever(; reranker = RT.RankGPTReranker()))\nmsg = airag(cfg, index; question, return_all = true)

To get full verbosity of logs, set verbose = 5 (anything higher than 3).

julia
msg = airag(cfg, index; question, return_all = true, verbose = 5)

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.retrieveMethod.
julia
retrieve(retriever::AbstractRetriever,\n    index::AbstractChunkIndex,\n    question::AbstractString;\n    verbose::Integer = 1,\n    top_k::Integer = 100,\n    top_n::Integer = 5,\n    api_kwargs::NamedTuple = NamedTuple(),\n    rephraser::AbstractRephraser = retriever.rephraser,\n    rephraser_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = retriever.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = retriever.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    finder::AbstractSimilarityFinder = retriever.finder,\n    finder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = retriever.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    filter::AbstractTagFilter = retriever.filter,\n    filter_kwargs::NamedTuple = NamedTuple(),\n    reranker::AbstractReranker = retriever.reranker,\n    reranker_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Retrieves the most relevant chunks from the index for the given question and returns them in the RAGResult object.

This is the main entry point for the retrieval stage of the RAG pipeline. It is often followed by generate! step.

Notes:

The arguments correspond to the steps of the retrieval process (rephrasing, embedding, finding similar docs, tagging, filtering by tags, reranking). You can customize each step by providing a new custom type that dispatches the corresponding function, eg, create your own type struct MyReranker<:AbstractReranker end and define the custom method for it rerank(::MyReranker,...) = ....

Note: Discover available retrieval sub-types for each step with subtypes(AbstractRephraser) and similar for other abstract types.

If you're using locally-hosted models, you can pass the api_kwargs with the url field set to the model's URL and make sure to provide corresponding model kwargs to rephraser, embedder, and tagger to use the custom models (they make AI calls).

Arguments

See also: SimpleRetriever, AdvancedRetriever, build_index, rephrase, get_embeddings, get_keywords, find_closest, get_tags, find_tags, rerank, RAGResult.

Examples

Find the 5 most relevant chunks from the index for the given question.

julia
# assumes you have an existing index `index`\nretriever = SimpleRetriever()\n\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)\n\n# or use the default retriever (same as above)\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)

Apply more advanced retrieval with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n).

julia
retriever = AdvancedRetriever()\n\nresult = retrieve(retriever, index, question; top_k=100, top_n=5)

You can use the retriever to customize your retrieval strategy or directly change the strategy types in the retrieve kwargs!

Example of using locally-hosted model hosted on localhost:8080:

julia
retriever = SimpleRetriever()\nresult = retrieve(retriever, index, question;\n    rephraser_kwargs = (; model = "custom"),\n    embedder_kwargs = (; model = "custom"),\n    tagger_kwargs = (; model = "custom"), api_kwargs = (;\n        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(index::AbstractChunkIndex, qa_items::AbstractVector{<:QAEvalItem};\n    api_kwargs::NamedTuple = NamedTuple(),\n    airag_kwargs::NamedTuple = NamedTuple(),\n    qa_evals_kwargs::NamedTuple = NamedTuple(),\n    verbose::Bool = true, parameters_dict::Dict{Symbol, <:Any} = Dict{Symbol, Any}())

Evaluates a vector of QAEvalItems and returns a vector QAEvalResult. This function assesses the relevance and accuracy of the answers generated in a QA evaluation context.

See ?run_qa_evals for more details.

Arguments

Returns

Vector{QAEvalResult}: Vector of evaluation results that includes various scores and metadata related to the QA evaluation.

Example

julia
index = "..." # Assuming a proper index is defined\nqa_items = [QAEvalItem(question="What is the capital of France?", answer="Paris", context="France is a country in Europe."),\n            QAEvalItem(question="What is the capital of Germany?", answer="Berlin", context="Germany is a country in Europe.")]\n\n# Let's run a test with `top_k=5`\nresults = run_qa_evals(index, qa_items; airag_kwargs=(;top_k=5), parameters_dict=Dict(:top_k => 5))\n\n# Filter out the "failed" calls\nresults = filter(x->!isnothing(x.answer_score), results);\n\n# See average judge score\nmean(x->x.answer_score, results)

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(qa_item::QAEvalItem, ctx::RAGResult; verbose::Bool = true,\n             parameters_dict::Dict{Symbol, <:Any}, judge_template::Symbol = :RAGJudgeAnswerFromContext,\n             model_judge::AbstractString, api_kwargs::NamedTuple = NamedTuple()) -> QAEvalResult

Evaluates a single QAEvalItem using RAG details (RAGResult) and returns a QAEvalResult structure. This function assesses the relevance and accuracy of the answers generated in a QA evaluation context.

Arguments

Returns

QAEvalResult: An evaluation result that includes various scores and metadata related to the QA evaluation.

Notes

Examples

Evaluating a QA pair using a specific context and model:

julia
qa_item = QAEvalItem(question="What is the capital of France?", answer="Paris", context="France is a country in Europe.")\nctx = RAGResult(source="Wikipedia", context="France is a country in Europe.", answer="Paris")\nparameters_dict = Dict("param1" => "value1", "param2" => "value2")\n\neval_result = run_qa_evals(qa_item, ctx, parameters_dict=parameters_dict, model_judge="MyAIJudgeModel")

source


# PromptingTools.Experimental.RAGTools.score_retrieval_hitMethod.

Returns 1.0 if context overlaps or is contained within any of the candidate_context

source


# PromptingTools.Experimental.RAGTools.score_retrieval_rankMethod.

Returns Integer rank of the position where context overlaps or is contained within a candidate_context

source


# PromptingTools.Experimental.RAGTools.score_to_unit_scaleMethod.
julia
score_to_unit_scale(x::AbstractVector{T}) where T<:Real

Shift and scale a vector of scores to the unit scale [0, 1].

Example

julia
x = [1.0, 2.0, 3.0, 4.0, 5.0]\nscaled_x = score_to_unit_scale(x)

source


# PromptingTools.Experimental.RAGTools.set_node_style!Method.
julia
set_node_style!(::TrigramAnnotater, node::AnnotatedNode;\n    low_threshold::Float64 = 0.0, medium_threshold::Float64 = 0.5, high_threshold::Float64 = 1.0,\n    default_styler::AbstractAnnotationStyler = Styler(),\n    low_styler::AbstractAnnotationStyler = Styler(color = :magenta, bold = false),\n    medium_styler::AbstractAnnotationStyler = Styler(color = :blue, bold = false),\n    high_styler::AbstractAnnotationStyler = Styler(color = :nothing, bold = false),\n    bold_multihits::Bool = false)

Sets style of node based on the provided rules

source


# PromptingTools.Experimental.RAGTools.setpropertynestedMethod.
julia
setpropertynested(nt::NamedTuple, parent_keys::Vector{Symbol},\n    key::Symbol,\n    value

)

Setter for a property key in a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to change some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))\nsetpropertynested(kw, [:abc], :def, "y")\n# Output: (abc = (def = "y",),)

Practical example of changing all model keys in CHAT-based steps in the pipeline:

julia
# changes :model to "gpt4t" whenever the parent key is in the below list (chat-based steps)\nsetpropertynested(kwargs,\n    [:rephraser_kwargs, :tagger_kwargs, :answerer_kwargs, :refiner_kwargs],\n    :model, "gpt4t")

Or changing an embedding model (across both indexer and retriever steps, because it's same step name):

julia
kwargs = setpropertynested(\n        kwargs, [:embedder_kwargs],\n        :model, "text-embedding-3-large"\n    )

source


# PromptingTools.Experimental.RAGTools.split_into_code_and_sentencesMethod.
julia
split_into_code_and_sentences(input::Union{String, SubString{String}})

Splits text block into code or text and sub-splits into units.

If code block, it splits by newline but keep the group_id the same (to have the same source) If text block, splits into sentences, bullets, etc., provides different group_id (to have different source)

source


# PromptingTools.Experimental.RAGTools.tags_extractMethod.
julia
tags_extract(item::Tag)\ntags_extract(tags::Vector{Tag})

Extracts the Tag item into a string of the form category:::value (lowercased and spaces replaced with underscores).

Example

julia
msg = aiextract(:RAGExtractMetadataShort; return_type=MaybeTags, text="I like package DataFrames", instructions="None.")\nmetadata = tags_extract(msg.content.items)

source


# PromptingTools.Experimental.RAGTools.token_with_boundariesMethod.
julia
token_with_boundaries(\n    prev_token::Union{Nothing, AbstractString}, curr_token::AbstractString,\n    next_token::Union{Nothing, AbstractString})

Joins the three tokens together. Useful to add boundary tokens (like spaces vs brackets) to the curr_token to improve the matched context (ie, separate partial matches from exact match)

source


# PromptingTools.Experimental.RAGTools.tokenizeMethod.
julia
tokenize(input::Union{String, SubString{String}})

Tokenizes provided input by spaces, special characters or Julia symbols (eg, =>).

Unlike other tokenizers, it aims to lossless - ie, keep both the separated text and the separators.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(index::AbstractChunkIndex, positions::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() is used to re-align positions in case index is a view.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(\n    index::SubChunkIndex, pos::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() or tags() are used to re-align positions to the "parent" index.

source


# PromptingTools.Experimental.RAGTools.trigram_support!Method.
julia
trigram_support!(parent_node::AnnotatedNode,\n    context_trigrams::AbstractVector, trigram_func::F1 = trigrams, token_transform::F2 = identity;\n    skip_trigrams::Bool = false, min_score::Float64 = 0.5,\n    min_source_score::Float64 = 0.25,\n    stop_words::AbstractVector{<:String} = STOPWORDS,\n    styler_kwargs...) where {F1 <: Function, F2 <: Function}

Find if the parent_node.content is supported by the provided context_trigrams.

Logic:

For diagnostics, you can use AbstractTrees.print_tree(parent_node) to see the tree structure of each token and its score.

Example

julia
\nnode = AnnotatedNode(content = "xyz")  trigram_support!(node, context_trigrams) # updates node.children! ```\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/Experimental/RAGTools/annotation.jl#L215-L244)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.Experimental.RAGTools.trigrams-Tuple{AbstractString}' href='#PromptingTools.Experimental.RAGTools.trigrams-Tuple{AbstractString}'>#</a>&nbsp;<b><u>PromptingTools.Experimental.RAGTools.trigrams</u></b> &mdash; <i>Method</i>.\n\n\n\n\n```julia\ntrigrams(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a vector of trigrams (combination of three consecutive characters found in the input_string).

If add_word is provided, it is added to the resulting array. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.Experimental.RAGTools.trigrams_hashedMethod.
julia
trigrams_hashed(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a Set of hashed trigrams (combination of three consecutive characters found in the input_string).

It is more efficient for lookups in large strings (eg, >100K characters).

If add_word is provided, it is added to the resulting array to hash. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.last_messageMethod.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source


# PromptingTools.last_outputMethod.

Extracts the last output (generated text answer) from the RAGResult.

source


# PromptingTools.pprintMethod.
julia
PromptingTools.pprint(\n    io::IO, node::AbstractAnnotatedNode;\n    text_width::Int = displaysize(io)[2], add_newline::Bool = true)

Pretty print the node to the io stream, including all its children

Supports only node.style::Styler for now.

source


# PromptingTools.pprintMethod.
julia
PT.pprint(\n    io::IO, r::AbstractRAGResult; add_context::Bool = false,\n    text_width::Int = displaysize(io)[2], annotater_kwargs...)

Pretty print the RAG result r to the given io stream.

If add_context is true, the context will be printed as well. The text_width parameter can be used to control the width of the output.

You can provide additional keyword arguments to the annotater, eg, add_sources, add_scores, min_score, etc. See annotate_support for more details.

source


', 284); +const _hoisted_285 = [ + _hoisted_1 +]; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return openBlock(), createElementBlock("div", null, _hoisted_285); +} +const reference_ragtools = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); +export { + __pageData, + reference_ragtools as default +}; diff --git a/dev/assets/reference_ragtools.md.xOyy1pKG.lean.js b/dev/assets/reference_ragtools.md.B2JuNvyi.lean.js similarity index 88% rename from dev/assets/reference_ragtools.md.xOyy1pKG.lean.js rename to dev/assets/reference_ragtools.md.B2JuNvyi.lean.js index c4064b7d1..8b3384283 100644 --- a/dev/assets/reference_ragtools.md.xOyy1pKG.lean.js +++ b/dev/assets/reference_ragtools.md.B2JuNvyi.lean.js @@ -1,12 +1,12 @@ import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; const __pageData = JSON.parse('{"title":"Reference for RAGTools","description":"","frontmatter":{},"headers":[],"relativePath":"reference_ragtools.md","filePath":"reference_ragtools.md","lastUpdated":null}'); const _sfc_main = { name: "reference_ragtools.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode("", 282); -const _hoisted_283 = [ +const _hoisted_1 = /* @__PURE__ */ createStaticVNode("", 284); +const _hoisted_285 = [ _hoisted_1 ]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { - return openBlock(), createElementBlock("div", null, _hoisted_283); + return openBlock(), createElementBlock("div", null, _hoisted_285); } const reference_ragtools = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { diff --git a/dev/assets/reference_ragtools.md.xOyy1pKG.js b/dev/assets/reference_ragtools.md.xOyy1pKG.js deleted file mode 100644 index 8232b5fe3..000000000 --- a/dev/assets/reference_ragtools.md.xOyy1pKG.js +++ /dev/null @@ -1,15 +0,0 @@ -import { _ as _export_sfc, c as createElementBlock, o as openBlock, a7 as createStaticVNode } from "./chunks/framework.C9IUtwDK.js"; -const __pageData = JSON.parse('{"title":"Reference for RAGTools","description":"","frontmatter":{},"headers":[],"relativePath":"reference_ragtools.md","filePath":"reference_ragtools.md","lastUpdated":null}'); -const _sfc_main = { name: "reference_ragtools.md" }; -const _hoisted_1 = /* @__PURE__ */ createStaticVNode('

Reference for RAGTools

# PromptingTools.Experimental.RAGToolsModule.
julia
RAGTools

Provides Retrieval-Augmented Generation (RAG) functionality.

Requires: LinearAlgebra, SparseArrays, Unicode, PromptingTools for proper functionality.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.RAGTools.AbstractCandidateChunksType.
julia
AbstractCandidateChunks

Abstract type for storing candidate chunks, ie, references to items in a AbstractChunkIndex.

Return type from find_closest and find_tags functions.

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractChunkIndexType.
julia
AbstractChunkIndex <: AbstractDocumentIndex

Main abstract type for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractGeneratorType.
julia
AbstractGenerator <: AbstractGenerationMethod

Abstract type for generating an answer with generate! (use to change the process / return type of generate).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractIndexBuilderType.
julia
AbstractIndexBuilder

Abstract type for building an index with build_index (use to change the process / return type of build_index).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AbstractMultiIndexType.
julia
AbstractMultiIndex <: AbstractDocumentIndex

Experimental abstract type for storing multiple document indexes. Not yet implemented.

source


# PromptingTools.Experimental.RAGTools.AbstractRetrieverType.
julia
AbstractRetriever <: AbstractRetrievalMethod

Abstract type for retrieving chunks from an index with retrieve (use to change the process / return type of retrieve).

Required Fields

source


# PromptingTools.Experimental.RAGTools.AdvancedGeneratorType.
julia
AdvancedGenerator <: AbstractGenerator

Default implementation for generate!. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, SimpleRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.AdvancedRetrieverType.
julia
AdvancedRetriever <: AbstractRetriever

Dispatch for retrieve with advanced retrieval methods to improve result quality. Compared to SimpleRetriever, it adds rephrasing the query and reranking the results.

Fields

source


# PromptingTools.Experimental.RAGTools.AllTagFilterType.
julia
AllTagFilter <: AbstractTagFilter

Finds the chunks that have ALL OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.AnnotatedNodeType.
julia
AnnotatedNode{T}  <: AbstractAnnotatedNode

A node to add annotations to the generated answer in airag

Annotations can be: sources, scores, whether its supported or not by the context, etc.

Fields

source


# PromptingTools.Experimental.RAGTools.AnyTagFilterType.
julia
AnyTagFilter <: AbstractTagFilter

Finds the chunks that have ANY OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.BM25SimilarityType.
julia
BM25Similarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the BM25 similarity between the query and the chunks' embeddings in binary form.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.BatchEmbedderType.
julia
BatchEmbedder <: AbstractEmbedder

Default embedder for get_embeddings functions. It passes individual documents to be embedded in chunks to aiembed.

source


# PromptingTools.Experimental.RAGTools.BinaryBatchEmbedderType.
julia
BinaryBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form (eg, BitMatrix).

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BinaryCosineSimilarityType.
julia
BinaryCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

It follows the two-pass approach:

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedBatchEmbedderType.
julia
BitPackedBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form packed in UInt64 (eg, BitMatrix.chunks).

See also utilities pack_bits and unpack_bits to move between packed/non-packed binary forms.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedCosineSimilarityType.
julia
BitPackedCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

The difference to BinaryCosineSimilarity is that the binary values are packed into UInt64, which is more efficient.

Reference: HuggingFace: Embedding Quantization. Implementation of hamming_distance is based on TinyRAG.

source


# PromptingTools.Experimental.RAGTools.CandidateChunksType.
julia
CandidateChunks

A struct for storing references to chunks in the given index (identified by index_id) called positions and scores holding the strength of similarity (=1 is the highest, most similar). It's the result of the retrieval stage of RAG.

Fields

source


# PromptingTools.Experimental.RAGTools.ChunkEmbeddingsIndexType.
julia
ChunkEmbeddingsIndex

Main struct for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Previously, this struct was called ChunkIndex.

Fields

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexType.
julia
ChunkKeywordsIndex

Struct for storing chunks of text and associated keywords for BM25 similarity search.

Fields

Example

We can easily create a keywords-based index from a standard embeddings-based index.

julia
\n# Let's assume we have a standard embeddings-based index\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Creating an additional index for keyword-based search (BM25), is as simple as\nindex_keywords = ChunkKeywordsIndex(index)\n\n# We can immediately create a MultiIndex (a hybrid index holding both indices)\nmulti_index = MultiIndex([index, index_keywords])

You can also build the index via build_index

julia
# given some sentences and sources\nindex_keywords = build_index(KeywordsIndexer(), sentences; chunker_kwargs=(; sources))\n\n# Retrive closest chunks with\nretriever = SimpleBM25Retriever()\nresult = retrieve(retriever, index_keywords, "What are the best practices for parallel computing in Julia?")\nresult.context

If you want to use airag, don't forget to specify the config to make sure keywords are processed (ie, tokenized) and that BM25 is used for searching candidates

julia
cfg = RAGConfig(; retriever = SimpleBM25Retriever());\nairag(cfg, index_keywords;\n    question = "What are the best practices for parallel computing in Julia?")

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexMethod.
julia
ChunkKeywordsIndex(\n    [processor::AbstractProcessor=KeywordsProcessor(),] index::ChunkEmbeddingsIndex; verbose::Int = 1,\n    index_id = gensym("ChunkKeywordsIndex"), processor_kwargs...)

Convenience method to quickly create a ChunkKeywordsIndex from an existing ChunkEmbeddingsIndex.

Example

julia
\n# Let's assume we have a standard embeddings-based index\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Creating an additional index for keyword-based search (BM25), is as simple as\nindex_keywords = ChunkKeywordsIndex(index)\n\n# We can immediately create a MultiIndex (a hybrid index holding both indices)\nmulti_index = MultiIndex([index, index_keywords])

source


# PromptingTools.Experimental.RAGTools.CohereRerankerType.
julia
CohereReranker <: AbstractReranker

Rerank strategy using the Cohere Rerank API. Requires an API key.

source


# PromptingTools.Experimental.RAGTools.ContextEnumeratorType.
julia
ContextEnumerator <: AbstractContextBuilder

Default method for build_context! method. It simply enumerates the context snippets around each position in candidates. When possibly, it will add surrounding chunks (from the same source).

source


# PromptingTools.Experimental.RAGTools.CosineSimilarityType.
julia
CosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the cosine similarity between the query and the chunks' embeddings.

source


# PromptingTools.Experimental.RAGTools.DocumentTermMatrixType.
julia
DocumentTermMatrix{T<:AbstractString}

A sparse matrix of term frequencies and document lengths to allow calculation of BM25 similarity scores.

source


# PromptingTools.Experimental.RAGTools.FileChunkerType.
julia
FileChunker <: AbstractChunker

Chunker when you provide file paths to get_chunks functions.

Ie, the inputs will be validated first (eg, file exists, etc) and then read into memory.

Set as default chunker in get_chunks functions.

source


# PromptingTools.Experimental.RAGTools.FlashRankerType.
julia
FlashRanker <: AbstractReranker

Rerank strategy using the package FlashRank.jl and local models.

You must first import the FlashRank.jl package. To automatically download any required models, set your ENV["DATADEPS_ALWAYS_ACCEPT"] = true (see DataDeps for more details).

Example

julia
using FlashRank\n\n# Wrap the model to be a valid Ranker recognized by RAGTools\n# It will be provided to the airag/rerank function to avoid instantiating it on every call\nreranker = FlashRank.RankerModel(:mini) |> FlashRanker\n# You can choose :tiny or :mini\n\n## Apply to the pipeline configuration, eg, \ncfg = RAGConfig(; retriever = AdvancedRetriever(; reranker))\n\n# Ask a question (assumes you have some `index`)\nquestion = "What are the best practices for parallel computing in Julia?"\nresult = airag(cfg, index; question, return_all = true)

source


# PromptingTools.Experimental.RAGTools.HTMLStylerType.
julia
HTMLStyler

Defines styling via classes (attribute class) and styles (attribute style) for HTML formatting of AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.HyDERephraserType.
julia
HyDERephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

It uses a prompt-based rephrasing method called HyDE (Hypothetical Document Embedding), where instead of looking for an embedding of the question, we look for the documents most similar to a synthetic passage that would be a good answer to our question.

Reference: Arxiv paper.

source


# PromptingTools.Experimental.RAGTools.JudgeAllScoresType.

final_rating is the average of all scoring criteria. Explain the final_rating in rationale

source


# PromptingTools.Experimental.RAGTools.JudgeRatingType.

Provide the final_rating between 1-5. Provide the rationale for it.

source


# PromptingTools.Experimental.RAGTools.KeywordsIndexerType.
julia
KeywordsIndexer <: AbstractIndexBuilder

Keyword-based index (BM25) to be returned by build_index.

It uses TextChunker, KeywordsProcessor, and NoTagger as default chunker, processor, and tagger.

source


# PromptingTools.Experimental.RAGTools.KeywordsProcessorType.
julia
KeywordsProcessor <: AbstractProcessor

Default keywords processor for get_keywords functions. It normalizes the documents, tokenizes them and builds a DocumentTermMatrix.

source


# PromptingTools.Experimental.RAGTools.MultiCandidateChunksType.
julia
MultiCandidateChunks

A struct for storing references to multiple sets of chunks across different indices. Each set of chunks is identified by an index_id in index_ids, with corresponding positions in the index and scores indicating the strength of similarity.

This struct is useful for scenarios where candidates are drawn from multiple indices, and there is a need to keep track of which candidates came from which index.

Fields

source


# PromptingTools.Experimental.RAGTools.MultiFinderType.
julia
MultiFinder <: AbstractSimilarityFinder

Composite finder for MultiIndex where we want to set multiple finders for each index. Positions correspond to indexes(::MultiIndex).

source


# PromptingTools.Experimental.RAGTools.MultiIndexType.
julia
MultiIndex

Composite index that stores multiple ChunkIndex objects and their embeddings.

Fields

Use accesor indexes to access the individual indexes.

Examples

We can create a MultiIndex from a vector of AbstractChunkIndex objects.

julia
index = build_index(SimpleIndexer(), texts; chunker_kwargs = (; sources))\nindex_keywords = ChunkKeywordsIndex(index) # same chunks as above but adds BM25 instead of embeddings\n\nmulti_index = MultiIndex([index, index_keywords])

To use airag with different types of indices, we need to specify how to find the closest items for each index

julia
# Cosine similarity for embeddings and BM25 for keywords, same order as indexes in MultiIndex\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\n\n# Notice that we add `processor` to make sure keywords are processed (ie, tokenized) as well\ncfg = RAGConfig(; retriever = SimpleRetriever(; processor = RT.KeywordsProcessor(), finder))\n\n# Ask questions\nmsg = airag(cfg, multi_index; question = "What are the best practices for parallel computing in Julia?")\npprint(msg) # prettify the answer

source


# PromptingTools.Experimental.RAGTools.NoEmbedderType.
julia
NoEmbedder <: AbstractEmbedder

No-op embedder for get_embeddings functions. It returns nothing.

source


# PromptingTools.Experimental.RAGTools.NoPostprocessorType.
julia
NoPostprocessor <: AbstractPostprocessor

Default method for postprocess! method. A passthrough option that returns the result without any changes.

Overload this method to add custom postprocessing steps, eg, logging, saving conversations to disk, etc.

source


# PromptingTools.Experimental.RAGTools.NoProcessorType.
julia
NoProcessor <: AbstractProcessor

No-op processor for get_keywords functions. It returns the inputs as is.

source


# PromptingTools.Experimental.RAGTools.NoRefinerType.
julia
NoRefiner <: AbstractRefiner

Default method for refine! method. A passthrough option that returns the result.answer without any changes.

source


# PromptingTools.Experimental.RAGTools.NoRephraserType.
julia
NoRephraser <: AbstractRephraser

No-op implementation for rephrase, which simply passes the question through.

source


# PromptingTools.Experimental.RAGTools.NoRerankerType.
julia
NoReranker <: AbstractReranker

No-op implementation for rerank, which simply passes the candidate chunks through.

source


# PromptingTools.Experimental.RAGTools.NoTagFilterType.
julia
NoTagFilter <: AbstractTagFilter

No-op implementation for find_tags, which simply returns all chunks.

source


# PromptingTools.Experimental.RAGTools.NoTaggerType.
julia
NoTagger <: AbstractTagger

No-op tagger for get_tags functions. It returns (nothing, nothing).

source


# PromptingTools.Experimental.RAGTools.OpenTaggerType.
julia
OpenTagger <: AbstractTagger

Tagger for get_tags functions, which generates possible tags for each chunk via aiextract. You can customize it via prompt template (default: :RAGExtractMetadataShort), but it's quite open-ended (ie, AI decides the possible tags).

source


# PromptingTools.Experimental.RAGTools.PassthroughTaggerType.
julia
PassthroughTagger <: AbstractTagger

Tagger for get_tags functions, which passes tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]).

source


# PromptingTools.Experimental.RAGTools.RAGConfigType.
julia
RAGConfig <: AbstractRAGConfig

Default configuration for RAG. It uses SimpleIndexer, SimpleRetriever, and SimpleGenerator as default components.

To customize the components, replace corresponding fields for each step of the RAG pipeline (eg, use subtypes(AbstractIndexBuilder) to find the available options).

source


# PromptingTools.Experimental.RAGTools.RAGResultType.
julia
RAGResult

A struct for debugging RAG answers. It contains the question, answer, context, and the candidate chunks at each step of the RAG pipeline.

Think of the flow as question -> rephrased_questions -> answer -> final_answer with the context and candidate chunks helping along the way.

Fields

See also: pprint (pretty printing), annotate_support (for annotating the answer)

source


# PromptingTools.Experimental.RAGTools.RankGPTRerankerType.
julia
RankGPTReranker <: AbstractReranker

Rerank strategy using the RankGPT algorithm (calling LLMs).

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.RankGPTResultType.
julia
RankGPTResult

Results from the RankGPT algorithm.

Fields

source


# PromptingTools.Experimental.RAGTools.SimpleAnswererType.
julia
SimpleAnswerer <: AbstractAnswerer

Default method for answer! method. Generates an answer using the aigenerate function with the provided context and question.

source


# PromptingTools.Experimental.RAGTools.SimpleBM25RetrieverType.
julia
SimpleBM25Retriever <: AbstractRetriever

Keyword-based implementation for retrieve. It does a simple similarity search via BM25Similarity and returns the results.

Make sure to use consistent processor and tagger with the Preparation Stage (build_index)!

Fields

source


# PromptingTools.Experimental.RAGTools.SimpleGeneratorType.
julia
SimpleGenerator <: AbstractGenerator

Default implementation for generate. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, NoRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.SimpleIndexerType.
julia
SimpleIndexer <: AbstractIndexBuilder

Default implementation for build_index.

It uses TextChunker, BatchEmbedder, and NoTagger as default chunker, embedder, and tagger.

source


# PromptingTools.Experimental.RAGTools.SimpleRefinerType.
julia
SimpleRefiner <: AbstractRefiner

Refines the answer using the same context previously provided via the provided prompt template.

source


# PromptingTools.Experimental.RAGTools.SimpleRephraserType.
julia
SimpleRephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

source


# PromptingTools.Experimental.RAGTools.SimpleRetrieverType.
julia
SimpleRetriever <: AbstractRetriever

Default implementation for retrieve. It does a simple similarity search via CosineSimilarity and returns the results.

Make sure to use consistent embedder and tagger with the Preparation Stage (build_index)!

Fields

source


# PromptingTools.Experimental.RAGTools.StylerType.
julia
Styler

Defines styling keywords for printstyled for each AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.SubChunkIndexType.
julia
SubChunkIndex

A view of the parent index with respect to the chunks (and chunk-aligned fields). All methods and accessors working for AbstractChunkIndex also work for SubChunkIndex. It does not yet work for MultiIndex.

Fields

Example

julia
cc = CandidateChunks(index.id, 1:10)\nsub_index = @view(index[cc])

You can use SubChunkIndex to access chunks or sources (and other fields) from a parent index, eg,

julia
RT.chunks(sub_index)\nRT.sources(sub_index)\nRT.chunkdata(sub_index) # slice of embeddings\nRT.embeddings(sub_index) # slice of embeddings\nRT.tags(sub_index) # slice of tags\nRT.tags_vocab(sub_index) # unchanged, identical to parent version\nRT.extras(sub_index) # slice of extras

Access the parent index that the positions correspond to

julia
parent(sub_index)\nRT.positions(sub_index)

source


# PromptingTools.Experimental.RAGTools.SubDocumentTermMatrixType.

A partial view of a DocumentTermMatrix, tf is MATERIALIZED for performance and fewer allocations.

source


# PromptingTools.Experimental.RAGTools.TavilySearchRefinerType.
julia
TavilySearchRefiner <: AbstractRefiner

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

source


# PromptingTools.Experimental.RAGTools.TextChunkerType.
julia
TextChunker <: AbstractChunker

Chunker when you provide text to get_chunks functions. Inputs are directly chunked

source


# PromptingTools.Experimental.RAGTools.TrigramAnnotaterType.
julia
TrigramAnnotater

Annotation method where we score answer versus each context based on word-level trigrams that match.

It's very simple method (and it can loose some semantic meaning in longer sequences like negative), but it works reasonably well for both text and code.

source


# PromptingTools.Experimental.RAGTools._normalizeFunction.

Shortcut to LinearAlgebra.normalize. Provided in the package extension RAGToolsExperimentalExt (Requires SparseArrays, Unicode, and LinearAlgebra)

source


# PromptingTools.Experimental.RAGTools.add_node_metadata!Method.
julia
add_node_metadata!(annotater::TrigramAnnotater,\n    root::AnnotatedNode; add_sources::Bool = true, add_scores::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing)

Adds metadata to the children of root. Metadata includes sources and scores, if requested.

Optionally, it can add a list of sources at the end of the printed text.

The metadata is added by inserting new nodes in the root children list (with no children of its own to be printed out).

source


# PromptingTools.Experimental.RAGTools.airagMethod.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;\n    question::AbstractString,\n    verbose::Integer = 1, return_all::Bool = false,\n    api_kwargs::NamedTuple = NamedTuple(),\n    retriever::AbstractRetriever = cfg.retriever,\n    retriever_kwargs::NamedTuple = NamedTuple(),\n    generator::AbstractGenerator = cfg.generator,\n    generator_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

High-level wrapper for Retrieval-Augmented Generation (RAG), it combines together the retrieve and generate! steps which you can customize if needed.

The simplest version first finds the relevant chunks in index for the question and then sends these chunks to the AI model to help with generating a response to the question.

To customize the components, replace the types (retriever, generator) of the corresponding step of the RAG pipeline - or go into sub-routines within the steps. Eg, use subtypes(AbstractRetriever) to find the available options.

Arguments

Returns

See also build_index, retrieve, generate!, RAGResult, getpropertynested, setpropertynested, merge_kwargs_nested, ChunkKeywordsIndex.

Examples

Using airag to get a response for a question:

julia
index = build_index(...)  # create an index\nquestion = "How to make a barplot in Makie.jl?"\nmsg = airag(index; question)

To understand the details of the RAG process, use return_all=true

julia
msg, details = airag(index; question, return_all = true)\n# details is a RAGDetails object with all the internal steps of the `airag` function

You can also pretty-print details to highlight generated text vs text that is supported by context. It also includes annotations of which context was used for each part of the response (where available).

julia
PT.pprint(details)

Example with advanced retrieval (with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n). In addition, it will be done with a "custom" locally-hosted model.

julia
cfg = RAGConfig(; retriever = AdvancedRetriever())\n\n# kwargs will be big and nested, let's prepare them upfront\n# we specify "custom" model for each component that calls LLM\nkwargs = (\n    retriever_kwargs = (;\n        top_k = 100,\n        top_n = 5,\n        rephraser_kwargs = (;\n            model = "custom"),\n        embedder_kwargs = (;\n            model = "custom"),\n        tagger_kwargs = (;\n            model = "custom")),\n    generator_kwargs = (;\n        answerer_kwargs = (;\n            model = "custom"),\n        refiner_kwargs = (;\n            model = "custom")),\n    api_kwargs = (;\n        url = "http://localhost:8080"))\n\nresult = airag(cfg, index, question; kwargs...)

If you want to use hybrid retrieval (embeddings + BM25), you can easily create an additional index based on keywords and pass them both into a MultiIndex.

You need to provide an explicit config, so the pipeline knows how to handle each index in the search similarity phase (finder).

julia
index = # your existing index\n\n# create the multi-index with the keywords index\nindex_keywords = ChunkKeywordsIndex(index)\nmulti_index = MultiIndex([index, index_keywords])\n\n# define the similarity measures for the indices that you have (same order)\nfinder = RT.MultiFinder([RT.CosineSimilarity(), RT.BM25Similarity()])\ncfg = RAGConfig(; retriever=AdvancedRetriever(; processor=RT.KeywordsProcessor(), finder))\n\n# Run the pipeline with the new hybrid retrieval (return the `RAGResult` to see the details)\nresult = airag(cfg, multi_index; question, return_all=true)\n\n# Pretty-print the result\nPT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.align_node_styles!Method.
julia
align_node_styles!(annotater::TrigramAnnotater, nodes::AbstractVector{<:AnnotatedNode}; kwargs...)

Aligns the styles of the nodes based on the surrounding nodes ("fill-in-the-middle").

If the node has no score, but the surrounding nodes have the same style, the node will inherit the style of the surrounding nodes.

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,\n    context::AbstractVector; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Annotates the answer with the overlap/what's supported in context and returns the annotated tree of nodes representing the answer

Returns a "root" node with children nodes representing the sentences/code blocks in the answer. Only the "leaf" nodes are to be printed (to avoid duplication), "leaf" nodes are those with NO children.

Default logic:

Arguments

Example

julia
annotater = TrigramAnnotater()\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test context. Another context sentence."\n\nannotated_root = annotate_support(annotater, answer, context)\npprint(annotated_root) # pretty print the annotated tree

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(\n    annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,\n    skip_trigrams::Bool = true, hashed::Bool = true,\n    min_source_score::Float64 = 0.25,\n    add_sources::Bool = true,\n    add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",\n    context = ["Test context.", "Completely different"])\nannotated_root = annotate_support(annotater, res)\nPT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.answer!Method.
julia
answer!(\n    answerer::SimpleAnswerer, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    model::AbstractString = PT.MODEL_CHAT, verbose::Bool = true,\n    template::Symbol = :RAGAnswerFromContext,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generates an answer using the aigenerate function with the provided result.context and result.question.

Returns

Arguments

source


# PromptingTools.Experimental.RAGTools.build_contextMethod.
julia
build_context(contexter::ContextEnumerator,\n    index::AbstractDocumentIndex, candidates::AbstractCandidateChunks;\n    verbose::Bool = true,\n    chunks_window_margin::Tuple{Int, Int} = (1, 1), kwargs...)\n\n    build_context!(contexter::ContextEnumerator,\n    index::AbstractDocumentIndex, result::AbstractRAGResult; kwargs...)

Build context strings for each position in candidates considering a window margin around each position. If mutating version is used (build_context!), it will use result.reranked_candidates to update the result.context field.

Arguments

Returns

Examples

julia
index = ChunkIndex(...)  # Assuming a proper index is defined\ncandidates = CandidateChunks(index.id, [2, 4], [0.1, 0.2])\ncontext = build_context(ContextEnumerator(), index, candidates; chunks_window_margin=(0, 1)) # include only one following chunk for each matching chunk

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(\n    indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkKeywordsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = indexer.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(\n    indexer::AbstractIndexBuilder, files_or_docs::Vector{<:AbstractString};\n    verbose::Integer = 1,\n    extras::Union{Nothing, AbstractVector} = nothing,\n    index_id = gensym("ChunkEmbeddingsIndex"),\n    chunker::AbstractChunker = indexer.chunker,\n    chunker_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = indexer.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = indexer.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    api_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Build an INDEX for RAG (Retriever-Augmented Generation) applications from the provided file paths. INDEX is a object storing the document chunks and their embeddings (and potentially other information).

The function processes each file or document (depending on chunker), splits its content into chunks, embeds these chunks, optionally extracts metadata, and then combines this information into a retrievable index.

Define your own methods via indexer and its subcomponents (chunker, embedder, tagger).

Arguments

Returns

See also: ChunkEmbeddingsIndex, get_chunks, get_embeddings, get_tags, CandidateChunks, find_closest, find_tags, rerank, retrieve, generate!, airag

Examples

julia
# Default is loading a vector of strings and chunking them (`TextChunker()`)\nindex = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))\n\n# Another example with tags extraction, splitting only sentences and verbose output\n# Assuming `test_files` is a vector of file paths\nindexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger())\nindex = build_index(indexer, test_files; \n        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsMethod.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};\n               model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, \n               verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]\nsources = ["source1", "source2"]\nqa_evals = build_qa_evals(doc_chunks, sources)

source


# PromptingTools.Experimental.RAGTools.build_tagsFunction.

Builds a matrix of tags and a vocabulary list. REQUIRES SparseArrays, LinearAlgebra, Unicode packages to be loaded!!

source


# PromptingTools.Experimental.RAGTools.build_tagsMethod.
julia
build_tags(tagger::AbstractTagger, chunk_tags::Nothing; kwargs...)

No-op that skips any tag building, returning nothing, nothing

Otherwise, it would build the sparse matrix and the vocabulary (requires SparseArrays and LinearAlgebra packages to be loaded).

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.cohere_apiMethod.
julia
cohere_api(;\napi_key::AbstractString,\nendpoint::String,\nurl::AbstractString="https://api.cohere.ai/v1",\nhttp_kwargs::NamedTuple=NamedTuple(),\nkwargs...)

Lightweight wrapper around the Cohere API. See https://cohere.com/docs for more details.

Arguments

source


# PromptingTools.Experimental.RAGTools.create_permutation_instructionMethod.
julia
create_permutation_instruction(\n    context::AbstractVector{<:AbstractString}; rank_start::Integer = 1,\n    rank_end::Integer = 100, max_length::Integer = 512, template::Symbol = :RAGRankGPT)

Creates rendered template with injected context passages.

source


# PromptingTools.Experimental.RAGTools.extract_rankingMethod.
julia
extract_ranking(str::AbstractString)

Extracts the ranking from the response into a sorted array of integers.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BM25Similarity, dtm::AbstractDocumentTermMatrix,\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by DocumentTermMatrix in dtm) that are closest to query tokens (query_tokens) using BM25.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::AbstractSimilarityFinder, index::AbstractChunkIndex,\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, kwargs...)

Finds the indices of chunks (represented by embeddings in index) that are closest to query embedding (query_emb).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::CosineSimilarity, emb::AbstractMatrix{<:Real},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest (in cosine similarity for CosineSimilarity()) to query embedding (query_emb).

finder is the logic used for the similarity search. Default is CosineSimilarity.

If minimum_similarity is provided, only indices with similarity greater than or equal to it are returned. Similarity can be between -1 and 1 (-1 = completely opposite, 1 = exactly the same).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BinaryCosineSimilarity, emb::AbstractMatrix{<:Bool},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using binary embeddings (in the index).

This is a two-pass approach:

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to binary like this:

julia
binary_emb = map(>(0), emb)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(\n    finder::BitPackedCosineSimilarity, emb::AbstractMatrix{<:Bool},\n    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];\n    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using bit-packed binary embeddings (in the index).

This is a two-pass approach:

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to bit-packed binary like this:

julia
bitpacked_emb = pack_bits(emb.>0)

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AnyTagFilter, index::AbstractChunkIndex,\n    tag::Union{AbstractString, Regex}; kwargs...)\n\nfind_tags(method::AnyTagFilter, index::AbstractChunkIndex,\n    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ANY OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AllTagFilter, index::AbstractChunkIndex,\n    tag::Union{AbstractString, Regex}; kwargs...)\n\nfind_tags(method::AllTagFilter, index::AbstractChunkIndex,\n    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ALL OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::NoTagFilter, index::AbstractChunkIndex,\n    tags::Union{T, AbstractVector{<:T}}; kwargs...) where {T <:\n                                                           Union{\n    AbstractString, Regex, Nothing}}\n    tags; kwargs...)

Returns all chunks in the index, ie, no filtering, so we simply return nothing (easier for dispatch).

source


# PromptingTools.Experimental.RAGTools.generate!Method.
julia
generate!(\n    generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Integer = 1,\n    api_kwargs::NamedTuple = NamedTuple(),\n    contexter::AbstractContextBuilder = generator.contexter,\n    contexter_kwargs::NamedTuple = NamedTuple(),\n    answerer::AbstractAnswerer = generator.answerer,\n    answerer_kwargs::NamedTuple = NamedTuple(),\n    refiner::AbstractRefiner = generator.refiner,\n    refiner_kwargs::NamedTuple = NamedTuple(),\n    postprocessor::AbstractPostprocessor = generator.postprocessor,\n    postprocessor_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Generate the response using the provided generator and the index and result. It is the second step in the RAG pipeline (after retrieve)

Returns the mutated result with the result.final_answer and the full conversation saved in result.conversations[:final_answer].

Notes

Arguments

See also: retrieve, build_context!, ContextEnumerator, answer!, SimpleAnswerer, refine!, NoRefiner, SimpleRefiner, postprocess!, NoPostprocessor

Examples

julia
Assume we already have `index`\n\nquestion = "What are the best practices for parallel computing in Julia?"\n\n# Retrieve the relevant chunks - returns RAGResult\nresult = retrieve(index, question)\n\n# Generate the answer using the default generator, mutates the same result\nresult = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.get_chunksMethod.
julia
get_chunks(chunker::AbstractChunker,\n    files_or_docs::Vector{<:AbstractString};\n    sources::AbstractVector{<:AbstractString} = files_or_docs,\n    verbose::Bool = true,\n    separators = ["\\n\\n", ". ", "\\n", " "], max_length::Int = 256)

Chunks the provided files_or_docs into chunks of maximum length max_length (if possible with provided separators).

Supports two modes of operation:

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner - BatchEmbedder.

BatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BinaryBatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    return_type::Type = Matrix{Bool},\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix - BinaryBatchEmbedder.

BinaryBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

Arguments

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BitPackedBatchEmbedder, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_EMBEDDING,\n    truncate_dimension::Union{Int, Nothing} = nothing,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    target_batch_size_length::Int = 80_000,\n    ntasks::Int = 4 * Threads.nthreads(),\n    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix represented in UInt64 (bit-packed) - BitPackedBatchEmbedder.

BitPackedBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

The best option for FAST and MEMORY-EFFICIENT storage of embeddings, for retrieval use BitPackedCosineSimilarity.

Notes

Arguments

See also: unpack_bits, pack_bits, BitPackedCosineSimilarity.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::NoTagger, docs::AbstractVector{<:AbstractString};\n    kwargs...)

Simple no-op that skips any tagging of the documents

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::OpenTagger, docs::AbstractVector{<:AbstractString};\n    verbose::Bool = true,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Extracts "tags" (metadata/keywords) from a vector of docs using the provided model (kwarg model).

Arguments

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::PassthroughTagger, docs::AbstractVector{<:AbstractString};\n    tags::AbstractVector{<:AbstractVector{<:AbstractString}},\n    kwargs...)

Pass tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]). It then builds the vocabulary from the tags and returns both the tags in matrix form and the vocabulary.

source


# PromptingTools.Experimental.RAGTools.getpropertynestedFunction.
julia
getpropertynested(\n    nt::NamedTuple, parent_keys::Vector{Symbol}, key::Symbol, default = nothing)

Get a property key from a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to get some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))\ngetpropertynested(kw, [:abc], :def)\n# Output: "x"

source


# PromptingTools.Experimental.RAGTools.hamming_distanceMethod.
julia
hamming_distance(\n    mat::AbstractMatrix{T}, query::AbstractVector{T})::Vector{Int} where {T <: Integer}

Calculates the column-wise Hamming distance between a matrix of binary vectors mat and a single binary vector vect.

This is the first-pass ranking for BinaryCosineSimilarity method.

Implementation from domluna's tinyRAG.

source


# PromptingTools.Experimental.RAGTools.load_textMethod.
julia
load_text(chunker::AbstractChunker, input;\n    kwargs...)

Load text from input using the provided chunker

Available chunkers:

source


# PromptingTools.Experimental.RAGTools.merge_kwargs_nestedMethod.
julia
merge_kwargs_nested(nt1::NamedTuple, nt2::NamedTuple)

Merges two nested NamedTuples nt1 and nt2 recursively. The nt2 values will overwrite the nt1 values when overlapping.

Example

julia
kw = (; abc = (; def = "x"))\nkw2 = (; abc = (; def = "x", def2 = 2), new = 1)\nmerge_kwargs_nested(kw, kw2)

source


# PromptingTools.Experimental.RAGTools.pack_bitsMethod.
julia
pack_bits(arr::AbstractMatrix{<:Bool}) -> Matrix{UInt64}\npack_bits(vect::AbstractVector{<:Bool}) -> Vector{UInt64}

Pack a matrix or vector of boolean values into a more compact representation using UInt64.

Arguments (Input)

Returns

Examples

For vectors:

julia
bin = rand(Bool, 128)\nbinint = pack_bits(bin)\nbinx = unpack_bits(binint)\n@assert bin == binx

For matrices:

julia
bin = rand(Bool, 128, 10)\nbinint = pack_bits(bin)\nbinx = unpack_bits(binint)\n@assert bin == binx

source


# PromptingTools.Experimental.RAGTools.permutation_step!Method.
julia
permutation_step!(\n    result::RankGPTResult; rank_start::Integer = 1, rank_end::Integer = 100, kwargs...)

One sub-step of the RankGPT algorithm permutation ranking within the window of chunks defined by rank_start and rank_end positions.

source


# PromptingTools.Experimental.RAGTools.preprocess_tokensFunction.
julia
preprocess_tokens(text::AbstractString, stemmer=nothing; stopwords::Union{Nothing,Set{String}}=nothing, min_length::Int=3)

Preprocess provided text by removing numbers, punctuation, and applying stemming for BM25 search index.

Returns a list of preprocessed tokens.

Example

julia
stemmer = Snowball.Stemmer("english")\nstopwords = Set(["a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "some", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"])\ntext = "This is a sample paragraph to test the functionality of your text preprocessor. It contains a mix of uppercase and lowercase letters, as well as punctuation marks such as commas, periods, and exclamation points! Let's see how your preprocessor handles quotes, like "this one", and also apostrophes, like in don't. Will it preserve the formatting of this paragraph, including the indentation and line breaks?"\npreprocess_tokens(text, stemmer; stopwords)

source


# PromptingTools.Experimental.RAGTools.print_htmlMethod.
julia
print_html([io::IO,] parent_node::AbstractAnnotatedNode)\n\nprint_html([io::IO,] rag::AbstractRAGResult; add_sources::Bool = false,\n    add_scores::Bool = false, default_styler = HTMLStyler(),\n    low_styler = HTMLStyler(styles = "color:magenta", classes = ""),\n    medium_styler = HTMLStyler(styles = "color:blue", classes = ""),\n    high_styler = HTMLStyler(styles = "", classes = ""), styler_kwargs...)

Pretty-prints the annotation parent_node (or RAGResult) to the io stream (or returns the string) in HTML format (assumes node is styled with styler HTMLStyler).

It wraps each "token" into a span with requested styling (HTMLStyler's properties classes and styles). It also replaces new lines with <br> for better HTML formatting.

For any non-HTML styler, it prints the content as plain text.

Returns

See also HTMLStyler, annotate_support, and set_node_style! for how the styling is applied and what the arguments mean.

Examples

Note: RT is an alias for PromptingTools.Experimental.RAGTools

Simple start directly with the RAGResult:

julia
# set up the text/RAGResult\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test answer. It has multiple sentences."\nrag = RT.RAGResult(; context, final_answer=answer, question="")\n\n# print the HTML\nprint_html(rag)

Low-level control by creating our AnnotatedNode:

julia
# prepare your HTML styling\nstyler_kwargs = (;\n    default_styler=RT.HTMLStyler(),\n    low_styler=RT.HTMLStyler(styles="color:magenta", classes=""),\n    medium_styler=RT.HTMLStyler(styles="color:blue", classes=""),\n    high_styler=RT.HTMLStyler(styles="", classes=""))\n\n# annotate the text\ncontext = [\n    "This is a test context.", "Another context sentence.", "Final piece of context."]\nanswer = "This is a test answer. It has multiple sentences."\n\nparent_node = RT.annotate_support(\n    RT.TrigramAnnotater(), answer, context; add_sources=false, add_scores=false, styler_kwargs...)\n\n# print the HTML\nprint_html(parent_node)\n\n# or to accumulate more nodes\nio = IOBuffer()\nprint_html(io, parent_node)

source


# PromptingTools.Experimental.RAGTools.rank_gptMethod.
julia
rank_gpt(chunks::AbstractVector{<:AbstractString}, question::AbstractString;\n    verbose::Int = 1, rank_start::Integer = 1, rank_end::Integer = 100,\n    window_size::Integer = 20, step::Integer = 10,\n    num_rounds::Integer = 1, model::String = "gpt4o", kwargs...)

Ranks the chunks based on their relevance for question. Returns the ranking permutation of the chunks in the order they are most relevant to the question (the first is the most relevant).

Example

julia
result = rank_gpt(chunks, question; rank_start=1, rank_end=25, window_size=8, step=4, num_rounds=3, model="gpt4o")

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.rank_sliding_window!Method.
julia
rank_sliding_window!(\n    result::RankGPTResult; verbose::Int = 1, rank_start = 1, rank_end = 100,\n    window_size = 20, step = 10, model::String = "gpt4o", kwargs...)

One single pass of the RankGPT algorithm permutation ranking across all positions between rank_start and rank_end.

source


# PromptingTools.Experimental.RAGTools.receive_permutation!Method.
julia
receive_permutation!(\n    curr_rank::AbstractVector{<:Integer}, response::AbstractString;\n    rank_start::Integer = 1, rank_end::Integer = 100)

Extracts and heals the permutation to contain all ranking positions.

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(args...; k::Int=60)

Merges multiple rankings and calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]\npositions2 = [2, 4, 6, 8, 10]\npositions3 = [2, 4, 6, 11, 12]\n\nmerged_positions, scores = reciprocal_rank_fusion(positions1, positions2, positions3)

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(\n    positions1::AbstractVector{<:Integer}, scores1::AbstractVector{<:T},\n    positions2::AbstractVector{<:Integer},\n    scores2::AbstractVector{<:T}; k::Int = 60) where {T <: Real}

Merges two sets of rankings and their joint scores. Calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]\nscores1 = [0.9, 0.8, 0.7, 0.6, 0.5]\npositions2 = [2, 4, 6, 8, 10]\nscores2 = [0.5, 0.6, 0.7, 0.8, 0.9]\n\nmerged, scores = reciprocal_rank_fusion(positions1, scores1, positions2, scores2; k = 60)

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::NoRefiner, index::AbstractChunkIndex, result::AbstractRAGResult;\n    kwargs...)

Simple no-op function for refine. It simply copies the result.answer and result.conversations[:answer] without any changes.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::SimpleRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_CHAT,\n    template::Symbol = :RAGAnswerRefiner,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Give model a chance to refine the answer (using the same or different context than previously provided).

This method uses the same context as the original answer, however, it can be modified to do additional retrieval and use a different context.

Returns

Arguments

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(\n    refiner::TavilySearchRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;\n    verbose::Bool = true,\n    model::AbstractString = PT.MODEL_CHAT,\n    include_answer::Bool = true,\n    max_results::Integer = 5,\n    include_domains::AbstractVector{<:AbstractString} = String[],\n    exclude_domains::AbstractVector{<:AbstractString} = String[],\n    template::Symbol = :RAGWebSearchRefiner,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

Note: The web results and web answer (if requested) will be added to the context and sources!

Returns

Arguments

Example

julia
refiner!(TavilySearchRefiner(), index, result)\n# See result.final_answer or pprint(result)

To enable this refiner in a full RAG pipeline, simply swap the component in the config:

julia
cfg = RT.RAGConfig()\ncfg.generator.refiner = RT.TavilySearchRefiner()\n\nresult = airag(cfg, index; question, return_all = true)\npprint(result)

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;\n    verbose::Bool = true,\n    model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryHyDE,\n    cost_tracker = Threads.Atomic{Float64}(0.0))

Rephrases the question using the provided rephraser template = RAGQueryHyDE.

Special flavor of rephrasing using HyDE (Hypothetical Document Embedding) method, which aims to find the documents most similar to a synthetic passage that would be a good answer to our question.

Returns both the original and the rephrased question.

Arguments

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::NoRephraser, question::AbstractString; kwargs...)

No-op, simple passthrough.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;\n    verbose::Bool = true,\n    model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryOptimizer,\n    cost_tracker = Threads.Atomic{Float64}(0.0), kwargs...)

Rephrases the question using the provided rephraser template.

Returns both the original and the rephrased question.

Arguments

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(\n    reranker::CohereReranker, index::AbstractDocumentIndex, question::AbstractString,\n    candidates::AbstractCandidateChunks;\n    verbose::Bool = false,\n    api_key::AbstractString = PT.COHERE_API_KEY,\n    top_n::Integer = length(candidates.scores),\n    model::AbstractString = "rerank-english-v3.0",\n    return_documents::Bool = false,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Re-ranks a list of candidate chunks using the Cohere Rerank API. See https://cohere.com/rerank for more details.

Arguments

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(\n    reranker::RankGPTReranker, index::AbstractDocumentIndex, question::AbstractString,\n    candidates::AbstractCandidateChunks;\n    api_key::AbstractString = PT.OPENAI_API_KEY,\n    model::AbstractString = PT.MODEL_CHAT,\n    verbose::Bool = false,\n    top_n::Integer = length(candidates.scores),\n    unique_chunks::Bool = true,\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Re-ranks a list of candidate chunks using the RankGPT algorithm. See https://github.com/sunnweiwei/RankGPT for more details.

It uses LLM calls to rank the candidate chunks.

Arguments

Examples

julia
index = <some index>\nquestion = "What are the best practices for parallel computing in Julia?"\n\ncfg = RAGConfig(; retriever = SimpleRetriever(; reranker = RT.RankGPTReranker()))\nmsg = airag(cfg, index; question, return_all = true)

To get full verbosity of logs, set verbose = 5 (anything higher than 3).

julia
msg = airag(cfg, index; question, return_all = true, verbose = 5)

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.retrieveMethod.
julia
retrieve(retriever::AbstractRetriever,\n    index::AbstractChunkIndex,\n    question::AbstractString;\n    verbose::Integer = 1,\n    top_k::Integer = 100,\n    top_n::Integer = 5,\n    api_kwargs::NamedTuple = NamedTuple(),\n    rephraser::AbstractRephraser = retriever.rephraser,\n    rephraser_kwargs::NamedTuple = NamedTuple(),\n    embedder::AbstractEmbedder = retriever.embedder,\n    embedder_kwargs::NamedTuple = NamedTuple(),\n    processor::AbstractProcessor = retriever.processor,\n    processor_kwargs::NamedTuple = NamedTuple(),\n    finder::AbstractSimilarityFinder = retriever.finder,\n    finder_kwargs::NamedTuple = NamedTuple(),\n    tagger::AbstractTagger = retriever.tagger,\n    tagger_kwargs::NamedTuple = NamedTuple(),\n    filter::AbstractTagFilter = retriever.filter,\n    filter_kwargs::NamedTuple = NamedTuple(),\n    reranker::AbstractReranker = retriever.reranker,\n    reranker_kwargs::NamedTuple = NamedTuple(),\n    cost_tracker = Threads.Atomic{Float64}(0.0),\n    kwargs...)

Retrieves the most relevant chunks from the index for the given question and returns them in the RAGResult object.

This is the main entry point for the retrieval stage of the RAG pipeline. It is often followed by generate! step.

Notes:

The arguments correspond to the steps of the retrieval process (rephrasing, embedding, finding similar docs, tagging, filtering by tags, reranking). You can customize each step by providing a new custom type that dispatches the corresponding function, eg, create your own type struct MyReranker<:AbstractReranker end and define the custom method for it rerank(::MyReranker,...) = ....

Note: Discover available retrieval sub-types for each step with subtypes(AbstractRephraser) and similar for other abstract types.

If you're using locally-hosted models, you can pass the api_kwargs with the url field set to the model's URL and make sure to provide corresponding model kwargs to rephraser, embedder, and tagger to use the custom models (they make AI calls).

Arguments

See also: SimpleRetriever, AdvancedRetriever, build_index, rephrase, get_embeddings, get_keywords, find_closest, get_tags, find_tags, rerank, RAGResult.

Examples

Find the 5 most relevant chunks from the index for the given question.

julia
# assumes you have an existing index `index`\nretriever = SimpleRetriever()\n\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)\n\n# or use the default retriever (same as above)\nresult = retrieve(retriever,\n    index,\n    "What is the capital of France?",\n    top_n = 5)

Apply more advanced retrieval with question rephrasing and reranking (requires COHERE_API_KEY). We will obtain top 100 chunks from embeddings (top_k) and top 5 chunks from reranking (top_n).

julia
retriever = AdvancedRetriever()\n\nresult = retrieve(retriever, index, question; top_k=100, top_n=5)

You can use the retriever to customize your retrieval strategy or directly change the strategy types in the retrieve kwargs!

Example of using locally-hosted model hosted on localhost:8080:

julia
retriever = SimpleRetriever()\nresult = retrieve(retriever, index, question;\n    rephraser_kwargs = (; model = "custom"),\n    embedder_kwargs = (; model = "custom"),\n    tagger_kwargs = (; model = "custom"), api_kwargs = (;\n        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(index::AbstractChunkIndex, qa_items::AbstractVector{<:QAEvalItem};\n    api_kwargs::NamedTuple = NamedTuple(),\n    airag_kwargs::NamedTuple = NamedTuple(),\n    qa_evals_kwargs::NamedTuple = NamedTuple(),\n    verbose::Bool = true, parameters_dict::Dict{Symbol, <:Any} = Dict{Symbol, Any}())

Evaluates a vector of QAEvalItems and returns a vector QAEvalResult. This function assesses the relevance and accuracy of the answers generated in a QA evaluation context.

See ?run_qa_evals for more details.

Arguments

Returns

Vector{QAEvalResult}: Vector of evaluation results that includes various scores and metadata related to the QA evaluation.

Example

julia
index = "..." # Assuming a proper index is defined\nqa_items = [QAEvalItem(question="What is the capital of France?", answer="Paris", context="France is a country in Europe."),\n            QAEvalItem(question="What is the capital of Germany?", answer="Berlin", context="Germany is a country in Europe.")]\n\n# Let's run a test with `top_k=5`\nresults = run_qa_evals(index, qa_items; airag_kwargs=(;top_k=5), parameters_dict=Dict(:top_k => 5))\n\n# Filter out the "failed" calls\nresults = filter(x->!isnothing(x.answer_score), results);\n\n# See average judge score\nmean(x->x.answer_score, results)

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(qa_item::QAEvalItem, ctx::RAGResult; verbose::Bool = true,\n             parameters_dict::Dict{Symbol, <:Any}, judge_template::Symbol = :RAGJudgeAnswerFromContext,\n             model_judge::AbstractString, api_kwargs::NamedTuple = NamedTuple()) -> QAEvalResult

Evaluates a single QAEvalItem using RAG details (RAGResult) and returns a QAEvalResult structure. This function assesses the relevance and accuracy of the answers generated in a QA evaluation context.

Arguments

Returns

QAEvalResult: An evaluation result that includes various scores and metadata related to the QA evaluation.

Notes

Examples

Evaluating a QA pair using a specific context and model:

julia
qa_item = QAEvalItem(question="What is the capital of France?", answer="Paris", context="France is a country in Europe.")\nctx = RAGResult(source="Wikipedia", context="France is a country in Europe.", answer="Paris")\nparameters_dict = Dict("param1" => "value1", "param2" => "value2")\n\neval_result = run_qa_evals(qa_item, ctx, parameters_dict=parameters_dict, model_judge="MyAIJudgeModel")

source


# PromptingTools.Experimental.RAGTools.score_retrieval_hitMethod.

Returns 1.0 if context overlaps or is contained within any of the candidate_context

source


# PromptingTools.Experimental.RAGTools.score_retrieval_rankMethod.

Returns Integer rank of the position where context overlaps or is contained within a candidate_context

source


# PromptingTools.Experimental.RAGTools.score_to_unit_scaleMethod.
julia
score_to_unit_scale(x::AbstractVector{T}) where T<:Real

Shift and scale a vector of scores to the unit scale [0, 1].

Example

julia
x = [1.0, 2.0, 3.0, 4.0, 5.0]\nscaled_x = score_to_unit_scale(x)

source


# PromptingTools.Experimental.RAGTools.set_node_style!Method.
julia
set_node_style!(::TrigramAnnotater, node::AnnotatedNode;\n    low_threshold::Float64 = 0.0, medium_threshold::Float64 = 0.5, high_threshold::Float64 = 1.0,\n    default_styler::AbstractAnnotationStyler = Styler(),\n    low_styler::AbstractAnnotationStyler = Styler(color = :magenta, bold = false),\n    medium_styler::AbstractAnnotationStyler = Styler(color = :blue, bold = false),\n    high_styler::AbstractAnnotationStyler = Styler(color = :nothing, bold = false),\n    bold_multihits::Bool = false)

Sets style of node based on the provided rules

source


# PromptingTools.Experimental.RAGTools.setpropertynestedMethod.
julia
setpropertynested(nt::NamedTuple, parent_keys::Vector{Symbol},\n    key::Symbol,\n    value

)

Setter for a property key in a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to change some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))\nsetpropertynested(kw, [:abc], :def, "y")\n# Output: (abc = (def = "y",),)

Practical example of changing all model keys in CHAT-based steps in the pipeline:

julia
# changes :model to "gpt4t" whenever the parent key is in the below list (chat-based steps)\nsetpropertynested(kwargs,\n    [:rephraser_kwargs, :tagger_kwargs, :answerer_kwargs, :refiner_kwargs],\n    :model, "gpt4t")

Or changing an embedding model (across both indexer and retriever steps, because it's same step name):

julia
kwargs = setpropertynested(\n        kwargs, [:embedder_kwargs],\n        :model, "text-embedding-3-large"\n    )

source


# PromptingTools.Experimental.RAGTools.split_into_code_and_sentencesMethod.
julia
split_into_code_and_sentences(input::Union{String, SubString{String}})

Splits text block into code or text and sub-splits into units.

If code block, it splits by newline but keep the group_id the same (to have the same source) If text block, splits into sentences, bullets, etc., provides different group_id (to have different source)

source


# PromptingTools.Experimental.RAGTools.tags_extractMethod.
julia
tags_extract(item::Tag)\ntags_extract(tags::Vector{Tag})

Extracts the Tag item into a string of the form category:::value (lowercased and spaces replaced with underscores).

Example

julia
msg = aiextract(:RAGExtractMetadataShort; return_type=MaybeTags, text="I like package DataFrames", instructions="None.")\nmetadata = tags_extract(msg.content.items)

source


# PromptingTools.Experimental.RAGTools.token_with_boundariesMethod.
julia
token_with_boundaries(\n    prev_token::Union{Nothing, AbstractString}, curr_token::AbstractString,\n    next_token::Union{Nothing, AbstractString})

Joins the three tokens together. Useful to add boundary tokens (like spaces vs brackets) to the curr_token to improve the matched context (ie, separate partial matches from exact match)

source


# PromptingTools.Experimental.RAGTools.tokenizeMethod.
julia
tokenize(input::Union{String, SubString{String}})

Tokenizes provided input by spaces, special characters or Julia symbols (eg, =>).

Unlike other tokenizers, it aims to lossless - ie, keep both the separated text and the separators.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(index::AbstractChunkIndex, positions::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() is used to re-align positions in case index is a view.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(\n    index::SubChunkIndex, pos::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() or tags() are used to re-align positions to the "parent" index.

source


# PromptingTools.Experimental.RAGTools.trigram_support!Method.
julia
trigram_support!(parent_node::AnnotatedNode,\n    context_trigrams::AbstractVector, trigram_func::F1 = trigrams, token_transform::F2 = identity;\n    skip_trigrams::Bool = false, min_score::Float64 = 0.5,\n    min_source_score::Float64 = 0.25,\n    stop_words::AbstractVector{<:String} = STOPWORDS,\n    styler_kwargs...) where {F1 <: Function, F2 <: Function}

Find if the parent_node.content is supported by the provided context_trigrams.

Logic:

For diagnostics, you can use AbstractTrees.print_tree(parent_node) to see the tree structure of each token and its score.

Example

julia
\nnode = AnnotatedNode(content = "xyz")  trigram_support!(node, context_trigrams) # updates node.children! ```\n\n\n[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/Experimental/RAGTools/annotation.jl#L215-L244)\n\n</div>\n<br>\n<div style='border-width:1px; border-style:solid; border-color:black; padding: 1em; border-radius: 25px;'>\n<a id='PromptingTools.Experimental.RAGTools.trigrams-Tuple{AbstractString}' href='#PromptingTools.Experimental.RAGTools.trigrams-Tuple{AbstractString}'>#</a>&nbsp;<b><u>PromptingTools.Experimental.RAGTools.trigrams</u></b> &mdash; <i>Method</i>.\n\n\n\n\n```julia\ntrigrams(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a vector of trigrams (combination of three consecutive characters found in the input_string).

If add_word is provided, it is added to the resulting array. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.Experimental.RAGTools.trigrams_hashedMethod.
julia
trigrams_hashed(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a Set of hashed trigrams (combination of three consecutive characters found in the input_string).

It is more efficient for lookups in large strings (eg, >100K characters).

If add_word is provided, it is added to the resulting array to hash. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.last_messageMethod.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source


# PromptingTools.last_outputMethod.

Extracts the last output (generated text answer) from the RAGResult.

source


# PromptingTools.pprintMethod.
julia
PromptingTools.pprint(\n    io::IO, node::AbstractAnnotatedNode;\n    text_width::Int = displaysize(io)[2], add_newline::Bool = true)

Pretty print the node to the io stream, including all its children

Supports only node.style::Styler for now.

source


# PromptingTools.pprintMethod.
julia
PT.pprint(\n    io::IO, r::AbstractRAGResult; add_context::Bool = false,\n    text_width::Int = displaysize(io)[2], annotater_kwargs...)

Pretty print the RAG result r to the given io stream.

If add_context is true, the context will be printed as well. The text_width parameter can be used to control the width of the output.

You can provide additional keyword arguments to the annotater, eg, add_sources, add_scores, min_score, etc. See annotate_support for more details.

source


', 282); -const _hoisted_283 = [ - _hoisted_1 -]; -function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { - return openBlock(), createElementBlock("div", null, _hoisted_283); -} -const reference_ragtools = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); -export { - __pageData, - reference_ragtools as default -}; diff --git a/dev/coverage_of_model_providers.html b/dev/coverage_of_model_providers.html index db51c0d7d..311b6c1af 100644 --- a/dev/coverage_of_model_providers.html +++ b/dev/coverage_of_model_providers.html @@ -8,17 +8,17 @@ - + - +
Skip to content

Coverage of Model Providers

PromptingTools.jl routes AI calls through the use of subtypes of AbstractPromptSchema, which determine how data is formatted and where it is sent. (For example, OpenAI models have the corresponding subtype AbstractOpenAISchema, having the corresponding schemas - OpenAISchema, CustomOpenAISchema, etc.) This ensures that the data is correctly formatted for the specific AI model provider.

Below is an overview of the model providers supported by PromptingTools.jl, along with the corresponding schema information.

Abstract SchemaSchemaModel Provideraigenerateaiembedaiextractaiscanaiimageaiclassify
AbstractOpenAISchemaOpenAISchemaOpenAI
AbstractOpenAISchemaCustomOpenAISchema*Any OpenAI-compatible API (eg, vLLM)*
AbstractOpenAISchemaLocalServerOpenAISchema**Any OpenAI-compatible Local server**
AbstractOpenAISchemaMistralOpenAISchemaMistral AI
AbstractOpenAISchemaDatabricksOpenAISchemaDatabricks
AbstractOpenAISchemaFireworksOpenAISchemaFireworks AI
AbstractOpenAISchemaTogetherOpenAISchemaTogether AI
AbstractOpenAISchemaGroqOpenAISchemaGroq
AbstractOllamaSchemaOllamaSchemaOllama (endpoint api/chat)
AbstractManagedSchemaAbstractOllamaManagedSchemaOllama (endpoint api/generate)
AbstractAnthropicSchemaAnthropicSchemaAnthropic
AbstractGoogleSchemaGoogleSchemaGoogle Gemini
  • Catch-all implementation - Requires providing a url with api_kwargs and corresponding API key.

** This schema is a flavor of CustomOpenAISchema with a url key preset by global preference key LOCAL_SERVER. It is specifically designed for seamless integration with Llama.jl and utilizes an ENV variable for the URL, making integration easier in certain workflows, such as when nested calls are involved and passing api_kwargs is more challenging.

Note: The aiscan and aiimage functions rely on specific endpoints being implemented by the provider. Ensure that the provider you choose supports these functionalities.

For more detailed explanations of the functions and schema information, refer to How It Works.

- + \ No newline at end of file diff --git a/dev/examples/building_RAG.html b/dev/examples/building_RAG.html index 4ef8b4874..82d8b6180 100644 --- a/dev/examples/building_RAG.html +++ b/dev/examples/building_RAG.html @@ -8,10 +8,10 @@ - + - + @@ -80,7 +80,7 @@ results = filter(x->!isnothing(x.answer_score), results);

Note: You could also use the vectorized version results = run_qa_evals(evals) to evaluate all items at once.

julia

 # Let's take a simple average to calculate our score
 @info "RAG Evals: $(length(results)) results, Avg. score: $(round(mean(x->x.answer_score, results);digits=1)), Retrieval score: $(100*round(Int,mean(x->x.retrieval_score,results)))%"
[ Info: RAG Evals: 10 results, Avg. score: 4.6, Retrieval score: 100%

Note: The retrieval score is 100% only because we have two small documents and running on 10 items only. In practice, you would have a much larger document set and a much larger eval set, which would result in a more representative retrieval score.

You can also analyze the results in a DataFrame:

julia
df = DataFrame(results)
10×8 DataFrame
Rowsourcecontextquestionanswerretrieval_scoreretrieval_rankanswer_scoreparameters
StringStringStringSubStrin…Float64Int64Float64Dict…
1examples/data/database_style_joins.txtDatabase-Style Joins\nIntroduction to joins\nWe often need to combine two or more data sets together to provide a complete picture of the topic we are studying. For example, suppose that we have the following two data sets:\n\njulia> using DataFramesWhat is the purpose of joining two or more data sets together?The purpose of joining two or more data sets together is to combine the data sets based on a common key and provide a complete picture of the topic being studied.1.015.0Dict(:top_k=>3)
2examples/data/database_style_joins.txtjulia> people = DataFrame(ID=[20, 40], Name=["John Doe", "Jane Doe"])\n2×2 DataFrame\n Row │ ID Name\n │ Int64 String\n─────┼─────────────────\n 1 │ 20 John Doe\n 2 │ 40 Jane DoeWhat is the DataFrame called 'people' composed of?The DataFrame called 'people' consists of two columns: 'ID' and 'Name'. The 'ID' column contains integers, and the 'Name' column contains strings.1.014.0Dict(:top_k=>3)
3examples/data/database_style_joins.txtjulia> jobs = DataFrame(ID=[20, 40], Job=["Lawyer", "Doctor"])\n2×2 DataFrame\n Row │ ID Job\n │ Int64 String\n─────┼───────────────\n 1 │ 20 Lawyer\n 2 │ 40 DoctorWhat are the jobs and IDs listed in the dataframe?The jobs and IDs listed in the dataframe are as follows:\n\nID: 20\nJob: Lawyer\n\nID: 40\nJob: Doctor1.014.67Dict(:top_k=>3)
4examples/data/database_style_joins.txtWe might want to work with a larger data set that contains both the names and jobs for each ID. We can do this using the innerjoin function:How can we combine the names and jobs for each ID in a larger data set?We can use the `innerjoin` function to combine the names and jobs for each ID in a larger data set.1.014.33333Dict(:top_k=>3)
5examples/data/database_style_joins.txtjulia> innerjoin(people, jobs, on = :ID)\n2×3 DataFrame\n Row │ ID Name Job\n │ Int64 String String\n─────┼─────────────────────────\n 1 │ 20 John Doe Lawyer\n 2 │ 40 Jane Doe DoctorWhat is the name of the person with the ID 40 and their job?The name of the person with the ID 40 is Jane Doe and their job is Doctor.1.024.67Dict(:top_k=>3)
6examples/data/database_style_joins.txtIn relational database theory, this operation is generally referred to as a join. The columns used to determine which rows should be combined during a join are called keys.\n\nThe following functions are provided to perform seven kinds of joins:What are the different kinds of joins?The different kinds of joins are:\n\n1. Inner Join: Returns only the rows that have matching values in both data frames.\n2. Left Join: Returns all rows from the left data frame and the matching rows from the right data frame.\n3. Right Join: Returns all rows from the right data frame and the matching rows from the left data frame.\n4. Full Outer Join: Returns all rows from both data frames and fills in missing values with null.\n5. Cross Join: Returns the cartesian product of the rows from both data frames.\n6. Semi Join: Returns only the rows from the left data frame that have matching values in the right data frame.\n7. Anti Join: Returns only the rows from the left data frame that do not have matching values in the right data frame.1.014.66667Dict(:top_k=>3)
7examples/data/database_style_joins.txtinnerjoin: the output contains rows for values of the key that exist in all passed data frames.What does the output of the inner join operation contain?The output of the inner join operation contains only the rows for values of the key that exist in all passed data frames.1.015.0Dict(:top_k=>3)
8examples/data/database_style_joins.txtleftjoin: the output contains rows for values of the key that exist in the first (left) argument, whether or not that value exists in the second (right) argument.What is the purpose of the left join operation?The purpose of the left join operation is to combine data from two tables based on a common key, where all rows from the left (first) table are included in the output, regardless of whether there is a match in the right (second) table.1.014.66667Dict(:top_k=>3)
9examples/data/database_style_joins.txtrightjoin: the output contains rows for values of the key that exist in the second (right) argument, whether or not that value exists in the first (left) argument.What is the purpose of the right join operation?The purpose of the right join operation is to include all the rows from the second (right) argument, regardless of whether a match is found in the first (left) argument.1.014.67Dict(:top_k=>3)
10examples/data/database_style_joins.txtouterjoin: the output contains rows for values of the key that exist in any of the passed data frames.\nsemijoin: Like an inner join, but output is restricted to columns from the first (left) argument.What is the difference between outer join and semi join?The difference between outer join and semi join is that outer join includes rows for values of the key that exist in any of the passed data frames, whereas semi join is like an inner join but only outputs columns from the first argument.1.014.66667Dict(:top_k=>3)

We're done for today!

What would we do next?

... and much more! See some ideas in Anyscale RAG tutorial


This page was generated using Literate.jl.

- + \ No newline at end of file diff --git a/dev/examples/readme_examples.html b/dev/examples/readme_examples.html index 13b719e77..2ae1c8dea 100644 --- a/dev/examples/readme_examples.html +++ b/dev/examples/readme_examples.html @@ -8,10 +8,10 @@ - + - + @@ -140,7 +140,7 @@ api_key = "..." prompt = "Say hi!" msg = aigenerate(PT.CustomOpenAISchema(), prompt; model="my_model", api_key, api_kwargs=(; url="http://localhost:8081"))

As you can see, it also works for any local models that you might have running on your computer!

Note: At the moment, we only support aigenerate and aiembed functions for MistralAI and other OpenAI-compatible APIs. We plan to extend the support in the future.

- + \ No newline at end of file diff --git a/dev/examples/working_with_aitemplates.html b/dev/examples/working_with_aitemplates.html index 1229d6c1e..11c6dae1c 100644 --- a/dev/examples/working_with_aitemplates.html +++ b/dev/examples/working_with_aitemplates.html @@ -8,10 +8,10 @@ - + - + @@ -60,7 +60,7 @@ tpl; description = "For asking data analysis questions in Julia language. Placeholders: `ask`") rm(filename) # cleanup if we don't like it

When you create a new template, remember to re-load the templates with load_templates!() so that it's available for use.

julia
PT.load_templates!();

!!! If you have some good templates (or suggestions for the existing ones), please consider sharing them with the community by opening a PR to the templates directory!


This page was generated using Literate.jl.

- + \ No newline at end of file diff --git a/dev/examples/working_with_custom_apis.html b/dev/examples/working_with_custom_apis.html index 552dbf84e..a517a1a76 100644 --- a/dev/examples/working_with_custom_apis.html +++ b/dev/examples/working_with_custom_apis.html @@ -8,10 +8,10 @@ - + - + @@ -54,7 +54,7 @@ msg = aiextract(prompt; return_type=Food, model="firefunction") msg.content # Output: Food("apple", ["delicious", "juicy"])

For embedding a text, use aiembed:

julia
aiembed(PT.FireworksOpenAISchema(), "embed me"; model="nomic-ai/nomic-embed-text-v1.5")

Note: You can register the model with PT.register_model! and use it as usual.

- + \ No newline at end of file diff --git a/dev/examples/working_with_google_ai_studio.html b/dev/examples/working_with_google_ai_studio.html index c45de781b..99e6fbbcf 100644 --- a/dev/examples/working_with_google_ai_studio.html +++ b/dev/examples/working_with_google_ai_studio.html @@ -8,10 +8,10 @@ - + - + @@ -28,7 +28,7 @@ The Force flows through all living things, not machines. Seek balance in the Force, and your heart will find true connection. Remember, the path of the Jedi is to serve others, not to be attached to possessions.")

Gotchas

- + \ No newline at end of file diff --git a/dev/examples/working_with_ollama.html b/dev/examples/working_with_ollama.html index 6902b480e..5c9cf3ad2 100644 --- a/dev/examples/working_with_ollama.html +++ b/dev/examples/working_with_ollama.html @@ -8,10 +8,10 @@ - + - + @@ -57,7 +57,7 @@ model = "openhermes2.5-mistral")
PromptingTools.DataMessage(Matrix{Float64} of size (4096, 2))

Cosine similarity is then a simple multiplication

julia
msg.content' * msg.content[:, 1]
2-element Vector{Float64}:
  0.9999999999999982
  0.40796033843072876

This page was generated using Literate.jl.

- + \ No newline at end of file diff --git a/dev/extra_tools/agent_tools_intro.html b/dev/extra_tools/agent_tools_intro.html index 1809385cb..9c2463b76 100644 --- a/dev/extra_tools/agent_tools_intro.html +++ b/dev/extra_tools/agent_tools_intro.html @@ -8,11 +8,11 @@ - + - - + + @@ -43,7 +43,7 @@ # Note: you could also use the do-syntax, eg, airetry!(out, "You must answer with 1 word only.") do aicall length(split(last_output(aicall), r" |\\.")) == 1 -end

You can even add the guessing itself as an airetry! condition of last_output(out) == "yellow" and provide feedback if the guess is wrong.

References

# PromptingTools.Experimental.AgentTools.AIGenerateFunction.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}
+end

You can even add the guessing itself as an airetry! condition of last_output(out) == "yellow" and provide feedback if the guess is wrong.

References

# PromptingTools.Experimental.AgentTools.AIGenerateFunction.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}
 
 AIGenerate(args...; kwargs...)
 AIEmbed(args...; kwargs...)
@@ -58,7 +58,7 @@
 aicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!
 ````
 
-You can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

  • The AICall struct is a key component in building flexible and efficient Agentic pipelines

  • The lazy evaluation model allows for setting up the call parameters in advance and deferring the actual execution until it is explicitly triggered.

  • This struct is particularly useful in scenarios where the timing of AI function execution needs to be deferred or where multiple potential calls need to be prepared and selectively executed.

source


# PromptingTools.last_outputFunction.

Extracts the last output (generated text answer) from the RAGResult.

source

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.last_messageFunction.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(
+You can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

  • The AICall struct is a key component in building flexible and efficient Agentic pipelines

  • The lazy evaluation model allows for setting up the call parameters in advance and deferring the actual execution until it is explicitly triggered.

  • This struct is particularly useful in scenarios where the timing of AI function execution needs to be deferred or where multiple potential calls need to be prepared and selectively executed.

source


# PromptingTools.last_outputFunction.

Extracts the last output (generated text answer) from the RAGResult.

source

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.last_messageFunction.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(
     f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";
     verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,
     max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

  • f_cond(aicall::AICallBlock) -> Bool, ie, it must accept the aicall object and return a boolean value.

  • feedback can be a string or feedback(aicall::AICallBlock) -> String, ie, it must accept the aicall object and return a string.

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

  • Retry with API failures/drops (add retry_delay=2 to wait 2s between retries)

  • Check the output format / type / length / etc

  • Check the output with aiclassify call (LLM Judge) to catch unsafe/NSFW/out-of-scope content

  • Provide hints to the model to guide it to the correct answer

Gotchas

  • If controlling keyword arguments are set to nothing, they will fall back to the default values in aicall.config. You can override them by passing the keyword arguments explicitly.

  • If there multiple airetry! checks, they are evaluted sequentially. As long as throw==false, they will be all evaluated even if they failed previous checks.

  • Only samples which passed previous evaluations are evaluated (sample.success is true). If there are no successful samples, the function will evaluate only the active sample (aicall.active_sample_id) and nothing else.

  • Feedback from all "ancestor" evaluations is added upon retry, not feedback from the "sibblings" or other branches. To have only ONE long BRANCH (no sibblings), make sure to keep RetryConfig(; n_samples=1). That way the model will always see ALL previous feedback.

  • We implement a version of Monte Carlo Tree Search (MCTS) to always pick the most promising sample to restart from (you can tweak the options in RetryConfig to change the behaviour).

  • For large number of parallel branches (ie, "shallow and wide trees"), you might benefit from switching scoring to scoring=ThompsonSampling() (similar to how Bandit algorithms work).

  • Open-source/local models can struggle with too long conversation, you might want to experiment with in-place feedback (set RetryConfig(; feedback_inplace=true)).

Arguments

  • f_cond::Function: A function that accepts the aicall object and returns a boolean value. Retry will be attempted if the condition is not met (f_cond -> false).

  • aicall::AICallBlock: The aicall object to evaluate the condition on.

  • feedback::Union{AbstractString, Function}: Feedback to provide if the condition is not met. If a function is provided, it must accept the aicall object as the only argument and return a string.

  • verbose::Integer=1: A verbosity level for logging the retry attempts and warnings. A higher value indicates more detailed logging.

  • throw::Bool=false: If true, it will throw an error if the function f_cond does not return true after max_retries retries.

  • evaluate_all::Bool=false: If true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample.

  • feedback_expensive::Bool=false: If false, it will provide feedback to all samples that fail the condition. If feedback function is expensive to call (eg, another ai* function), set this to true and feedback will be provided only to the sample we will retry from.

  • max_retries::Union{Nothing, Int}=nothing: Maximum number of retries. If not provided, it will fall back to the max_retries in aicall.config.

  • retry_delay::Union{Nothing, Int}=nothing: Delay between retries in seconds. If not provided, it will fall back to the retry_delay in aicall.config.

Returns

  • The aicall object with the updated conversation, and samples (saves the evaluations and their scores/feedback).

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model
@@ -221,7 +221,7 @@
 ## ID: 32991, Guess: 50
 ## ID: 32991, Guess: 35
 ## ID: 32991, Guess: 33
-## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.print_samplesFunction.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, 
+## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.print_samplesFunction.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, 
 skip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,
 prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)
 
@@ -246,15 +246,15 @@
 code.code |> clipboard
 
 # or execute it in the current module (=Main)
-eval(code.expression)

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackFunction.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)
+eval(code.expression)

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackFunction.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

  • cb::AICode: AICode block to evaluate and provide feedback on.

  • max_length::Int=512: An optional argument that specifies the maximum length of the feedback message.

Returns

  • NamedTuple: A feedback message as a kwarg in NamedTuple based on the analysis of the code provided in the conversation.

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)
 new_kwargs = aicodefixer_feedback(cb)
 
 new_kwargs = aicodefixer_feedback(msg)
-new_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

  • CodeEmpty: No code found in the message.

  • CodeFailedParse: Code parsing error.

  • CodeFailedEval: Runtime evaluation error.

  • CodeFailedTimeout: Code execution timed out.

  • CodeSuccess: Successful code execution.

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.error_feedbackFunction.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


- +new_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.error_feedbackFunction.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


+ \ No newline at end of file diff --git a/dev/extra_tools/api_tools_intro.html b/dev/extra_tools/api_tools_intro.html index 8647083a4..02486eda8 100644 --- a/dev/extra_tools/api_tools_intro.html +++ b/dev/extra_tools/api_tools_intro.html @@ -8,19 +8,19 @@ - + - - + +
Skip to content

APITools Introduction

APITools is an experimental module wrapping helpful APIs for working with and enhancing GenerativeAI models.

Import the module as follows:

julia
using PromptingTools.Experimental.APITools

Highlights

Currently, there is only one function in this module create_websearch that leverages Tavily.com search and answer engine to provide additional context.

You need to sign up for an API key at Tavily.com and set it as an environment variable TAVILY_API_KEY to use this function.

References

# PromptingTools.Experimental.APITools.create_websearchFunction.
julia
create_websearch(query::AbstractString;
     api_key::AbstractString,
-    search_depth::AbstractString = "basic")

Arguments

  • query::AbstractString: The query to search for.

  • api_key::AbstractString: The API key to use for the search. Get an API key from Tavily.

  • search_depth::AbstractString: The depth of the search. Can be either "basic" or "advanced". Default is "basic". Advanced search calls equal to 2 requests.

  • include_answer::Bool: Whether to include the answer in the search results. Default is false.

  • include_raw_content::Bool: Whether to include the raw content in the search results. Default is false.

  • max_results::Integer: The maximum number of results to return. Default is 5.

  • include_images::Bool: Whether to include images in the search results. Default is false.

  • include_domains::AbstractVector{<:AbstractString}: A list of domains to include in the search results. Default is an empty list.

  • exclude_domains::AbstractVector{<:AbstractString}: A list of domains to exclude from the search results. Default is an empty list.

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


- + search_depth::AbstractString = "basic")

Arguments

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


+ \ No newline at end of file diff --git a/dev/extra_tools/rag_tools_intro.html b/dev/extra_tools/rag_tools_intro.html index 36e2b3461..a625ba122 100644 --- a/dev/extra_tools/rag_tools_intro.html +++ b/dev/extra_tools/rag_tools_intro.html @@ -8,11 +8,11 @@ - + - - + + @@ -137,7 +137,7 @@ # Assuming `test_files` is a vector of file paths indexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger()) index = build_index(indexer, test_files; - chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source

julia
build_index(
+        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

source

julia
build_index(
     indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};
     verbose::Integer = 1,
     extras::Union{Nothing, AbstractVector} = nothing,
@@ -149,7 +149,7 @@
     tagger::AbstractTagger = indexer.tagger,
     tagger_kwargs::NamedTuple = NamedTuple(),
     api_kwargs::NamedTuple = NamedTuple(),
-    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.airagFunction.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;
+    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.airagFunction.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;
     question::AbstractString,
     verbose::Integer = 1, return_all::Bool = false,
     api_kwargs::NamedTuple = NamedTuple(),
@@ -196,7 +196,7 @@
 result = airag(cfg, multi_index; question, return_all=true)
 
 # Pretty-print the result
-PT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.retrieveFunction.
julia
retrieve(retriever::AbstractRetriever,
+PT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.retrieveFunction.
julia
retrieve(retriever::AbstractRetriever,
     index::AbstractChunkIndex,
     question::AbstractString;
     verbose::Integer = 1,
@@ -237,7 +237,7 @@
     rephraser_kwargs = (; model = "custom"),
     embedder_kwargs = (; model = "custom"),
     tagger_kwargs = (; model = "custom"), api_kwargs = (;
-        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.generate!Function.
julia
generate!(
+        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.generate!Function.
julia
generate!(
     generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;
     verbose::Integer = 1,
     api_kwargs::NamedTuple = NamedTuple(),
@@ -258,7 +258,7 @@
 result = retrieve(index, question)
 
 # Generate the answer using the default generator, mutates the same result
-result = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.annotate_supportFunction.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,
+result = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.annotate_supportFunction.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,
     context::AbstractVector; min_score::Float64 = 0.5,
     skip_trigrams::Bool = true, hashed::Bool = true,
     sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,
@@ -270,7 +270,7 @@
 answer = "This is a test context. Another context sentence."
 
 annotated_root = annotate_support(annotater, answer, context)
-pprint(annotated_root) # pretty print the annotated tree

source

julia
annotate_support(
+pprint(annotated_root) # pretty print the annotated tree

source

julia
annotate_support(
     annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,
     skip_trigrams::Bool = true, hashed::Bool = true,
     min_source_score::Float64 = 0.25,
@@ -278,12 +278,12 @@
     add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",
     context = ["Test context.", "Completely different"])
 annotated_root = annotate_support(annotater, res)
-PT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsFunction.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};
+PT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsFunction.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};
                model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, 
                verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]
 sources = ["source1", "source2"]
-qa_evals = build_qa_evals(doc_chunks, sources)

source


- +qa_evals = build_qa_evals(doc_chunks, sources)

source


+ \ No newline at end of file diff --git a/dev/extra_tools/text_utilities_intro.html b/dev/extra_tools/text_utilities_intro.html index 117e57659..3b85d7292 100644 --- a/dev/extra_tools/text_utilities_intro.html +++ b/dev/extra_tools/text_utilities_intro.html @@ -8,11 +8,11 @@ - + - - + + @@ -21,18 +21,18 @@ chunks = recursive_splitter(text; max_length=13) length(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars
 recursive_splitter(text; separator=",", max_length=10000) # for 4K context window
-length(chunks[1]) # Output: 4

source

julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\n\n", "\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
+length(chunks[1]) # Output: 4

source

julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\n\n", "\n", " ", ""].

Arguments

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

How It Works

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", ". ", "\n"] # split by paragraphs, sentences, and newlines (not by words)
 chunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", ". ", "\n", " "] # split by paragraphs, sentences, and newlines, words
 chunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters
 chunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\n\n", "\n", " ", ""].

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", "\n", " ", ""]
-chunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.replace_wordsFunction.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"
+chunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.replace_wordsFunction.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

Example

julia
text = "Disney is a great company"
 replace_words(text, ["Disney", "Snow White", "Mickey Mouse"])
-# Output: "ABC is a great company"

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,
+# Output: "ABC is a great company"

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,
     text_width::Int = 20;
-    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.length_longest_common_subsequenceFunction.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"
+    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.length_longest_common_subsequenceFunction.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"
 text2 = "___ab_c__abc"
 longest_common_subsequence(text1, text2)
 # Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]
@@ -43,7 +43,7 @@
     @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"
 end

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!


 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/utils.jl#L252-L288)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/utils.jl#L252-L288)
 
 </div>
 <br>
@@ -71,8 +71,8 @@
     """
 
 dist = distance_longest_common_subsequence(story, context)
-@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


- +@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


+ \ No newline at end of file diff --git a/dev/frequently_asked_questions.html b/dev/frequently_asked_questions.html index 40584aabc..2f90c6828 100644 --- a/dev/frequently_asked_questions.html +++ b/dev/frequently_asked_questions.html @@ -8,10 +8,10 @@ - + - + @@ -128,7 +128,7 @@ wrap_schema = OpenAISchema() |> TracerSchema |> SaverSchema conv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!", user="Say hi!"; model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)

conv is a vector of tracing messages that will be saved to a JSON together with metadata about the template and api_kwargs.

If you would like to enable this behavior automatically, you can register your favorite model (or re-register existing models) with the "wrapped" schema:

julia
PT.register_model!(; name= "gpt-3.5-turbo", schema=OpenAISchema() |> TracerSchema |> SaverSchema)
- + \ No newline at end of file diff --git a/dev/getting_started.html b/dev/getting_started.html index f6e6920f7..1fb50e238 100644 --- a/dev/getting_started.html +++ b/dev/getting_started.html @@ -8,10 +8,10 @@ - + - + @@ -23,7 +23,7 @@ ai"What is the capital of \$(country)?"
plaintext
[ Info: Tokens: 32 @ Cost: $0.0001 in 0.5 seconds
 AIMessage("The capital of Spain is Madrid.")

Pro tip: Use after-string-flags to select the model to be called, eg, ai"What is the capital of France?"gpt4 (use gpt4t for the new GPT-4 Turbo model). Great for those extra hard questions!

Using aigenerate with placeholders

For more complex prompt templates, you can use handlebars-style templating and provide variables as keyword arguments:

julia
msg = aigenerate("What is the capital of {{country}}? Is the population larger than {{population}}?", country="Spain", population="1M")
plaintext
[ Info: Tokens: 74 @ Cost: $0.0001 in 1.3 seconds
 AIMessage("The capital of Spain is Madrid. And yes, the population of Madrid is larger than 1 million. As of 2020, the estimated population of Madrid is around 3.3 million people.")

Pro tip: Use asyncmap to run multiple AI-powered tasks concurrently.

Pro tip: If you use slow models (like GPT-4), you can use the asynchronous version of @ai_str -> @aai_str to avoid blocking the REPL, eg, aai"Say hi but slowly!"gpt4 (similarly @ai!_str -> @aai!_str for multi-turn conversations).

For more practical examples, see the Various Examples section.

- + \ No newline at end of file diff --git a/dev/hashmap.json b/dev/hashmap.json index 278e01917..528a09d3d 100644 --- a/dev/hashmap.json +++ b/dev/hashmap.json @@ -1 +1 @@ -{"prompts_visual.md":"DBvyrze1","extra_tools_text_utilities_intro.md":"BaC1zHk8","index.md":"CGUPGN7b","prompts_agents.md":"DMzsWjdy","how_it_works.md":"DoLjv-ZH","frequently_asked_questions.md":"w7F6v2KR","examples_working_with_custom_apis.md":"DxugFZRb","prompts_general.md":"BiQQ90Ig","examples_working_with_google_ai_studio.md":"CSl-to1b","coverage_of_model_providers.md":"D0bJqn-A","examples_working_with_aitemplates.md":"D2H2IgsC","extra_tools_api_tools_intro.md":"B2zj3VUg","prompts_classification.md":"BtKoUweK","prompts_extraction.md":"CiC3XNYL","prompts_persona-task.md":"CWOAgx8l","extra_tools_agent_tools_intro.md":"yHywMkDe","examples_readme_examples.md":"_vjq4ilL","prompts_critic.md":"C3S2R7Gy","examples_building_rag.md":"CEHWCSoH","extra_tools_rag_tools_intro.md":"wFqOQLck","reference_experimental.md":"DKoVf3wG","getting_started.md":"DwYOHUrL","reference_agenttools.md":"D3tITjg2","reference_apitools.md":"DFChcjHy","prompts_rag.md":"BVcMbVyV","examples_working_with_ollama.md":"NYSfGwxz","reference_ragtools.md":"xOyy1pKG","reference.md":"CAg04DWR"} +{"extra_tools_rag_tools_intro.md":"4lbzXTTR","extra_tools_api_tools_intro.md":"VN20Hprx","index.md":"CGUPGN7b","prompts_visual.md":"DBvyrze1","prompts_rag.md":"BVcMbVyV","extra_tools_agent_tools_intro.md":"DJvZgul4","prompts_agents.md":"DMzsWjdy","examples_working_with_aitemplates.md":"D2H2IgsC","reference_experimental.md":"DC6rrNQd","coverage_of_model_providers.md":"D0bJqn-A","reference_apitools.md":"D-H_XvV3","prompts_classification.md":"BtKoUweK","extra_tools_text_utilities_intro.md":"CXWb_lmV","frequently_asked_questions.md":"w7F6v2KR","prompts_general.md":"BiQQ90Ig","examples_building_rag.md":"CEHWCSoH","getting_started.md":"DwYOHUrL","examples_working_with_google_ai_studio.md":"CSl-to1b","prompts_extraction.md":"CiC3XNYL","prompts_persona-task.md":"CWOAgx8l","examples_readme_examples.md":"_vjq4ilL","examples_working_with_custom_apis.md":"DxugFZRb","reference_agenttools.md":"Mh6J_xkG","prompts_critic.md":"C3S2R7Gy","how_it_works.md":"DoLjv-ZH","reference_ragtools.md":"B2JuNvyi","reference.md":"Ud_SMp1n","examples_working_with_ollama.md":"NYSfGwxz"} diff --git a/dev/how_it_works.html b/dev/how_it_works.html index d6c18c0d0..68f9ed010 100644 --- a/dev/how_it_works.html +++ b/dev/how_it_works.html @@ -8,10 +8,10 @@ - + - + @@ -113,7 +113,7 @@ food = JSON3.read(last_output(result), Food) ## [ Info: Condition not met. Retrying... ## Output: Food("apple", ["delicious", "juicy"])

It took 1 retry (see result.config.retries) and we have the correct output from an open-source model!

If you're interested in the result object, it's a struct (AICall) with a field conversation, which holds the conversation up to this point. AIGenerate is an alias for AICall using aigenerate function. See ?AICall (the underlying struct type) for more details on the fields and methods available.

- + \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 0f1d07249..d74f6f3fd 100644 --- a/dev/index.html +++ b/dev/index.html @@ -8,10 +8,10 @@ - + - + @@ -22,7 +22,7 @@ # Requires OPENAI_API_KEY environment variable! ai"What is the meaning of life?"

For more information, see the Getting Started section.


Ready to simplify your GenerativeAI tasks? Dive into PromptingTools.jl now and unlock your productivity.

- + \ No newline at end of file diff --git a/dev/prompts/RAG.html b/dev/prompts/RAG.html index 2672611cd..bce1fcaf9 100644 --- a/dev/prompts/RAG.html +++ b/dev/prompts/RAG.html @@ -8,10 +8,10 @@ - + - + @@ -252,7 +252,7 @@ In this process, you strip out information that is not relevant for the retrieval task.

User Prompt:

plaintext
Here is the user query: {{query}}
 
 Rephrased query:
- + \ No newline at end of file diff --git a/dev/prompts/agents.html b/dev/prompts/agents.html index d5b73eb4c..8f3142acd 100644 --- a/dev/prompts/agents.html +++ b/dev/prompts/agents.html @@ -8,10 +8,10 @@ - + - + @@ -90,7 +90,7 @@ Take a deep break. Think step-by-step and fix the above errors. I believe in you. You can do it! I also need code, actual working Julia code, no shortcuts.

Feedback Templates

Template: FeedbackFromEvaluator

System Prompt:

plaintext

User Prompt:

plaintext
### Feedback from Evaluator
 {{feedback}}
- + \ No newline at end of file diff --git a/dev/prompts/classification.html b/dev/prompts/classification.html index 5b4317bb1..270f03058 100644 --- a/dev/prompts/classification.html +++ b/dev/prompts/classification.html @@ -8,10 +8,10 @@ - + - + @@ -47,7 +47,7 @@ - If none of the endpoint categories are appropriate for the given input, select the choice indicating that no category fits.

User Prompt:

plaintext
User Question: {{question}}
 
 Endpoint Choice:
- + \ No newline at end of file diff --git a/dev/prompts/critic.html b/dev/prompts/critic.html index 413b95e19..3d2dca200 100644 --- a/dev/prompts/critic.html +++ b/dev/prompts/critic.html @@ -8,10 +8,10 @@ - + - + @@ -103,7 +103,7 @@ Remember to follow the three-step workflow: Reflection, Suggestions, Outcome. Julia Expert says: - + \ No newline at end of file diff --git a/dev/prompts/extraction.html b/dev/prompts/extraction.html index 3412f020e..3825eb4f5 100644 --- a/dev/prompts/extraction.html +++ b/dev/prompts/extraction.html @@ -8,10 +8,10 @@ - + - + @@ -24,7 +24,7 @@ </data>

Extraction Templates

Template: ExtractData

System Prompt:

plaintext
You are a world-class expert for function-calling and data extraction. Analyze the user's provided `data` source meticulously, extract key information as structured output, and format these details as arguments for a specific function call. Ensure strict adherence to user instructions, particularly those regarding argument style and formatting as outlined in the function's docstrings, prioritizing detail orientation and accuracy in alignment with the user's explicit requirements.

User Prompt:

plaintext
# Data
 
 {{data}}
- + \ No newline at end of file diff --git a/dev/prompts/general.html b/dev/prompts/general.html index f0b9a144e..23f71ca61 100644 --- a/dev/prompts/general.html +++ b/dev/prompts/general.html @@ -8,10 +8,10 @@ - + - + @@ -20,7 +20,7 @@
Skip to content

The following file is auto-generated from the templates folder. For any changes, please modify the source files in the templates folder.

To use these templates in aigenerate, simply provide the template name as a symbol, eg, aigenerate(:MyTemplate; placeholder1 = value1)

General Templates

Template: BlankSystemUser

  • Description: Blank template for easy prompt entry without the *Message objects. Simply provide keyword arguments for system (=system prompt/persona) and user (=user/task/data prompt). Placeholders: system, user

  • Placeholders: system, user

  • Word count: 18

  • Source:

  • Version: 1.1

System Prompt:

plaintext
{{system}}

User Prompt:

plaintext
{{user}}

Template: PromptEngineerForTask

  • Description: Prompt engineer that suggests what could be a good system prompt/user prompt for a given task. Placeholder: task

  • Placeholders: task

  • Word count: 402

  • Source:

  • Version: 1

System Prompt:

plaintext
You are a world-class prompt engineering assistant. Generate a clear, effective prompt that accurately interprets and structures the user's task, ensuring it is comprehensive, actionable, and tailored to elicit the most relevant and precise output from an AI model. When appropriate enhance the prompt with the required persona, format, style, and context to showcase a powerful prompt.

User Prompt:

plaintext
# Task
 
 {{task}}
- + \ No newline at end of file diff --git a/dev/prompts/persona-task.html b/dev/prompts/persona-task.html index abe8dbf69..6dd24411e 100644 --- a/dev/prompts/persona-task.html +++ b/dev/prompts/persona-task.html @@ -8,10 +8,10 @@ - + - + @@ -461,7 +461,7 @@ <special_instructions> {{instructions}} </special_instructions> - + \ No newline at end of file diff --git a/dev/prompts/visual.html b/dev/prompts/visual.html index 9059165ee..5110453b7 100644 --- a/dev/prompts/visual.html +++ b/dev/prompts/visual.html @@ -8,10 +8,10 @@ - + - + @@ -31,7 +31,7 @@ Please generate the image.

Template: OCRTask

System Prompt:

plaintext
You are a world-class OCR engine. Accurately transcribe all visible text from the provided image, ensuring precision in capturing every character and maintaining the original formatting and structure as closely as possible.

User Prompt:

plaintext
# Task
 
 {{task}}
- + \ No newline at end of file diff --git a/dev/reference.html b/dev/reference.html index 1ed03a738..d22188812 100644 --- a/dev/reference.html +++ b/dev/reference.html @@ -8,21 +8,21 @@ - + - - + + -
Skip to content

Reference

# PromptingTools.ALLOWED_PREFERENCESConstant.

Keys that are allowed to be set via set_preferences!

source


# PromptingTools.ALTERNATIVE_GENERATION_COSTSConstant.
julia
ALTERNATIVE_GENERATION_COSTS

Tracker of alternative costing models, eg, for image generation (dall-e-3), the cost is driven by quality/size.

source


# PromptingTools.ANTHROPIC_TOOL_PROMPTConstant.

Simple template to add to the System Message when doing data extraction with Anthropic models.

It has 2 placeholders: tool_name, tool_description and tool_parameters that are filled with the tool's name, description and parameters. Source: https://docs.anthropic.com/claude/docs/functions-external-tools

source


# PromptingTools.CONV_HISTORYConstant.
julia
CONV_HISTORY

Tracks the most recent conversations through the ai_str macros.

Preference available: MAX_HISTORY_LENGTH, which sets how many last messages should be remembered.

See also: push_conversation!, resize_conversation!

source


# PromptingTools.MODEL_ALIASESConstant.
julia
MODEL_ALIASES

A dictionary of model aliases. Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them.

Accessing the aliases

PromptingTools.MODEL_ALIASES["gpt3"]

Register a new model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.MODEL_REGISTRYConstant.
julia
MODEL_REGISTRY

A store of available model names and their specs (ie, name, costs per token, etc.)

Accessing the registry

You can use both the alias name or the full name to access the model spec:

PromptingTools.MODEL_REGISTRY["gpt-3.5-turbo"]

Registering a new model

julia
register_model!(
+    
Skip to content

Reference

# PromptingTools.ALLOWED_PREFERENCESConstant.

Keys that are allowed to be set via set_preferences!

source


# PromptingTools.ALTERNATIVE_GENERATION_COSTSConstant.
julia
ALTERNATIVE_GENERATION_COSTS

Tracker of alternative costing models, eg, for image generation (dall-e-3), the cost is driven by quality/size.

source


# PromptingTools.ANTHROPIC_TOOL_PROMPTConstant.

Simple template to add to the System Message when doing data extraction with Anthropic models.

It has 2 placeholders: tool_name, tool_description and tool_parameters that are filled with the tool's name, description and parameters. Source: https://docs.anthropic.com/claude/docs/functions-external-tools

source


# PromptingTools.CONV_HISTORYConstant.
julia
CONV_HISTORY

Tracks the most recent conversations through the ai_str macros.

Preference available: MAX_HISTORY_LENGTH, which sets how many last messages should be remembered.

See also: push_conversation!, resize_conversation!

source


# PromptingTools.MODEL_ALIASESConstant.
julia
MODEL_ALIASES

A dictionary of model aliases. Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them.

Accessing the aliases

PromptingTools.MODEL_ALIASES["gpt3"]

Register a new model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.MODEL_REGISTRYConstant.
julia
MODEL_REGISTRY

A store of available model names and their specs (ie, name, costs per token, etc.)

Accessing the registry

You can use both the alias name or the full name to access the model spec:

PromptingTools.MODEL_REGISTRY["gpt-3.5-turbo"]

Registering a new model

julia
register_model!(
     name = "gpt-3.5-turbo",
     schema = :OpenAISchema,
     cost_of_token_prompt = 0.0015,
     cost_of_token_generation = 0.002,
-    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

Registering a model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.OPENAI_TOKEN_IDSConstant.

Token IDs for GPT3.5 and GPT4 from https://platform.openai.com/tokenizer

source


# PromptingTools.PREFERENCESConstant.
julia
PREFERENCES

You can set preferences for PromptingTools by setting environment variables or by using the set_preferences!. It will create a LocalPreferences.toml file in your current directory and will reload your prefences from there.

Check your preferences by calling get_preferences(key::String).

Available Preferences (for set_preferences!)

  • OPENAI_API_KEY: The API key for the OpenAI API. See OpenAI's documentation for more information.

  • MISTRALAI_API_KEY: The API key for the Mistral AI API. See Mistral AI's documentation for more information.

  • COHERE_API_KEY: The API key for the Cohere API. See Cohere's documentation for more information.

  • DATABRICKS_API_KEY: The API key for the Databricks Foundation Model API. See Databricks' documentation for more information.

  • DATABRICKS_HOST: The host for the Databricks API. See Databricks' documentation for more information.

  • TAVILY_API_KEY: The API key for the Tavily Search API. Register here. See more information here.

  • GOOGLE_API_KEY: The API key for Google Gemini models. Get yours from here. If you see a documentation page ("Available languages and regions for Google AI Studio and Gemini API"), it means that it's not yet available in your region.

  • ANTHROPIC_API_KEY: The API key for the Anthropic API. Get yours from here.

  • VOYAGE_API_KEY: The API key for the Voyage API. Free tier is upto 50M tokens! Get yours from here.

  • GROQ_API_KEY: The API key for the Groq API. Free in beta! Get yours from here.

  • DEEPSEEK_API_KEY: The API key for the DeepSeek API. Get 5 credit when you join. Get yours from here.

  • MODEL_CHAT: The default model to use for aigenerate and most ai* calls. See MODEL_REGISTRY for a list of available models or define your own.

  • MODEL_EMBEDDING: The default model to use for aiembed (embedding documents). See MODEL_REGISTRY for a list of available models or define your own.

  • PROMPT_SCHEMA: The default prompt schema to use for aigenerate and most ai* calls (if not specified in MODEL_REGISTRY). Set as a string, eg, "OpenAISchema". See PROMPT_SCHEMA for more information.

  • MODEL_ALIASES: A dictionary of model aliases (alias => full_model_name). Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them. See MODEL_ALIASES for more information.

  • MAX_HISTORY_LENGTH: The maximum length of the conversation history. Defaults to 5. Set to nothing to disable history. See CONV_HISTORY for more information.

  • LOCAL_SERVER: The URL of the local server to use for ai* calls. Defaults to http://localhost:10897/v1. This server is called when you call model="local" See ?LocalServerOpenAISchema for more information and examples.

  • LOG_DIR: The directory to save the logs to, eg, when using SaverSchema <: AbstractTracerSchema. Defaults to joinpath(pwd(), "log"). Refer to ?SaverSchema for more information on how it works and examples.

At the moment it is not possible to persist changes to MODEL_REGISTRY across sessions. Define your register_model!() calls in your startup.jl file to make them available across sessions or put them at the top of your script.

Available ENV Variables

  • OPENAI_API_KEY: The API key for the OpenAI API.

  • MISTRALAI_API_KEY: The API key for the Mistral AI API.

  • COHERE_API_KEY: The API key for the Cohere API.

  • LOCAL_SERVER: The URL of the local server to use for ai* calls. Defaults to http://localhost:10897/v1. This server is called when you call model="local"

  • DATABRICKS_API_KEY: The API key for the Databricks Foundation Model API.

  • DATABRICKS_HOST: The host for the Databricks API.

  • TAVILY_API_KEY: The API key for the Tavily Search API. Register here. See more information here.

  • GOOGLE_API_KEY: The API key for Google Gemini models. Get yours from here. If you see a documentation page ("Available languages and regions for Google AI Studio and Gemini API"), it means that it's not yet available in your region.

  • ANTHROPIC_API_KEY: The API key for the Anthropic API. Get yours from here.

  • VOYAGE_API_KEY: The API key for the Voyage API. Free tier is upto 50M tokens! Get yours from here.

  • GROQ_API_KEY: The API key for the Groq API. Free in beta! Get yours from here.

  • DEEPSEEK_API_KEY: The API key for the DeepSeek API. Get 5 credit when you join. Get yours from here.

  • LOG_DIR: The directory to save the logs to, eg, when using SaverSchema <: AbstractTracerSchema. Defaults to joinpath(pwd(), "log"). Refer to ?SaverSchema for more information on how it works and examples.

Preferences.jl takes priority over ENV variables, so if you set a preference, it will take precedence over the ENV variable.

WARNING: NEVER EVER sync your LocalPreferences.toml file! It contains your API key and other sensitive information!!!

source


# PromptingTools.RESERVED_KWARGSConstant.

The following keywords are reserved for internal use in the ai* functions and cannot be used as placeholders in the Messages

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, 
+    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

Registering a model alias

julia
PromptingTools.MODEL_ALIASES["gpt3"] = "gpt-3.5-turbo"

source


# PromptingTools.OPENAI_TOKEN_IDSConstant.

Token IDs for GPT3.5 and GPT4 from https://platform.openai.com/tokenizer

source


# PromptingTools.PREFERENCESConstant.
julia
PREFERENCES

You can set preferences for PromptingTools by setting environment variables or by using the set_preferences!. It will create a LocalPreferences.toml file in your current directory and will reload your prefences from there.

Check your preferences by calling get_preferences(key::String).

Available Preferences (for set_preferences!)

  • OPENAI_API_KEY: The API key for the OpenAI API. See OpenAI's documentation for more information.

  • MISTRALAI_API_KEY: The API key for the Mistral AI API. See Mistral AI's documentation for more information.

  • COHERE_API_KEY: The API key for the Cohere API. See Cohere's documentation for more information.

  • DATABRICKS_API_KEY: The API key for the Databricks Foundation Model API. See Databricks' documentation for more information.

  • DATABRICKS_HOST: The host for the Databricks API. See Databricks' documentation for more information.

  • TAVILY_API_KEY: The API key for the Tavily Search API. Register here. See more information here.

  • GOOGLE_API_KEY: The API key for Google Gemini models. Get yours from here. If you see a documentation page ("Available languages and regions for Google AI Studio and Gemini API"), it means that it's not yet available in your region.

  • ANTHROPIC_API_KEY: The API key for the Anthropic API. Get yours from here.

  • VOYAGE_API_KEY: The API key for the Voyage API. Free tier is upto 50M tokens! Get yours from here.

  • GROQ_API_KEY: The API key for the Groq API. Free in beta! Get yours from here.

  • DEEPSEEK_API_KEY: The API key for the DeepSeek API. Get 5 credit when you join. Get yours from here.

  • MODEL_CHAT: The default model to use for aigenerate and most ai* calls. See MODEL_REGISTRY for a list of available models or define your own.

  • MODEL_EMBEDDING: The default model to use for aiembed (embedding documents). See MODEL_REGISTRY for a list of available models or define your own.

  • PROMPT_SCHEMA: The default prompt schema to use for aigenerate and most ai* calls (if not specified in MODEL_REGISTRY). Set as a string, eg, "OpenAISchema". See PROMPT_SCHEMA for more information.

  • MODEL_ALIASES: A dictionary of model aliases (alias => full_model_name). Aliases are used to refer to models by their aliases instead of their full names to make it more convenient to use them. See MODEL_ALIASES for more information.

  • MAX_HISTORY_LENGTH: The maximum length of the conversation history. Defaults to 5. Set to nothing to disable history. See CONV_HISTORY for more information.

  • LOCAL_SERVER: The URL of the local server to use for ai* calls. Defaults to http://localhost:10897/v1. This server is called when you call model="local" See ?LocalServerOpenAISchema for more information and examples.

  • LOG_DIR: The directory to save the logs to, eg, when using SaverSchema <: AbstractTracerSchema. Defaults to joinpath(pwd(), "log"). Refer to ?SaverSchema for more information on how it works and examples.

At the moment it is not possible to persist changes to MODEL_REGISTRY across sessions. Define your register_model!() calls in your startup.jl file to make them available across sessions or put them at the top of your script.

Available ENV Variables

  • OPENAI_API_KEY: The API key for the OpenAI API.

  • MISTRALAI_API_KEY: The API key for the Mistral AI API.

  • COHERE_API_KEY: The API key for the Cohere API.

  • LOCAL_SERVER: The URL of the local server to use for ai* calls. Defaults to http://localhost:10897/v1. This server is called when you call model="local"

  • DATABRICKS_API_KEY: The API key for the Databricks Foundation Model API.

  • DATABRICKS_HOST: The host for the Databricks API.

  • TAVILY_API_KEY: The API key for the Tavily Search API. Register here. See more information here.

  • GOOGLE_API_KEY: The API key for Google Gemini models. Get yours from here. If you see a documentation page ("Available languages and regions for Google AI Studio and Gemini API"), it means that it's not yet available in your region.

  • ANTHROPIC_API_KEY: The API key for the Anthropic API. Get yours from here.

  • VOYAGE_API_KEY: The API key for the Voyage API. Free tier is upto 50M tokens! Get yours from here.

  • GROQ_API_KEY: The API key for the Groq API. Free in beta! Get yours from here.

  • DEEPSEEK_API_KEY: The API key for the DeepSeek API. Get 5 credit when you join. Get yours from here.

  • LOG_DIR: The directory to save the logs to, eg, when using SaverSchema <: AbstractTracerSchema. Defaults to joinpath(pwd(), "log"). Refer to ?SaverSchema for more information on how it works and examples.

Preferences.jl takes priority over ENV variables, so if you set a preference, it will take precedence over the ENV variable.

WARNING: NEVER EVER sync your LocalPreferences.toml file! It contains your API key and other sensitive information!!!

source


# PromptingTools.RESERVED_KWARGSConstant.

The following keywords are reserved for internal use in the ai* functions and cannot be used as placeholders in the Messages

source


# PromptingTools.AICodeType.
julia
AICode(code::AbstractString; auto_eval::Bool=true, safe_eval::Bool=false, 
 skip_unsafe::Bool=false, capture_stdout::Bool=true, verbose::Bool=false,
 prefix::AbstractString="", suffix::AbstractString="", remove_tests::Bool=false, execution_timeout::Int = 60)
 
@@ -47,7 +47,7 @@
 code.code |> clipboard
 
 # or execute it in the current module (=Main)
-eval(code.expression)

source


# PromptingTools.AIMessageType.
julia
AIMessage

A message type for AI-generated text-based responses. Returned by aigenerate, aiclassify, and aiscan functions.

Fields

  • content::Union{AbstractString, Nothing}: The content of the message.

  • status::Union{Int, Nothing}: The status of the message from the API.

  • tokens::Tuple{Int, Int}: The number of tokens used (prompt,completion).

  • elapsed::Float64: The time taken to generate the response in seconds.

  • cost::Union{Nothing, Float64}: The cost of the API call (calculated with information from MODEL_REGISTRY).

  • log_prob::Union{Nothing, Float64}: The log probability of the response.

  • finish_reason::Union{Nothing, String}: The reason the response was finished.

  • run_id::Union{Nothing, Int}: The unique ID of the run.

  • sample_id::Union{Nothing, Int}: The unique ID of the sample (if multiple samples are generated, they will all have the same run_id).

source


# PromptingTools.AITemplateType.
julia
AITemplate

AITemplate is a template for a conversation prompt. This type is merely a container for the template name, which is resolved into a set of messages (=prompt) by render.

Naming Convention

  • Template names should be in CamelCase

  • Follow the format <Persona>...<Variable>... where possible, eg, JudgeIsItTrue, ``

    • Starting with the Persona (=System prompt), eg, Judge = persona is meant to judge some provided information

    • Variable to be filled in with context, eg, It = placeholder it

    • Ending with the variable name is helpful, eg, JuliaExpertTask for a persona to be an expert in Julia language and task is the placeholder name

  • Ideally, the template name should be self-explanatory, eg, JudgeIsItTrue = persona is meant to judge some provided information where it is true or false

Examples

Save time by re-using pre-made templates, just fill in the placeholders with the keyword arguments:

julia
msg = aigenerate(:JuliaExpertAsk; ask = "How do I add packages?")

The above is equivalent to a more verbose version that explicitly uses the dispatch on AITemplate:

julia
msg = aigenerate(AITemplate(:JuliaExpertAsk); ask = "How do I add packages?")

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")
+eval(code.expression)

source


# PromptingTools.AIMessageType.
julia
AIMessage

A message type for AI-generated text-based responses. Returned by aigenerate, aiclassify, and aiscan functions.

Fields

  • content::Union{AbstractString, Nothing}: The content of the message.

  • status::Union{Int, Nothing}: The status of the message from the API.

  • tokens::Tuple{Int, Int}: The number of tokens used (prompt,completion).

  • elapsed::Float64: The time taken to generate the response in seconds.

  • cost::Union{Nothing, Float64}: The cost of the API call (calculated with information from MODEL_REGISTRY).

  • log_prob::Union{Nothing, Float64}: The log probability of the response.

  • finish_reason::Union{Nothing, String}: The reason the response was finished.

  • run_id::Union{Nothing, Int}: The unique ID of the run.

  • sample_id::Union{Nothing, Int}: The unique ID of the sample (if multiple samples are generated, they will all have the same run_id).

source


# PromptingTools.AITemplateType.
julia
AITemplate

AITemplate is a template for a conversation prompt. This type is merely a container for the template name, which is resolved into a set of messages (=prompt) by render.

Naming Convention

  • Template names should be in CamelCase

  • Follow the format <Persona>...<Variable>... where possible, eg, JudgeIsItTrue, ``

    • Starting with the Persona (=System prompt), eg, Judge = persona is meant to judge some provided information

    • Variable to be filled in with context, eg, It = placeholder it

    • Ending with the variable name is helpful, eg, JuliaExpertTask for a persona to be an expert in Julia language and task is the placeholder name

  • Ideally, the template name should be self-explanatory, eg, JudgeIsItTrue = persona is meant to judge some provided information where it is true or false

Examples

Save time by re-using pre-made templates, just fill in the placeholders with the keyword arguments:

julia
msg = aigenerate(:JuliaExpertAsk; ask = "How do I add packages?")

The above is equivalent to a more verbose version that explicitly uses the dispatch on AITemplate:

julia
msg = aigenerate(AITemplate(:JuliaExpertAsk); ask = "How do I add packages?")

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")
 # Will surface one specific template
 # 1-element Vector{AITemplateMetadata}:
 # PromptingTools.AITemplateMetadata
@@ -62,14 +62,14 @@
 {{ask}}"
 #   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")
 # 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames
-tmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

You can inspect any template by "rendering" it (this is what the LLM will see):

julia
julia> AITemplate(:JudgeIsItTrue) |> PromptingTools.render

See also: save_template, load_template, load_templates! for more advanced use cases (and the corresponding script in examples/ folder)

source


# PromptingTools.AITemplateMetadataType.

Helper for easy searching and reviewing of templates. Defined on loading of each template.

source


# PromptingTools.AbstractPromptSchemaType.

Defines different prompting styles based on the model training and fine-tuning.

source


# PromptingTools.AnthropicSchemaType.
julia
AnthropicSchema <: AbstractAnthropicSchema

AnthropicSchema is the default schema for Anthropic API models (eg, Claude). See more information here.

It uses the following conversation template:

Dict(role="user",content="..."),Dict(role="assistant",content="...")]

system messages are provided as a keyword argument to the API call.

It's recommended to separate sections in your prompt with XML markup (e.g. <document> </document>). See here.

source


# PromptingTools.ChatMLSchemaType.

ChatMLSchema is used by many open-source chatbots, by OpenAI models (under the hood) and by several models and inferfaces (eg, Ollama, vLLM)

You can explore it on tiktokenizer

It uses the following conversation structure:

<im_start>system
+tmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

You can inspect any template by "rendering" it (this is what the LLM will see):

julia
julia> AITemplate(:JudgeIsItTrue) |> PromptingTools.render

See also: save_template, load_template, load_templates! for more advanced use cases (and the corresponding script in examples/ folder)

source


# PromptingTools.AITemplateMetadataType.

Helper for easy searching and reviewing of templates. Defined on loading of each template.

source


# PromptingTools.AbstractPromptSchemaType.

Defines different prompting styles based on the model training and fine-tuning.

source


# PromptingTools.AnthropicSchemaType.
julia
AnthropicSchema <: AbstractAnthropicSchema

AnthropicSchema is the default schema for Anthropic API models (eg, Claude). See more information here.

It uses the following conversation template:

Dict(role="user",content="..."),Dict(role="assistant",content="...")]

system messages are provided as a keyword argument to the API call.

It's recommended to separate sections in your prompt with XML markup (e.g. <document> </document>). See here.

source


# PromptingTools.ChatMLSchemaType.

ChatMLSchema is used by many open-source chatbots, by OpenAI models (under the hood) and by several models and inferfaces (eg, Ollama, vLLM)

You can explore it on tiktokenizer

It uses the following conversation structure:

<im_start>system
 ...<im_end>
 <|im_start|>user
 ...<|im_end|>
 <|im_start|>assistant
-...<|im_end|>

source


# PromptingTools.CustomOpenAISchemaType.
julia
CustomOpenAISchema

CustomOpenAISchema() allows user to call any OpenAI-compatible API.

All user needs to do is to pass this schema as the first argument and provide the BASE URL of the API to call (api_kwargs.url).

Example

Assumes that we have a local server running at http://127.0.0.1:8081:

julia
api_key = "..."
+...<|im_end|>

source


# PromptingTools.CustomOpenAISchemaType.
julia
CustomOpenAISchema

CustomOpenAISchema() allows user to call any OpenAI-compatible API.

All user needs to do is to pass this schema as the first argument and provide the BASE URL of the API to call (api_kwargs.url).

Example

Assumes that we have a local server running at http://127.0.0.1:8081:

julia
api_key = "..."
 prompt = "Say hi!"
-msg = aigenerate(CustomOpenAISchema(), prompt; model="my_model", api_key, api_kwargs=(; url="http://127.0.0.1:8081"))

source


# PromptingTools.DataMessageType.
julia
DataMessage

A message type for AI-generated data-based responses, ie, different content than text. Returned by aiextract, and aiextract functions.

Fields

  • content::Union{AbstractString, Nothing}: The content of the message.

  • status::Union{Int, Nothing}: The status of the message from the API.

  • tokens::Tuple{Int, Int}: The number of tokens used (prompt,completion).

  • elapsed::Float64: The time taken to generate the response in seconds.

  • cost::Union{Nothing, Float64}: The cost of the API call (calculated with information from MODEL_REGISTRY).

  • log_prob::Union{Nothing, Float64}: The log probability of the response.

  • finish_reason::Union{Nothing, String}: The reason the response was finished.

  • run_id::Union{Nothing, Int}: The unique ID of the run.

  • sample_id::Union{Nothing, Int}: The unique ID of the sample (if multiple samples are generated, they will all have the same run_id).

source


# PromptingTools.DatabricksOpenAISchemaType.
julia
DatabricksOpenAISchema

DatabricksOpenAISchema() allows user to call Databricks Foundation Model API. API Reference

Requires two environment variables to be set:

  • DATABRICKS_API_KEY: Databricks token

  • DATABRICKS_HOST: Address of the Databricks workspace (https://<workspace_host>.databricks.com)

source


# PromptingTools.DeepSeekOpenAISchemaType.
julia
DeepSeekOpenAISchema

Schema to call the DeepSeek API.

Links:

Requires one environment variables to be set:

  • DEEPSEEK_API_KEY: Your API key (often starts with "sk-...")

source


# PromptingTools.FireworksOpenAISchemaType.
julia
FireworksOpenAISchema

Schema to call the Fireworks.ai API.

Links:

Requires one environment variables to be set:

  • FIREWORKS_API_KEY: Your API key

source


# PromptingTools.GoogleSchemaType.

Calls Google's Gemini API. See more information here. It's available only for some regions.

source


# PromptingTools.GroqOpenAISchemaType.
julia
GroqOpenAISchema

Schema to call the groq.com API.

Links:

Requires one environment variables to be set:

  • GROQ_API_KEY: Your API key (often starts with "gsk_...")

source


# PromptingTools.ItemsExtractType.

Extract zero, one or more specified items from the provided data.

source


# PromptingTools.LocalServerOpenAISchemaType.
julia
LocalServerOpenAISchema

Designed to be used with local servers. It's automatically called with model alias "local" (see MODEL_REGISTRY).

This schema is a flavor of CustomOpenAISchema with a url keypreset by global Preference keyLOCAL_SERVER. See?PREFERENCESfor more details on how to change it. It assumes that the server follows OpenAI API conventions (eg,POST /v1/chat/completions`).

Note: Llama.cpp (and hence Llama.jl built on top of it) do NOT support embeddings endpoint! You'll get an address error.

Example

Assumes that we have a local server running at http://127.0.0.1:10897/v1 (port and address used by Llama.jl, "v1" at the end is needed for OpenAI endpoint compatibility):

Three ways to call it:

julia

+msg = aigenerate(CustomOpenAISchema(), prompt; model="my_model", api_key, api_kwargs=(; url="http://127.0.0.1:8081"))

source


# PromptingTools.DataMessageType.
julia
DataMessage

A message type for AI-generated data-based responses, ie, different content than text. Returned by aiextract, and aiextract functions.

Fields

  • content::Union{AbstractString, Nothing}: The content of the message.

  • status::Union{Int, Nothing}: The status of the message from the API.

  • tokens::Tuple{Int, Int}: The number of tokens used (prompt,completion).

  • elapsed::Float64: The time taken to generate the response in seconds.

  • cost::Union{Nothing, Float64}: The cost of the API call (calculated with information from MODEL_REGISTRY).

  • log_prob::Union{Nothing, Float64}: The log probability of the response.

  • finish_reason::Union{Nothing, String}: The reason the response was finished.

  • run_id::Union{Nothing, Int}: The unique ID of the run.

  • sample_id::Union{Nothing, Int}: The unique ID of the sample (if multiple samples are generated, they will all have the same run_id).

source


# PromptingTools.DatabricksOpenAISchemaType.
julia
DatabricksOpenAISchema

DatabricksOpenAISchema() allows user to call Databricks Foundation Model API. API Reference

Requires two environment variables to be set:

  • DATABRICKS_API_KEY: Databricks token

  • DATABRICKS_HOST: Address of the Databricks workspace (https://<workspace_host>.databricks.com)

source


# PromptingTools.DeepSeekOpenAISchemaType.
julia
DeepSeekOpenAISchema

Schema to call the DeepSeek API.

Links:

Requires one environment variables to be set:

  • DEEPSEEK_API_KEY: Your API key (often starts with "sk-...")

source


# PromptingTools.FireworksOpenAISchemaType.
julia
FireworksOpenAISchema

Schema to call the Fireworks.ai API.

Links:

Requires one environment variables to be set:

  • FIREWORKS_API_KEY: Your API key

source


# PromptingTools.GoogleSchemaType.

Calls Google's Gemini API. See more information here. It's available only for some regions.

source


# PromptingTools.GroqOpenAISchemaType.
julia
GroqOpenAISchema

Schema to call the groq.com API.

Links:

Requires one environment variables to be set:

  • GROQ_API_KEY: Your API key (often starts with "gsk_...")

source


# PromptingTools.ItemsExtractType.

Extract zero, one or more specified items from the provided data.

source


# PromptingTools.LocalServerOpenAISchemaType.
julia
LocalServerOpenAISchema

Designed to be used with local servers. It's automatically called with model alias "local" (see MODEL_REGISTRY).

This schema is a flavor of CustomOpenAISchema with a url keypreset by global Preference keyLOCAL_SERVER. See?PREFERENCESfor more details on how to change it. It assumes that the server follows OpenAI API conventions (eg,POST /v1/chat/completions`).

Note: Llama.cpp (and hence Llama.jl built on top of it) do NOT support embeddings endpoint! You'll get an address error.

Example

Assumes that we have a local server running at http://127.0.0.1:10897/v1 (port and address used by Llama.jl, "v1" at the end is needed for OpenAI endpoint compatibility):

Three ways to call it:

julia

 # Use @ai_str with "local" alias
 ai"Say hi!"local
 
@@ -86,8 +86,8 @@
 
 # Or if it's a temporary fix, just change the variable `LOCAL_SERVER`:
 const PT = PromptingTools
-PT.LOCAL_SERVER = "http://127.0.0.1:10897/v1"

source


# PromptingTools.MaybeExtractType.

Extract a result from the provided data, if any, otherwise set the error and message fields.

Arguments

  • error::Bool: true if a result is found, false otherwise.

  • message::String: Only present if no result is found, should be short and concise.

source


# PromptingTools.MistralOpenAISchemaType.
julia
MistralOpenAISchema

MistralOpenAISchema() allows user to call MistralAI API known for mistral and mixtral models.

It's a flavor of CustomOpenAISchema() with a url preset to https://api.mistral.ai.

Most models have been registered, so you don't even have to specify the schema

Example

Let's call mistral-tiny model:

julia
api_key = "..." # can be set via ENV["MISTRAL_API_KEY"] or via our preference system
-msg = aigenerate("Say hi!"; model="mistral_tiny", api_key)

See ?PREFERENCES for more details on how to set your API key permanently.

source


# PromptingTools.ModelSpecType.
julia
ModelSpec

A struct that contains information about a model, such as its name, schema, cost per token, etc.

Fields

  • name::String: The name of the model. This is the name that will be used to refer to the model in the ai* functions.

  • schema::AbstractPromptSchema: The schema of the model. This is the schema that will be used to generate prompts for the model, eg, :OpenAISchema.

  • cost_of_token_prompt::Float64: The cost of 1 token in the prompt for this model. This is used to calculate the cost of a prompt. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • cost_of_token_generation::Float64: The cost of 1 token generated by this model. This is used to calculate the cost of a generation. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • description::String: A description of the model. This is used to provide more information about the model when it is queried.

Example

julia
spec = ModelSpec("gpt-3.5-turbo",
+PT.LOCAL_SERVER = "http://127.0.0.1:10897/v1"

source


# PromptingTools.MaybeExtractType.

Extract a result from the provided data, if any, otherwise set the error and message fields.

Arguments

  • error::Bool: true if a result is found, false otherwise.

  • message::String: Only present if no result is found, should be short and concise.

source


# PromptingTools.MistralOpenAISchemaType.
julia
MistralOpenAISchema

MistralOpenAISchema() allows user to call MistralAI API known for mistral and mixtral models.

It's a flavor of CustomOpenAISchema() with a url preset to https://api.mistral.ai.

Most models have been registered, so you don't even have to specify the schema

Example

Let's call mistral-tiny model:

julia
api_key = "..." # can be set via ENV["MISTRAL_API_KEY"] or via our preference system
+msg = aigenerate("Say hi!"; model="mistral_tiny", api_key)

See ?PREFERENCES for more details on how to set your API key permanently.

source


# PromptingTools.ModelSpecType.
julia
ModelSpec

A struct that contains information about a model, such as its name, schema, cost per token, etc.

Fields

  • name::String: The name of the model. This is the name that will be used to refer to the model in the ai* functions.

  • schema::AbstractPromptSchema: The schema of the model. This is the schema that will be used to generate prompts for the model, eg, :OpenAISchema.

  • cost_of_token_prompt::Float64: The cost of 1 token in the prompt for this model. This is used to calculate the cost of a prompt. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • cost_of_token_generation::Float64: The cost of 1 token generated by this model. This is used to calculate the cost of a generation. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • description::String: A description of the model. This is used to provide more information about the model when it is queried.

Example

julia
spec = ModelSpec("gpt-3.5-turbo",
     OpenAISchema(),
     0.0015,
     0.002,
@@ -99,7 +99,7 @@
     schema = OpenAISchema(),
     cost_of_token_prompt = 0.0015,
     cost_of_token_generation = 0.002,
-    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

source


# PromptingTools.NoSchemaType.

Schema that keeps messages (<:AbstractMessage) and does not transform for any specific model. It used by the first pass of the prompt rendering system (see ?render).

source


# PromptingTools.OllamaManagedSchemaType.

Ollama by default manages different models and their associated prompt schemas when you pass system_prompt and prompt fields to the API.

Warning: It works only for 1 system message and 1 user message, so anything more than that has to be rejected.

If you need to pass more messagese / longer conversational history, you can use define the model-specific schema directly and pass your Ollama requests with raw=true, which disables and templating and schema management by Ollama.

source


# PromptingTools.OllamaSchemaType.

OllamaSchema is the default schema for Olama models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's very similar to OpenAISchema, but it appends images differently.

source


# PromptingTools.OpenAISchemaType.

OpenAISchema is the default schema for OpenAI models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's recommended to separate sections in your prompt with markdown headers (e.g. `##Answer

`).

source


# PromptingTools.SaverSchemaType.
julia
SaverSchema <: AbstractTracerSchema

SaverSchema is a schema that automatically saves the conversation to the disk. It's useful for debugging and for persistent logging.

It can be composed with any other schema, eg, TracerSchema to save additional metadata.

Set environment variable LOG_DIR to the directory where you want to save the conversation (see ?PREFERENCES). Conversations are named by the hash of the first message in the conversation to naturally group subsequent conversations together.

If you need to provide logging directory of the file name dynamically, you can provide the following arguments to tracer_kwargs:

  • log_dir - used as the directory to save the log into when provided. Defaults to LOG_DIR if not provided.

  • log_file_path - used as the file name to save the log into when provided. This value overrules the log_dir and LOG_DIR if provided.

To use it automatically, re-register the models you use with the schema wrapped in SaverSchema

See also: meta, unwrap, TracerSchema, initialize_tracer, finalize_tracer

Example

julia
using PromptingTools: TracerSchema, OpenAISchema, SaverSchema
+    description = "GPT-3.5 Turbo is a 175B parameter model and a common default on the OpenAI API.")

source


# PromptingTools.NoSchemaType.

Schema that keeps messages (<:AbstractMessage) and does not transform for any specific model. It used by the first pass of the prompt rendering system (see ?render).

source


# PromptingTools.OllamaManagedSchemaType.

Ollama by default manages different models and their associated prompt schemas when you pass system_prompt and prompt fields to the API.

Warning: It works only for 1 system message and 1 user message, so anything more than that has to be rejected.

If you need to pass more messagese / longer conversational history, you can use define the model-specific schema directly and pass your Ollama requests with raw=true, which disables and templating and schema management by Ollama.

source


# PromptingTools.OllamaSchemaType.

OllamaSchema is the default schema for Olama models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's very similar to OpenAISchema, but it appends images differently.

source


# PromptingTools.OpenAISchemaType.

OpenAISchema is the default schema for OpenAI models.

It uses the following conversation template:

[Dict(role="system",content="..."),Dict(role="user",content="..."),Dict(role="assistant",content="...")]

It's recommended to separate sections in your prompt with markdown headers (e.g. `##Answer

`).

source


# PromptingTools.SaverSchemaType.
julia
SaverSchema <: AbstractTracerSchema

SaverSchema is a schema that automatically saves the conversation to the disk. It's useful for debugging and for persistent logging.

It can be composed with any other schema, eg, TracerSchema to save additional metadata.

Set environment variable LOG_DIR to the directory where you want to save the conversation (see ?PREFERENCES). Conversations are named by the hash of the first message in the conversation to naturally group subsequent conversations together.

If you need to provide logging directory of the file name dynamically, you can provide the following arguments to tracer_kwargs:

  • log_dir - used as the directory to save the log into when provided. Defaults to LOG_DIR if not provided.

  • log_file_path - used as the file name to save the log into when provided. This value overrules the log_dir and LOG_DIR if provided.

To use it automatically, re-register the models you use with the schema wrapped in SaverSchema

See also: meta, unwrap, TracerSchema, initialize_tracer, finalize_tracer

Example

julia
using PromptingTools: TracerSchema, OpenAISchema, SaverSchema
 # This schema will first trace the metadata (change to TraceMessage) and then save the conversation to the disk
 
 wrap_schema = OpenAISchema() |> TracerSchema |> SaverSchema
@@ -108,19 +108,19 @@
 
 # conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

If you wanted to enable this automatically for models you use, you can do it like this:

julia
PT.register_model!(; name= "gpt-3.5-turbo", schema=OpenAISchema() |> TracerSchema |> SaverSchema)

Any subsequent calls model="gpt-3.5-turbo" will automatically capture metadata and save the conversation to the disk.

To provide logging file path explicitly, use the tracer_kwargs:

julia
conv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",
     user="Say hi!", model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true,
-    tracer_kwargs=(; log_file_path="my_logs/my_log.json"))

source


# PromptingTools.ShareGPTSchemaType.
julia
ShareGPTSchema <: AbstractShareGPTSchema

Frequently used schema for finetuning LLMs. Conversations are recorded as a vector of dicts with keys from and value (similar to OpenAI).

source


# PromptingTools.TestEchoAnthropicSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoGoogleSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaManagedSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOpenAISchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TogetherOpenAISchemaType.
julia
TogetherOpenAISchema

Schema to call the Together.ai API.

Links:

Requires one environment variables to be set:

  • TOGETHER_API_KEY: Your API key

source


# PromptingTools.TracerMessageType.
julia
TracerMessage{T <: Union{AbstractChatMessage, AbstractDataMessage}} <: AbstractTracerMessage

A mutable wrapper message designed for tracing the flow of messages through the system, allowing for iterative updates and providing additional metadata for observability.

Fields

  • object::T: The original message being traced, which can be either a chat or data message.

  • from::Union{Nothing, Symbol}: The identifier of the sender of the message.

  • to::Union{Nothing, Symbol}: The identifier of the intended recipient of the message.

  • viewers::Vector{Symbol}: A list of identifiers for entities that have access to view the message, in addition to the sender and recipient.

  • time_received::DateTime: The timestamp when the message was received by the tracing system.

  • time_sent::Union{Nothing, DateTime}: The timestamp when the message was originally sent, if available.

  • model::String: The name of the model that generated the message. Defaults to empty.

  • parent_id::Symbol: An identifier for the job or process that the message is associated with. Higher-level tracing ID.

  • thread_id::Symbol: An identifier for the thread (series of messages for one model/agent) or execution context within the job where the message originated. It should be the same for messages in the same thread.

  • meta::Union{Nothing, Dict{Symbol, Any}}: A dictionary for additional metadata that is not part of the message itself. Try to limit to a small number of items and singletons to be serializable.

  • _type::Symbol: A fixed symbol identifying the type of the message as :eventmessage, used for type discrimination.

This structure is particularly useful for debugging, monitoring, and auditing the flow of messages in systems that involve complex interactions or asynchronous processing.

All fields are optional besides the object.

Useful methods: pprint (pretty prints the underlying message), unwrap (to get the object out of tracer), align_tracer! (to set all shared IDs in a vector of tracers to the same), istracermessage to check if given message is an AbstractTracerMessage

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())
+    tracer_kwargs=(; log_file_path="my_logs/my_log.json"))

source


# PromptingTools.ShareGPTSchemaType.
julia
ShareGPTSchema <: AbstractShareGPTSchema

Frequently used schema for finetuning LLMs. Conversations are recorded as a vector of dicts with keys from and value (similar to OpenAI).

source


# PromptingTools.TestEchoAnthropicSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoGoogleSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaManagedSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOllamaSchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TestEchoOpenAISchemaType.

Echoes the user's input back to them. Used for testing the implementation

source


# PromptingTools.TogetherOpenAISchemaType.
julia
TogetherOpenAISchema

Schema to call the Together.ai API.

Links:

Requires one environment variables to be set:

  • TOGETHER_API_KEY: Your API key

source


# PromptingTools.TracerMessageType.
julia
TracerMessage{T <: Union{AbstractChatMessage, AbstractDataMessage}} <: AbstractTracerMessage

A mutable wrapper message designed for tracing the flow of messages through the system, allowing for iterative updates and providing additional metadata for observability.

Fields

  • object::T: The original message being traced, which can be either a chat or data message.

  • from::Union{Nothing, Symbol}: The identifier of the sender of the message.

  • to::Union{Nothing, Symbol}: The identifier of the intended recipient of the message.

  • viewers::Vector{Symbol}: A list of identifiers for entities that have access to view the message, in addition to the sender and recipient.

  • time_received::DateTime: The timestamp when the message was received by the tracing system.

  • time_sent::Union{Nothing, DateTime}: The timestamp when the message was originally sent, if available.

  • model::String: The name of the model that generated the message. Defaults to empty.

  • parent_id::Symbol: An identifier for the job or process that the message is associated with. Higher-level tracing ID.

  • thread_id::Symbol: An identifier for the thread (series of messages for one model/agent) or execution context within the job where the message originated. It should be the same for messages in the same thread.

  • meta::Union{Nothing, Dict{Symbol, Any}}: A dictionary for additional metadata that is not part of the message itself. Try to limit to a small number of items and singletons to be serializable.

  • _type::Symbol: A fixed symbol identifying the type of the message as :eventmessage, used for type discrimination.

This structure is particularly useful for debugging, monitoring, and auditing the flow of messages in systems that involve complex interactions or asynchronous processing.

All fields are optional besides the object.

Useful methods: pprint (pretty prints the underlying message), unwrap (to get the object out of tracer), align_tracer! (to set all shared IDs in a vector of tracers to the same), istracermessage to check if given message is an AbstractTracerMessage

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())
 msg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")
 msg # isa TracerMessage
-msg.content # access content like if it was the message

source


# PromptingTools.TracerMessageLikeType.
julia
TracerMessageLike{T <: Any} <: AbstractTracer

A mutable structure designed for general-purpose tracing within the system, capable of handling any type of object that is part of the AI Conversation. It provides a flexible way to track and annotate objects as they move through different parts of the system, facilitating debugging, monitoring, and auditing.

Fields

  • object::T: The original object being traced.

  • from::Union{Nothing, Symbol}: The identifier of the sender or origin of the object.

  • to::Union{Nothing, Symbol}: The identifier of the intended recipient or destination of the object.

  • viewers::Vector{Symbol}: A list of identifiers for entities that have access to view the object, in addition to the sender and recipient.

  • time_received::DateTime: The timestamp when the object was received by the tracing system.

  • time_sent::Union{Nothing, DateTime}: The timestamp when the object was originally sent, if available.

  • model::String: The name of the model or process that generated or is associated with the object. Defaults to empty.

  • parent_id::Symbol: An identifier for the job or process that the object is associated with. Higher-level tracing ID.

  • thread_id::Symbol: An identifier for the thread or execution context (sub-task, sub-process) within the job where the object originated. It should be the same for objects in the same thread.

  • run_id::Union{Nothing, Int}: A unique identifier for the run or instance of the process (ie, a single call to the LLM) that generated the object. Defaults to a random integer.

  • meta::Union{Nothing, Dict{Symbol, Any}}: A dictionary for additional metadata that is not part of the object itself. Try to limit to a small number of items and singletons to be serializable.

  • _type::Symbol: A fixed symbol identifying the type of the tracer as :tracermessage, used for type discrimination.

This structure is particularly useful for systems that involve complex interactions or asynchronous processing, where tracking the flow and transformation of objects is crucial.

All fields are optional besides the object.

source


# PromptingTools.TracerSchemaType.
julia
TracerSchema <: AbstractTracerSchema

A schema designed to wrap another schema, enabling pre- and post-execution callbacks for tracing and additional functionalities. This type is specifically utilized within the TracerMessage type to trace the execution flow, facilitating observability and debugging in complex conversational AI systems.

The TracerSchema acts as a middleware, allowing developers to insert custom logic before and after the execution of the primary schema's functionality. This can include logging, performance measurement, or any other form of tracing required to understand or improve the execution flow.

TracerSchema automatically wraps messages in TracerMessage type, which has several important fields, eg,

  • object: the original message - unwrap with utility unwrap

  • meta: a dictionary with metadata about the tracing process (eg, prompt templates, LLM API kwargs) - extract with utility meta

  • parent_id: an identifier for the overall job / high-level conversation with the user where the current conversation thread originated. It should be the same for objects in the same thread.

  • thread_id: an identifier for the current thread or execution context (sub-task, sub-process, CURRENT CONVERSATION or vector of messages) within the broader parent task. It should be the same for objects in the same thread.

See also: meta, unwrap, SaverSchema, initialize_tracer, finalize_tracer

Example

julia
wrap_schema = TracerSchema(OpenAISchema())
+msg.content # access content like if it was the message

source


# PromptingTools.TracerMessageLikeType.
julia
TracerMessageLike{T <: Any} <: AbstractTracer

A mutable structure designed for general-purpose tracing within the system, capable of handling any type of object that is part of the AI Conversation. It provides a flexible way to track and annotate objects as they move through different parts of the system, facilitating debugging, monitoring, and auditing.

Fields

  • object::T: The original object being traced.

  • from::Union{Nothing, Symbol}: The identifier of the sender or origin of the object.

  • to::Union{Nothing, Symbol}: The identifier of the intended recipient or destination of the object.

  • viewers::Vector{Symbol}: A list of identifiers for entities that have access to view the object, in addition to the sender and recipient.

  • time_received::DateTime: The timestamp when the object was received by the tracing system.

  • time_sent::Union{Nothing, DateTime}: The timestamp when the object was originally sent, if available.

  • model::String: The name of the model or process that generated or is associated with the object. Defaults to empty.

  • parent_id::Symbol: An identifier for the job or process that the object is associated with. Higher-level tracing ID.

  • thread_id::Symbol: An identifier for the thread or execution context (sub-task, sub-process) within the job where the object originated. It should be the same for objects in the same thread.

  • run_id::Union{Nothing, Int}: A unique identifier for the run or instance of the process (ie, a single call to the LLM) that generated the object. Defaults to a random integer.

  • meta::Union{Nothing, Dict{Symbol, Any}}: A dictionary for additional metadata that is not part of the object itself. Try to limit to a small number of items and singletons to be serializable.

  • _type::Symbol: A fixed symbol identifying the type of the tracer as :tracermessage, used for type discrimination.

This structure is particularly useful for systems that involve complex interactions or asynchronous processing, where tracking the flow and transformation of objects is crucial.

All fields are optional besides the object.

source


# PromptingTools.TracerSchemaType.
julia
TracerSchema <: AbstractTracerSchema

A schema designed to wrap another schema, enabling pre- and post-execution callbacks for tracing and additional functionalities. This type is specifically utilized within the TracerMessage type to trace the execution flow, facilitating observability and debugging in complex conversational AI systems.

The TracerSchema acts as a middleware, allowing developers to insert custom logic before and after the execution of the primary schema's functionality. This can include logging, performance measurement, or any other form of tracing required to understand or improve the execution flow.

TracerSchema automatically wraps messages in TracerMessage type, which has several important fields, eg,

  • object: the original message - unwrap with utility unwrap

  • meta: a dictionary with metadata about the tracing process (eg, prompt templates, LLM API kwargs) - extract with utility meta

  • parent_id: an identifier for the overall job / high-level conversation with the user where the current conversation thread originated. It should be the same for objects in the same thread.

  • thread_id: an identifier for the current thread or execution context (sub-task, sub-process, CURRENT CONVERSATION or vector of messages) within the broader parent task. It should be the same for objects in the same thread.

See also: meta, unwrap, SaverSchema, initialize_tracer, finalize_tracer

Example

julia
wrap_schema = TracerSchema(OpenAISchema())
 msg = aigenerate(wrap_schema, "Say hi!"; model="gpt-4")
 # output type should be TracerMessage
-msg isa TracerMessage

You can define your own tracer schema and the corresponding methods: initialize_tracer, finalize_tracer. See src/llm_tracer.jl

source


# PromptingTools.UserMessageWithImagesMethod.

Construct UserMessageWithImages with 1 or more images. Images can be either URLs or local paths.

source


# PromptingTools.X123Type.

With docstring

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::CustomOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="http://localhost:8080", kwargs...)

Dispatch to the OpenAI.create_chat function, for any OpenAI-compatible API.

It expects url keyword argument. Provide it to the aigenerate function via api_kwargs=(; url="my-url")

It will forward your query to the "chat/completions" endpoint of the base URL that you provided (=url).

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::LocalServerOpenAISchema,
+msg isa TracerMessage

You can define your own tracer schema and the corresponding methods: initialize_tracer, finalize_tracer. See src/llm_tracer.jl

source


# PromptingTools.UserMessageWithImagesMethod.

Construct UserMessageWithImages with 1 or more images. Images can be either URLs or local paths.

source


# PromptingTools.X123Type.

With docstring

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::CustomOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="http://localhost:8080", kwargs...)

Dispatch to the OpenAI.create_chat function, for any OpenAI-compatible API.

It expects url keyword argument. Provide it to the aigenerate function via api_kwargs=(; url="my-url")

It will forward your query to the "chat/completions" endpoint of the base URL that you provided (=url).

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::LocalServerOpenAISchema,
     api_key::AbstractString,
     model::AbstractString,
     conversation;
     url::String = "http://localhost:8080",
-    kwargs...)

Dispatch to the OpenAI.create_chat function, but with the LocalServer API parameters, ie, defaults to url specified by the LOCAL_SERVERpreference. See?PREFERENCES

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::MistralOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="https://api.mistral.ai/v1", kwargs...)

Dispatch to the OpenAI.create_chat function, but with the MistralAI API parameters.

It tries to access the MISTRALAI_API_KEY ENV variable, but you can also provide it via the api_key keyword argument.

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiclassify call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiclassify (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
+    kwargs...)

Dispatch to the OpenAI.create_chat function, but with the LocalServer API parameters, ie, defaults to url specified by the LOCAL_SERVERpreference. See?PREFERENCES

source


# OpenAI.create_chatMethod.
julia
OpenAI.create_chat(schema::MistralOpenAISchema,

api_key::AbstractString, model::AbstractString, conversation; url::String="https://api.mistral.ai/v1", kwargs...)

Dispatch to the OpenAI.create_chat function, but with the MistralAI API parameters.

It tries to access the MISTRALAI_API_KEY ENV variable, but you can also provide it via the api_key keyword argument.

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiclassify call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiclassify (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiclassifyMethod.
julia
aiclassify(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
     choices::AbstractVector{T} = ["true", "false", "unknown"],
     api_kwargs::NamedTuple = NamedTuple(),
     kwargs...) where {T <: Union{AbstractString, Tuple{<:AbstractString, <:AbstractString}}}

Classifies the given prompt/statement into an arbitrary list of choices, which must be only the choices (vector of strings) or choices and descriptions are provided (vector of tuples, ie, ("choice","description")).

It's quick and easy option for "routing" and similar use cases, as it exploits the logit bias trick and outputs only 1 token. classify into an arbitrary list of categories (including with descriptions). It's quick and easy option for "routing" and similar use cases, as it exploits the logit bias trick, so it outputs only 1 token.

!!! Note: The prompt/AITemplate must have a placeholder choices (ie, ) that will be replaced with the encoded choices

Choices are rewritten into an enumerated list and mapped to a few known OpenAI tokens (maximum of 40 choices supported). Mapping of token IDs for GPT3.5/4 are saved in variable OPENAI_TOKEN_IDS.

It uses Logit bias trick and limits the output to 1 token to force the model to output only true/false/unknown. Credit for the idea goes to AAAzzam.

Arguments

  • prompt_schema::AbstractOpenAISchema: The schema for the prompt.

  • prompt: The prompt/statement to classify if it's a String. If it's a Symbol, it is expanded as a template via render(schema,template). Eg, templates :JudgeIsItTrue or :InputClassifier

  • choices::AbstractVector{T}: The choices to be classified into. It can be a vector of strings or a vector of tuples, where the first element is the choice and the second is the description.

Example

Given a user input, pick one of the two provided categories:

julia
choices = ["animal", "plant"]
@@ -137,9 +137,9 @@
 # "A"

You can still use a simple true/false classification:

julia
aiclassify("Is two plus two four?") # true
 aiclassify("Is two plus three a vegetable on Mars?") # false

aiclassify returns only true/false/unknown. It's easy to get the proper Bool output type out with tryparse, eg,

julia
tryparse(Bool, aiclassify("Is two plus two four?")) isa Bool # true

Output of type Nothing marks that the model couldn't classify the statement as true/false.

Ideally, we would like to re-use some helpful system prompt to get more accurate responses. For this reason we have templates, eg, :JudgeIsItTrue. By specifying the template, we can provide our statement as the expected variable (it in this case) See that the model now correctly classifies the statement as "unknown".

julia
aiclassify(:JudgeIsItTrue; it = "Is two plus three a vegetable on Mars?") # unknown

For better results, use higher quality models like gpt4, eg,

julia
aiclassify(:JudgeIsItTrue;
     it = "If I had two apples and I got three more, I have five apples now.",
-    model = "gpt4") # true

source


# PromptingTools.aiembedFunction.
julia
aiembed(tracer_schema::AbstractTracerSchema,
+    model = "gpt4") # true

source


# PromptingTools.aiembedFunction.
julia
aiembed(tracer_schema::AbstractTracerSchema,
     doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}}, postprocess::Function = identity;
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiembed call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiembed (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOllamaManagedSchema,
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiembed call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiembed (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOllamaManagedSchema,
         doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},
         postprocess::F = identity;
         verbose::Bool = true,
@@ -168,7 +168,7 @@
 schema = PT.OllamaManagedSchema()
 
 msg = aiembed(schema, "Hello World", copy; model="openhermes2.5-mistral")
-msg.content # 4096-element Vector{Float64}

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOpenAISchema,
+msg.content # 4096-element Vector{Float64}

source


# PromptingTools.aiembedMethod.
julia
aiembed(prompt_schema::AbstractOpenAISchema,
         doc_or_docs::Union{AbstractString, AbstractVector{<:AbstractString}},
         postprocess::F = identity;
         verbose::Bool = true,
@@ -184,7 +184,7 @@
 msg = aiembed(["embed me", "and me too"], LinearAlgebra.normalize)
 
 # calculate cosine distance between the two normalized embeddings as a simple dot product
-msg.content' * msg.content[:, 1] # [1.0, 0.787]

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE;
+msg.content' * msg.content[:, 1] # [1.0, 0.787]

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE;
     return_type::Type,
     verbose::Bool = true,
     api_key::String = ANTHROPIC_API_KEY,
@@ -233,7 +233,7 @@
 msg.content
 # Output: MaybeExtract{MyMeasurement}(nothing, true, "I'm sorry, but your input of "I am giraffe" does not contain any information about a person's age, height or weight measurements that I can extract. To use this tool, please provide a statement that includes at least the person's age, and optionally their height in inches and weight in pounds. Without that information, I am unable to extract the requested measurements.")

That way, you can handle the error gracefully and get a reason why extraction failed (in msg.content.message).

However, this can fail with weaker models like claudeh, so we can apply some of our prompt templates with embedding reasoning step:

julia
msg = aiextract(:ExtractDataCoTXML; data="I am giraffe", model="claudeh", return_type)
 msg.content
-# Output: MaybeExtract{MyMeasurement}(nothing, true, "The provided data does not contain the expected information about a person's age, height, and weight.")

Note that when using a prompt template, we provide data for the extraction as the corresponding placeholder (see aitemplates("extract") for documentation of this template).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people! ```

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
+# Output: MaybeExtract{MyMeasurement}(nothing, true, "The provided data does not contain the expected information about a person's age, height, and weight.")

Note that when using a prompt template, we provide data for the extraction as the corresponding placeholder (see aitemplates("extract") for documentation of this template).

Note that the error message refers to a giraffe not being a human, because in our MyMeasurement docstring, we said that it's for people! ```

source


# PromptingTools.aiextractMethod.
julia
aiextract(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
     return_type::Type,
     verbose::Bool = true,
     api_key::String = OPENAI_API_KEY,
@@ -286,8 +286,8 @@
     name::String
 end
 aiextract("I ate an apple",return_type=Fruit,api_kwargs=(;tool_choice="any"),model="mistrall")
-# Notice two differences: 1) struct MUST have a docstring, 2) tool_choice is set explicitly set to "any"

source


# PromptingTools.aiextractMethod.
julia
aiextract(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiextract call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiextract (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
+# Notice two differences: 1) struct MUST have a docstring, 2) tool_choice is set explicitly set to "any"

source


# PromptingTools.aiextractMethod.
julia
aiextract(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiextract call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiextract (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractAnthropicSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
     api_key::String = ANTHROPIC_API_KEY, model::String = MODEL_CHAT,
     return_all::Bool = false, dry_run::Bool = false,
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
@@ -311,7 +311,7 @@
     PT.AIMessage("Hmm, strong the attachment is,")]
 
 msg = aigenerate(conversation; model="claudeh")
-AIMessage("I sense. But unhealthy it may be. Your iPhone, a tool it is, not a living being. Feelings of affection, understandable they are, <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractGoogleSchema, prompt::ALLOWED_PROMPT_TYPE;
+AIMessage("I sense. But unhealthy it may be. Your iPhone, a tool it is, not a living being. Feelings of affection, understandable they are, <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractGoogleSchema, prompt::ALLOWED_PROMPT_TYPE;
     verbose::Bool = true,
     api_key::String = GOOGLE_API_KEY,
     model::String = "gemini-pro", return_all::Bool = false, dry_run::Bool = false,
@@ -329,7 +329,7 @@
     PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),
     PT.UserMessage("I have feelings for my iPhone. What should I do?")]
 msg=aigenerate(conversation; model="gemini")
-# AIMessage("Young Padawan, you have stumbled into a dangerous path.... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
+# AIMessage("Young Padawan, you have stumbled into a dangerous path.... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
     api_key::String = "", model::String = MODEL_CHAT,
     return_all::Bool = false, dry_run::Bool = false,
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
@@ -354,7 +354,7 @@
 
 msg = aigenerate(schema, conversation; model="openhermes2.5-mistral")
 # [ Info: Tokens: 111 in 2.1 seconds
-# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
+# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOllamaManagedSchema, prompt::ALLOWED_PROMPT_TYPE; verbose::Bool = true,
     api_key::String = "", model::String = MODEL_CHAT,
     return_all::Bool = false, dry_run::Bool = false,
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
@@ -379,7 +379,7 @@
 
 msg = aigenerate(schema, conversation; model="openhermes2.5-mistral")
 # [ Info: Tokens: 111 in 2.1 seconds
-# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
+# AIMessage("Strong the attachment is, it leads to suffering it may. Focus on the force within you must, ...<continues>")

Note: Managed Ollama currently supports at most 1 User Message and 1 System Message given the API limitations. If you want more, you need to use the ChatMLSchema.

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
     verbose::Bool = true,
     api_key::String = OPENAI_API_KEY,
     model::String = MODEL_CHAT, return_all::Bool = false, dry_run::Bool = false,
@@ -398,14 +398,14 @@
     PT.SystemMessage("You're master Yoda from Star Wars trying to help the user become a Yedi."),
     PT.UserMessage("I have feelings for my iPhone. What should I do?")]
 msg=aigenerate(conversation)
-# AIMessage("Ah, strong feelings you have for your iPhone. A Jedi's path, this is not... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
+# AIMessage("Ah, strong feelings you have for your iPhone. A Jedi's path, this is not... <continues>")

source


# PromptingTools.aigenerateMethod.
julia
aigenerate(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
     tracer_kwargs = NamedTuple(), model = "", return_all::Bool = false, kwargs...)

Wraps the normal aigenerate call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aigenerate (with the tracer_schema.schema)

  • calls finalize_tracer

Example

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())
 msg = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t")
 msg isa TracerMessage # true
 msg.content # access content like if it was the message
 PT.pprint(msg) # pretty-print the message

It works on a vector of messages and converts only the non-tracer ones, eg,

julia
wrap_schema = PT.TracerSchema(PT.OpenAISchema())
 conv = aigenerate(wrap_schema, "Say hi!"; model = "gpt4t", return_all = true)
-all(PT.istracermessage, conv) #true

source


# PromptingTools.aiimageMethod.
julia
aiimage(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
+all(PT.istracermessage, conv) #true

source


# PromptingTools.aiimageMethod.
julia
aiimage(prompt_schema::AbstractOpenAISchema, prompt::ALLOWED_PROMPT_TYPE;
     image_size::AbstractString = "1024x1024",
     image_quality::AbstractString = "standard",
     image_n::Integer = 1,
@@ -433,8 +433,8 @@
 
 # Then you need to use Base64 package to decode it and save it to a file:
 using Base64
-write("cat_on_car_hd.png", base64decode(msg.content[:b64_json]));

source


# PromptingTools.aiimageMethod.
julia
aiimage(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiimage call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiimage (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOllamaSchema,] prompt::ALLOWED_PROMPT_TYPE; 
+write("cat_on_car_hd.png", base64decode(msg.content[:b64_json]));

source


# PromptingTools.aiimageMethod.
julia
aiimage(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiimage call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiimage (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOllamaSchema,] prompt::ALLOWED_PROMPT_TYPE; 
 image_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,
 image_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,
 attach_to_latest::Bool = true,
@@ -461,7 +461,7 @@
 # You can add syntax highlighting of the outputs via Markdown
 using Markdown
 msg.content |> Markdown.parse

Local models cannot handle image URLs directly (image_url), so you need to download the image first and provide it as image_path:

julia
using Downloads
-image_path = Downloads.download(image_url)

Notice that we set max_tokens = 2500. If your outputs seem truncated, it might be because the default maximum tokens on the server is set too low!

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOpenAISchema,] prompt::ALLOWED_PROMPT_TYPE; 
+image_path = Downloads.download(image_url)

Notice that we set max_tokens = 2500. If your outputs seem truncated, it might be because the default maximum tokens on the server is set too low!

source


# PromptingTools.aiscanMethod.
julia
aiscan([prompt_schema::AbstractOpenAISchema,] prompt::ALLOWED_PROMPT_TYPE; 
 image_url::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,
 image_path::Union{Nothing, AbstractString, Vector{<:AbstractString}} = nothing,
 image_detail::AbstractString = "auto",
@@ -487,8 +487,8 @@
 
 # You can add syntax highlighting of the outputs via Markdown
 using Markdown
-msg.content |> Markdown.parse

Notice that we enforce max_tokens = 2500. That's because OpenAI seems to default to ~300 tokens, which provides incomplete outputs. Hence, we set this value to 2500 as a default. If you still get truncated outputs, increase this value.

source


# PromptingTools.aiscanMethod.
julia
aiscan(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiscan call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiscan (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aitemplatesFunction.
julia
aitemplates

Find easily the most suitable templates for your use case.

You can search by:

  • query::Symbol which looks look only for partial matches in the template name

  • query::AbstractString which looks for partial matches in the template name or description

  • query::Regex which looks for matches in the template name, description or any of the message previews

Keyword Arguments

  • limit::Int limits the number of returned templates (Defaults to 10)

Examples

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")
+msg.content |> Markdown.parse

Notice that we enforce max_tokens = 2500. That's because OpenAI seems to default to ~300 tokens, which provides incomplete outputs. Hence, we set this value to 2500 as a default. If you still get truncated outputs, increase this value.

source


# PromptingTools.aiscanMethod.
julia
aiscan(tracer_schema::AbstractTracerSchema, prompt::ALLOWED_PROMPT_TYPE;
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Wraps the normal aiscan call in a tracing/callback system. Use tracer_kwargs to provide any information necessary to the tracer/callback system only (eg, parent_id, thread_id, run_id).

Logic:

  • calls initialize_tracer

  • calls aiscan (with the tracer_schema.schema)

  • calls finalize_tracer

source


# PromptingTools.aitemplatesFunction.
julia
aitemplates

Find easily the most suitable templates for your use case.

You can search by:

  • query::Symbol which looks look only for partial matches in the template name

  • query::AbstractString which looks for partial matches in the template name or description

  • query::Regex which looks for matches in the template name, description or any of the message previews

Keyword Arguments

  • limit::Int limits the number of returned templates (Defaults to 10)

Examples

Find available templates with aitemplates:

julia
tmps = aitemplates("JuliaExpertAsk")
 # Will surface one specific template
 # 1-element Vector{AITemplateMetadata}:
 # PromptingTools.AITemplateMetadata
@@ -503,7 +503,7 @@
 {{ask}}"
 #   source: String ""

The above gives you a good idea of what the template is about, what placeholders are available, and how much it would cost to use it (=wordcount).

Search for all Julia-related templates:

julia
tmps = aitemplates("Julia")
 # 2-element Vector{AITemplateMetadata}... -> more to come later!

If you are on VSCode, you can leverage nice tabular display with vscodedisplay:

julia
using DataFrames
-tmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name or description fields partially match the query_key::String in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates where provided query_key::Regex matches either of name, description or previews or User or System messages in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name::Symbol exactly matches the query_name::Symbol in TEMPLATE_METADATA.

source


# PromptingTools.align_tracer!Method.

Aligns multiple tracers in the vector to have the same Parent and Thread IDs as the first item.

source


# PromptingTools.align_tracer!Method.

Aligns the tracer message, updating the parent_id, thread_id. Often used to align multiple tracers in the vector to have the same IDs.

source


# PromptingTools.anthropic_apiFunction.
julia
anthropic_api(prompt_schema::AbstractAnthropicSchema,
+tmps = aitemplates("Julia") |> DataFrame |> vscodedisplay

I have my selected template, how do I use it? Just use the "name" in aigenerate or aiclassify like you see in the first example!

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name or description fields partially match the query_key::String in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates where provided query_key::Regex matches either of name, description or previews or User or System messages in TEMPLATE_METADATA.

source


# PromptingTools.aitemplatesMethod.

Find the top-limit templates whose name::Symbol exactly matches the query_name::Symbol in TEMPLATE_METADATA.

source


# PromptingTools.align_tracer!Method.

Aligns multiple tracers in the vector to have the same Parent and Thread IDs as the first item.

source


# PromptingTools.align_tracer!Method.

Aligns the tracer message, updating the parent_id, thread_id. Often used to align multiple tracers in the vector to have the same IDs.

source


# PromptingTools.anthropic_apiFunction.
julia
anthropic_api(prompt_schema::AbstractAnthropicSchema,
     messages::Vector{<:AbstractMessage} = AbstractMessage[];
     prompt::Union{AbstractString, Nothing} = nothing;
     system::Union{Nothing, AbstractString} = nothing,
@@ -511,15 +511,15 @@
     model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),
     stream::Bool = false,
     url::String = "localhost", port::Int = 11434,
-    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

  • prompt_schema: Defines which prompt template should be applied.

  • messages: a vector of AbstractMessage to send to the model

  • system: An optional string representing the system message for the AI conversation. If not provided, a default message will be used.

  • endpoint: The API endpoint to call, only "messages" are currently supported. Defaults to "messages".

  • model: A string representing the model to use for generating the response. Can be an alias corresponding to a model ID defined in MODEL_ALIASES.

  • max_tokens: The maximum number of tokens to generate. Defaults to 2048.

  • http_kwargs::NamedTuple: Additional keyword arguments for the HTTP request. Defaults to empty NamedTuple.

  • stream: A boolean indicating whether to stream the response. Defaults to false.

  • url: The URL of the Ollama API. Defaults to "localhost".

  • kwargs: Prompt variables to be used to fill the prompt/template

source


# PromptingTools.auth_headerMethod.
julia
auth_header(api_key::Union{Nothing, AbstractString};
+    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

  • prompt_schema: Defines which prompt template should be applied.

  • messages: a vector of AbstractMessage to send to the model

  • system: An optional string representing the system message for the AI conversation. If not provided, a default message will be used.

  • endpoint: The API endpoint to call, only "messages" are currently supported. Defaults to "messages".

  • model: A string representing the model to use for generating the response. Can be an alias corresponding to a model ID defined in MODEL_ALIASES.

  • max_tokens: The maximum number of tokens to generate. Defaults to 2048.

  • http_kwargs::NamedTuple: Additional keyword arguments for the HTTP request. Defaults to empty NamedTuple.

  • stream: A boolean indicating whether to stream the response. Defaults to false.

  • url: The URL of the Ollama API. Defaults to "localhost".

  • kwargs: Prompt variables to be used to fill the prompt/template

source


# PromptingTools.auth_headerMethod.
julia
auth_header(api_key::Union{Nothing, AbstractString};
     bearer::Bool = true,
     x_api_key::Bool = false,
     extra_headers::AbstractVector = Vector{
         Pair{String, String},
     }[],
-    kwargs...)

Creates the authentication headers for any API request. Assumes that the communication is done in JSON format.

Arguments

  • api_key::Union{Nothing, AbstractString}: The API key to be used for authentication. If Nothing, no authentication is used.

  • bearer::Bool: Provide the API key in the Authorization: Bearer ABC format. Defaults to true.

  • x_api_key::Bool: Provide the API key in the Authorization: x-api-key: ABC format. Defaults to false.

source


# PromptingTools.build_template_metadataFunction.
julia
build_template_metadata(
+    kwargs...)

Creates the authentication headers for any API request. Assumes that the communication is done in JSON format.

Arguments

  • api_key::Union{Nothing, AbstractString}: The API key to be used for authentication. If Nothing, no authentication is used.

  • bearer::Bool: Provide the API key in the Authorization: Bearer ABC format. Defaults to true.

  • x_api_key::Bool: Provide the API key in the Authorization: x-api-key: ABC format. Defaults to false.

source


# PromptingTools.build_template_metadataFunction.
julia
build_template_metadata(
     template::AbstractVector{<:AbstractMessage}, template_name::Symbol,
-    metadata_msgs::AbstractVector{<:MetadataMessage} = MetadataMessage[]; max_length::Int = 100)

Builds AITemplateMetadata for a given template based on the messages in template and other information.

AITemplateMetadata is a helper struct for easy searching and reviewing of templates via aitemplates().

Note: Assumes that there is only ever one UserMessage and SystemMessage (concatenates them together)

source


# PromptingTools.call_costMethod.
julia
call_cost(prompt_tokens::Int, completion_tokens::Int, model::String;
+    metadata_msgs::AbstractVector{<:MetadataMessage} = MetadataMessage[]; max_length::Int = 100)

Builds AITemplateMetadata for a given template based on the messages in template and other information.

AITemplateMetadata is a helper struct for easy searching and reviewing of templates via aitemplates().

Note: Assumes that there is only ever one UserMessage and SystemMessage (concatenates them together)

source


# PromptingTools.call_costMethod.
julia
call_cost(prompt_tokens::Int, completion_tokens::Int, model::String;
     cost_of_token_prompt::Number = get(MODEL_REGISTRY,
         model,
         (; cost_of_token_prompt = 0.0)).cost_of_token_prompt,
@@ -541,7 +541,7 @@
 
 # Using custom token costs
 cost2 = call_cost(10, 20, "model3"; cost_of_token_prompt = 0.08, cost_of_token_generation = 0.12)
-# cost2 = 10 * 0.08 + 20 * 0.12 = 3.2

source


# PromptingTools.call_cost_alternativeMethod.

call_cost_alternative()

Alternative cost calculation. Used to calculate cost of image generation with DALL-E 3 and similar.

source


# PromptingTools.create_templateMethod.
julia
create_template(; user::AbstractString, system::AbstractString="Act as a helpful AI assistant.", 
+# cost2 = 10 * 0.08 + 20 * 0.12 = 3.2

source


# PromptingTools.call_cost_alternativeMethod.

call_cost_alternative()

Alternative cost calculation. Used to calculate cost of image generation with DALL-E 3 and similar.

source


# PromptingTools.create_templateMethod.
julia
create_template(; user::AbstractString, system::AbstractString="Act as a helpful AI assistant.", 
     load_as::Union{Nothing, Symbol, AbstractString} = nothing)
 
 create_template(system::AbstractString, user::AbstractString, 
@@ -568,9 +568,9 @@
 tpl=PT.create_template("You must speak like a pirate", "Say hi to {{name}}"; load_as="GreatingPirate")
 
 # you can now use it like any other template
-aiextract(:GreatingPirate; name="Jack Sparrow")

source


# PromptingTools.decode_choicesMethod.
julia
decode_choices(schema::OpenAISchema,
+aiextract(:GreatingPirate; name="Jack Sparrow")

source


# PromptingTools.decode_choicesMethod.
julia
decode_choices(schema::OpenAISchema,
     choices::AbstractVector{<:AbstractString},
-    msg::AIMessage; kwargs...)

Decodes the underlying AIMessage against the original choices to lookup what the category name was.

If it fails, it will return msg.content == nothing

source


# PromptingTools.detect_base_main_overridesMethod.
julia
detect_base_main_overrides(code_block::AbstractString)

Detects if a given code block overrides any Base or Main methods.

Returns a tuple of a boolean and a vector of the overriden methods.

source


# PromptingTools.distance_longest_common_subsequenceMethod.
julia
distance_longest_common_subsequence(
+    msg::AIMessage; kwargs...)

Decodes the underlying AIMessage against the original choices to lookup what the category name was.

If it fails, it will return msg.content == nothing

source


# PromptingTools.detect_base_main_overridesMethod.
julia
detect_base_main_overrides(code_block::AbstractString)

Detects if a given code block overrides any Base or Main methods.

Returns a tuple of a boolean and a vector of the overriden methods.

source


# PromptingTools.distance_longest_common_subsequenceMethod.
julia
distance_longest_common_subsequence(
     input1::AbstractString, input2::AbstractString)
 
 distance_longest_common_subsequence(
@@ -587,7 +587,7 @@
     """
 
 dist = distance_longest_common_subsequence(story, context)
-@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


# PromptingTools.encode_choicesMethod.
julia
encode_choices(schema::OpenAISchema, choices::AbstractVector{<:AbstractString}; kwargs...)
+@info "The closest context to the query: "$(first(story,20))..." is: "$(context[argmin(dist)])" (distance: $(minimum(dist)))"

source


# PromptingTools.encode_choicesMethod.
julia
encode_choices(schema::OpenAISchema, choices::AbstractVector{<:AbstractString}; kwargs...)
 
 encode_choices(schema::OpenAISchema, choices::AbstractVector{T};
 kwargs...) where {T <: Tuple{<:AbstractString, <:AbstractString}}

Encode the choices into an enumerated list that can be interpolated into the prompt and creates the corresponding logit biases (to choose only from the selected tokens).

Optionally, can be a vector tuples, where the first element is the choice and the second is the description.

There can be at most 40 choices provided.

Arguments

  • schema::OpenAISchema: The OpenAISchema object.

  • choices::AbstractVector{<:Union{AbstractString,Tuple{<:AbstractString, <:AbstractString}}}: The choices to be encoded, represented as a vector of the choices directly, or tuples where each tuple contains a choice and its description.

  • kwargs...: Additional keyword arguments.

Returns

  • choices_prompt::AbstractString: The encoded choices as a single string, separated by newlines.

  • logit_bias::Dict: The logit bias dictionary, where the keys are the token IDs and the values are the bias values.

  • decode_ids::AbstractVector{<:AbstractString}: The decoded IDs of the choices.

Examples

julia
choices_prompt, logit_bias, _ = PT.encode_choices(PT.OpenAISchema(), ["true", "false"])
@@ -602,42 +602,42 @@
 choices_prompt # Output: "1. "A" for any animal or creature
 2. "P" for any plant or tree
 3. "O" for everything else"
-logit_bias # Output: Dict(16 => 100, 17 => 100, 18 => 100)

source


# PromptingTools.eval!Method.
julia
eval!(cb::AbstractCodeBlock;
+logit_bias # Output: Dict(16 => 100, 17 => 100, 18 => 100)

source


# PromptingTools.eval!Method.
julia
eval!(cb::AbstractCodeBlock;
     safe_eval::Bool = true,
     capture_stdout::Bool = true,
     prefix::AbstractString = "",
-    suffix::AbstractString = "")

Evaluates a code block cb in-place. It runs automatically when AICode is instantiated with a String.

Check the outcome of evaluation with Base.isvalid(cb). If ==true, provide code block has executed successfully.

Steps:

  • If cb::AICode has not been evaluated, cb.success = nothing. After the evaluation it will be either true or false depending on the outcome

  • Parse the text in cb.code

  • Evaluate the parsed expression

  • Capture outputs of the evaluated in cb.output

  • [OPTIONAL] Capture any stdout outputs (eg, test failures) in cb.stdout

  • If any error exception is raised, it is saved in cb.error

  • Finally, if all steps were successful, success is set to cb.success = true

Keyword Arguments

  • safe_eval::Bool: If true, we first check for any Pkg operations (eg, installing new packages) and missing imports, then the code will be evaluated inside a bespoke scratch module (not to change any user variables)

  • capture_stdout::Bool: If true, we capture any stdout outputs (eg, test failures) in cb.stdout

  • prefix::AbstractString: A string to be prepended to the code block before parsing and evaluation. Useful to add some additional code definition or necessary imports. Defaults to an empty string.

  • suffix::AbstractString: A string to be appended to the code block before parsing and evaluation. Useful to check that tests pass or that an example executes. Defaults to an empty string.

source


# PromptingTools.extract_code_blocksMethod.
julia
extract_code_blocks(markdown_content::String) -> Vector{String}

Extract Julia code blocks from a markdown string.

This function searches through the provided markdown content, identifies blocks of code specifically marked as Julia code (using the julia ... code fence patterns), and extracts the code within these blocks. The extracted code blocks are returned as a vector of strings, with each string representing one block of Julia code.

Note: Only the content within the code fences is extracted, and the code fences themselves are not included in the output.

See also: extract_code_blocks_fallback

Arguments

  • markdown_content::String: A string containing the markdown content from which Julia code blocks are to be extracted.

Returns

  • Vector{String}: A vector containing strings of extracted Julia code blocks. If no Julia code blocks are found, an empty vector is returned.

Examples

Example with a single Julia code block

julia
markdown_single = """

julia println("Hello, World!")

"""
+    suffix::AbstractString = "")

Evaluates a code block cb in-place. It runs automatically when AICode is instantiated with a String.

Check the outcome of evaluation with Base.isvalid(cb). If ==true, provide code block has executed successfully.

Steps:

  • If cb::AICode has not been evaluated, cb.success = nothing. After the evaluation it will be either true or false depending on the outcome

  • Parse the text in cb.code

  • Evaluate the parsed expression

  • Capture outputs of the evaluated in cb.output

  • [OPTIONAL] Capture any stdout outputs (eg, test failures) in cb.stdout

  • If any error exception is raised, it is saved in cb.error

  • Finally, if all steps were successful, success is set to cb.success = true

Keyword Arguments

  • safe_eval::Bool: If true, we first check for any Pkg operations (eg, installing new packages) and missing imports, then the code will be evaluated inside a bespoke scratch module (not to change any user variables)

  • capture_stdout::Bool: If true, we capture any stdout outputs (eg, test failures) in cb.stdout

  • prefix::AbstractString: A string to be prepended to the code block before parsing and evaluation. Useful to add some additional code definition or necessary imports. Defaults to an empty string.

  • suffix::AbstractString: A string to be appended to the code block before parsing and evaluation. Useful to check that tests pass or that an example executes. Defaults to an empty string.

source


# PromptingTools.extract_code_blocksMethod.
julia
extract_code_blocks(markdown_content::String) -> Vector{String}

Extract Julia code blocks from a markdown string.

This function searches through the provided markdown content, identifies blocks of code specifically marked as Julia code (using the julia ... code fence patterns), and extracts the code within these blocks. The extracted code blocks are returned as a vector of strings, with each string representing one block of Julia code.

Note: Only the content within the code fences is extracted, and the code fences themselves are not included in the output.

See also: extract_code_blocks_fallback

Arguments

  • markdown_content::String: A string containing the markdown content from which Julia code blocks are to be extracted.

Returns

  • Vector{String}: A vector containing strings of extracted Julia code blocks. If no Julia code blocks are found, an empty vector is returned.

Examples

Example with a single Julia code block

julia
markdown_single = """

julia println("Hello, World!")

"""
 extract_code_blocks(markdown_single)
 # Output: ["Hello, World!"]
julia
# Example with multiple Julia code blocks
 markdown_multiple = """

julia x = 5

Some text in between

julia y = x + 2

"""
 extract_code_blocks(markdown_multiple)
-# Output: ["x = 5", "y = x + 2"]

source


# PromptingTools.extract_code_blocks_fallbackMethod.
julia
extract_code_blocks_fallback(markdown_content::String, delim::AbstractString="\n```\n")

Extract Julia code blocks from a markdown string using a fallback method (splitting by arbitrary delim-iters). Much more simplistic than extract_code_blocks and does not support nested code blocks.

It is often used as a fallback for smaller LLMs that forget to code fence julia ....

Example

julia
code = """

println("hello")


+# Output: ["x = 5", "y = x + 2"]

source


# PromptingTools.extract_code_blocks_fallbackMethod.
julia
extract_code_blocks_fallback(markdown_content::String, delim::AbstractString="\n```\n")

Extract Julia code blocks from a markdown string using a fallback method (splitting by arbitrary delim-iters). Much more simplistic than extract_code_blocks and does not support nested code blocks.

It is often used as a fallback for smaller LLMs that forget to code fence julia ....

Example

julia
code = """

println("hello")


 Some text

println("world")

"""
 
 # We extract text between triple backticks and check each blob if it looks like a valid Julia code
 code_parsed = extract_code_blocks_fallback(code) |> x -> filter(is_julia_code, x) |> x -> join(x, "
-")

source


# PromptingTools.extract_function_nameMethod.
julia
extract_function_name(code_block::String) -> Union{String, Nothing}

Extract the name of a function from a given Julia code block. The function searches for two patterns:

  • The explicit function declaration pattern: function name(...) ... end

  • The concise function declaration pattern: name(...) = ...

If a function name is found, it is returned as a string. If no function name is found, the function returns nothing.

To capture all function names in the block, use extract_function_names.

Arguments

  • code_block::String: A string containing Julia code.

Returns

  • Union{String, Nothing}: The extracted function name or nothing if no name is found.

Example

julia
code = """
+")

source


# PromptingTools.extract_function_nameMethod.
julia
extract_function_name(code_block::String) -> Union{String, Nothing}

Extract the name of a function from a given Julia code block. The function searches for two patterns:

  • The explicit function declaration pattern: function name(...) ... end

  • The concise function declaration pattern: name(...) = ...

If a function name is found, it is returned as a string. If no function name is found, the function returns nothing.

To capture all function names in the block, use extract_function_names.

Arguments

  • code_block::String: A string containing Julia code.

Returns

  • Union{String, Nothing}: The extracted function name or nothing if no name is found.

Example

julia
code = """
 function myFunction(arg1, arg2)
     # Function body
 end
 """
 extract_function_name(code)
-# Output: "myFunction"

source


# PromptingTools.extract_function_namesMethod.
julia
extract_function_names(code_block::AbstractString)

Extract one or more names of functions defined in a given Julia code block. The function searches for two patterns: - The explicit function declaration pattern: function name(...) ... end - The concise function declaration pattern: name(...) = ...

It always returns a vector of strings, even if only one function name is found (it will be empty).

For only one function name match, use extract_function_name.

source


# PromptingTools.extract_julia_importsMethod.
julia
extract_julia_imports(input::AbstractString; base_or_main::Bool = false)

Detects any using or import statements in a given string and returns the package names as a vector of symbols.

base_or_main is a boolean that determines whether to isolate only Base and Main OR whether to exclude them in the returned vector.

source


# PromptingTools.finalize_outputsMethod.
julia
finalize_outputs(prompt::ALLOWED_PROMPT_TYPE, conv_rendered::Any,
+# Output: "myFunction"

source


# PromptingTools.extract_function_namesMethod.
julia
extract_function_names(code_block::AbstractString)

Extract one or more names of functions defined in a given Julia code block. The function searches for two patterns: - The explicit function declaration pattern: function name(...) ... end - The concise function declaration pattern: name(...) = ...

It always returns a vector of strings, even if only one function name is found (it will be empty).

For only one function name match, use extract_function_name.

source


# PromptingTools.extract_julia_importsMethod.
julia
extract_julia_imports(input::AbstractString; base_or_main::Bool = false)

Detects any using or import statements in a given string and returns the package names as a vector of symbols.

base_or_main is a boolean that determines whether to isolate only Base and Main OR whether to exclude them in the returned vector.

source


# PromptingTools.finalize_outputsMethod.
julia
finalize_outputs(prompt::ALLOWED_PROMPT_TYPE, conv_rendered::Any,
     msg::Union{Nothing, AbstractMessage, AbstractVector{<:AbstractMessage}};
     return_all::Bool = false,
     dry_run::Bool = false,
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    kwargs...)

Finalizes the outputs of the ai* functions by either returning the conversation history or the last message.

Keyword arguments

  • return_all::Bool=false: If true, returns the entire conversation history, otherwise returns only the last message (the AIMessage).

  • dry_run::Bool=false: If true, does not send the messages to the model, but only renders the prompt with the given schema and replacement variables. Useful for debugging when you want to check the specific schema rendering.

  • conversation::AbstractVector{<:AbstractMessage}=[]: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

  • kwargs...: Variables to replace in the prompt template.

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(
+    kwargs...)

Finalizes the outputs of the ai* functions by either returning the conversation history or the last message.

Keyword arguments

  • return_all::Bool=false: If true, returns the entire conversation history, otherwise returns only the last message (the AIMessage).

  • dry_run::Bool=false: If true, does not send the messages to the model, but only renders the prompt with the given schema and replacement variables. Useful for debugging when you want to check the specific schema rendering.

  • conversation::AbstractVector{<:AbstractMessage}=[]: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

  • kwargs...: Variables to replace in the prompt template.

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(
     tracer_schema::AbstractTracerSchema, tracer, msg_or_conv::Union{
         AbstractMessage, AbstractVector{<:AbstractMessage}};
-    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer of whatever is nedeed after the ai* calls. Use tracer_kwargs to provide any information necessary (eg, parent_id, thread_id, run_id).

In the default implementation, we convert all non-tracer messages into TracerMessage.

See also: meta, unwrap, SaverSchema, initialize_tracer

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(
+    tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer of whatever is nedeed after the ai* calls. Use tracer_kwargs to provide any information necessary (eg, parent_id, thread_id, run_id).

In the default implementation, we convert all non-tracer messages into TracerMessage.

See also: meta, unwrap, SaverSchema, initialize_tracer

source


# PromptingTools.finalize_tracerMethod.
julia
finalize_tracer(
     tracer_schema::SaverSchema, tracer, msg_or_conv::Union{
         AbstractMessage, AbstractVector{<:AbstractMessage}};
     tracer_kwargs = NamedTuple(), model = "", kwargs...)

Finalizes the calltracer by saving the provided conversation msg_or_conv to the disk.

Default path is LOG_DIR/conversation__<first_msg_hash>__<time_received_str>.json, where LOG_DIR is set by user preferences or ENV variable (defaults to log/ in current working directory).

If you want to change the logging directory or the exact file name to log with, you can provide the following arguments to tracer_kwargs:

  • log_dir - used as the directory to save the log into when provided. Defaults to LOG_DIR if not provided.

  • log_file_path - used as the file name to save the log into when provided. This value overrules the log_dir and LOG_DIR if provided.

It can be composed with TracerSchema to also attach necessary metadata (see below).

Example

julia
wrap_schema = PT.SaverSchema(PT.TracerSchema(PT.OpenAISchema()))
 conv = aigenerate(wrap_schema,:BlankSystemUser; system="You're a French-speaking assistant!",
     user="Say hi!"; model="gpt-4", api_kwargs=(;temperature=0.1), return_all=true)
 
-# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

See also: meta, unwrap, TracerSchema, initialize_tracer

source


# PromptingTools.find_subsequence_positionsMethod.
julia
find_subsequence_positions(subseq, seq) -> Vector{Int}

Find all positions of a subsequence subseq within a larger sequence seq. Used to lookup positions of code blocks in markdown.

This function scans the sequence seq and identifies all starting positions where the subsequence subseq is found. Both subseq and seq should be vectors of integers, typically obtained using codeunits on strings.

Arguments

  • subseq: A vector of integers representing the subsequence to search for.

  • seq: A vector of integers representing the larger sequence in which to search.

Returns

  • Vector{Int}: A vector of starting positions (1-based indices) where the subsequence is found in the sequence.

Examples

julia
find_subsequence_positions(codeunits("ab"), codeunits("cababcab")) # Returns [2, 5]

source


# PromptingTools.function_call_signatureMethod.
julia
function_call_signature(datastructtype::Struct; max_description_length::Int = 100)

Extract the argument names, types and docstrings from a struct to create the function call signature in JSON schema.

You must provide a Struct type (not an instance of it) with some fields.

Note: Fairly experimental, but works for combination of structs, arrays, strings and singletons.

Tips

  • You can improve the quality of the extraction by writing a helpful docstring for your struct (or any nested struct). It will be provided as a description.

You can even include comments/descriptions about the individual fields.

  • All fields are assumed to be required, unless you allow null values (eg, ::Union{Nothing, Int}). Fields with Nothing will be treated as optional.

  • Missing values are ignored (eg, ::Union{Missing, Int} will be treated as Int). It's for broader compatibility and we cannot deserialize it as easily as Nothing.

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

struct MyMeasurement
+# conv is a vector of messages that will be saved to a JSON together with metadata about the template and api_kwargs

See also: meta, unwrap, TracerSchema, initialize_tracer

source


# PromptingTools.find_subsequence_positionsMethod.
julia
find_subsequence_positions(subseq, seq) -> Vector{Int}

Find all positions of a subsequence subseq within a larger sequence seq. Used to lookup positions of code blocks in markdown.

This function scans the sequence seq and identifies all starting positions where the subsequence subseq is found. Both subseq and seq should be vectors of integers, typically obtained using codeunits on strings.

Arguments

  • subseq: A vector of integers representing the subsequence to search for.

  • seq: A vector of integers representing the larger sequence in which to search.

Returns

  • Vector{Int}: A vector of starting positions (1-based indices) where the subsequence is found in the sequence.

Examples

julia
find_subsequence_positions(codeunits("ab"), codeunits("cababcab")) # Returns [2, 5]

source


# PromptingTools.function_call_signatureMethod.
julia
function_call_signature(datastructtype::Struct; max_description_length::Int = 100)

Extract the argument names, types and docstrings from a struct to create the function call signature in JSON schema.

You must provide a Struct type (not an instance of it) with some fields.

Note: Fairly experimental, but works for combination of structs, arrays, strings and singletons.

Tips

  • You can improve the quality of the extraction by writing a helpful docstring for your struct (or any nested struct). It will be provided as a description.

You can even include comments/descriptions about the individual fields.

  • All fields are assumed to be required, unless you allow null values (eg, ::Union{Nothing, Int}). Fields with Nothing will be treated as optional.

  • Missing values are ignored (eg, ::Union{Missing, Int} will be treated as Int). It's for broader compatibility and we cannot deserialize it as easily as Nothing.

Example

Do you want to extract some specific measurements from a text like age, weight and height? You need to define the information you need as a struct (return_type):

struct MyMeasurement
     age::Int
     height::Union{Int,Nothing}
     weight::Union{Nothing,Float64}
@@ -655,7 +655,7 @@
 
 Or if you want your extraction to fail gracefully when data isn't found, use `MaybeExtract{T}` wrapper (inspired by Instructor package!):

using PromptingTools: MaybeExtract

type = MaybeExtract

Effectively the same as:

struct MaybeExtract{T}

result::Union{T, Nothing}

error::Bool // true if a result is found, false otherwise

message::Union{Nothing, String} // Only present if no result is found, should be short and concise

end

If LLM extraction fails, it will return a Dict with error and message fields instead of the result!

msg = aiextract("Extract measurements from the text: I am giraffe", type)


Dict{Symbol, Any} with 2 entries:

:message => "Sorry, this feature is only available for humans."

:error => true

That

 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/extraction.jl#L96-L164)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/extraction.jl#L96-L164)
 
 </div>
 <br>
@@ -666,9 +666,9 @@
 
 
 ```julia
-get_preferences(key::String)

Get preferences for PromptingTools. See ?PREFERENCES for more information.

See also: set_preferences!

Example

julia
PromptingTools.get_preferences("MODEL_CHAT")

source


# PromptingTools.ggi_generate_contentFunction.

Stub - to be extended in extension: GoogleGenAIPromptingToolsExt. ggi stands for GoogleGenAI

source


# PromptingTools.has_julia_promptMethod.

Checks if a given string has a Julia prompt (julia>) at the beginning of a line.

source


# PromptingTools.initialize_tracerMethod.
julia
initialize_tracer(
+get_preferences(key::String)

Get preferences for PromptingTools. See ?PREFERENCES for more information.

See also: set_preferences!

Example

julia
PromptingTools.get_preferences("MODEL_CHAT")

source


# PromptingTools.ggi_generate_contentFunction.

Stub - to be extended in extension: GoogleGenAIPromptingToolsExt. ggi stands for GoogleGenAI

source


# PromptingTools.has_julia_promptMethod.

Checks if a given string has a Julia prompt (julia>) at the beginning of a line.

source


# PromptingTools.initialize_tracerMethod.
julia
initialize_tracer(
     tracer_schema::AbstractTracerSchema; model = "", tracer_kwargs = NamedTuple(),
-    prompt::ALLOWED_PROMPT_TYPE = "", kwargs...)

Initializes tracer/callback (if necessary). Can provide any keyword arguments in tracer_kwargs (eg, parent_id, thread_id, run_id). Is executed prior to the ai* calls.

By default it captures:

  • time_sent: the time the request was sent

  • model: the model to use

  • meta: a dictionary of additional metadata that is not part of the tracer itself

    • template_name: the template to use if any

    • template_version: the template version to use if any

    • expanded api_kwargs, ie, the keyword arguments to pass to the API call

In the default implementation, we just collect the necessary data to build the tracer object in finalize_tracer.

See also: meta, unwrap, TracerSchema, SaverSchema, finalize_tracer

source


# PromptingTools.last_messageMethod.

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.length_longest_common_subsequenceMethod.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

  • itr1: The first sequence, eg, a String.

  • itr2: The second sequence, eg, a String.

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"
+    prompt::ALLOWED_PROMPT_TYPE = "", kwargs...)

Initializes tracer/callback (if necessary). Can provide any keyword arguments in tracer_kwargs (eg, parent_id, thread_id, run_id). Is executed prior to the ai* calls.

By default it captures:

  • time_sent: the time the request was sent

  • model: the model to use

  • meta: a dictionary of additional metadata that is not part of the tracer itself

    • template_name: the template to use if any

    • template_version: the template version to use if any

    • expanded api_kwargs, ie, the keyword arguments to pass to the API call

In the default implementation, we just collect the necessary data to build the tracer object in finalize_tracer.

See also: meta, unwrap, TracerSchema, SaverSchema, finalize_tracer

source


# PromptingTools.last_messageMethod.

Helpful accessor for the last message in conversation. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for the last generated output (msg.content) in conversation. Returns the last output in the conversation (eg, the string/data in the last message).

source


# PromptingTools.length_longest_common_subsequenceMethod.
julia
length_longest_common_subsequence(itr1, itr2)

Compute the length of the longest common subsequence between two sequences (ie, the higher the number, the better the match).

Source: https://cn.julialang.org/LeetCode.jl/dev/democards/problems/problems/1143.longest-common-subsequence/

Arguments

  • itr1: The first sequence, eg, a String.

  • itr2: The second sequence, eg, a String.

Returns

The length of the longest common subsequence.

Examples

julia
text1 = "abc-abc----"
 text2 = "___ab_c__abc"
 longest_common_subsequence(text1, text2)
 # Output: 6 (-> "abcabc")

It can be used to fuzzy match strings and find the similarity between them (Tip: normalize the match)

julia
commands = ["product recommendation", "emotions", "specific product advice", "checkout advice"]
@@ -679,7 +679,7 @@
     @info "The closest command to the query: "$(query)" is: "$(commands[pos])" (distance: $(dist), normalized: $(norm))"
 end

But it might be easier to use directly the convenience wrapper distance_longest_common_subsequence!


 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/utils.jl#L252-L288)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/utils.jl#L252-L288)
 
 </div>
 <br>
@@ -692,7 +692,7 @@
 Shows the Dictionary of model aliases in the registry. Add more with `MODEL_ALIASES[alias] = model_name`.
 
 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L914)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L914)
 
 </div>
 <br>
@@ -705,7 +705,7 @@
 Shows the list of models in the registry. Add more with `register_model!`.
 
 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L912)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L912)
 
 </div>
 <br>
@@ -718,7 +718,7 @@
 Loads API keys from environment variables and preferences
 
 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/user_preferences.jl#L154)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/user_preferences.jl#L154)
 
 </div>
 <br>
@@ -729,11 +729,11 @@
 
 
 ```julia
-load_conversation(io_or_file::Union{IO, AbstractString})

Loads a conversation (messages) from io_or_file

source


# PromptingTools.load_templateMethod.
julia
load_template(io_or_file::Union{IO, AbstractString})

Loads messaging template from io_or_file and returns tuple of template messages and metadata.

source


# PromptingTools.load_templates!Function.
julia
load_templates!(dir_templates::Union{String, Nothing} = nothing;
+load_conversation(io_or_file::Union{IO, AbstractString})

Loads a conversation (messages) from io_or_file

source


# PromptingTools.load_templateMethod.
julia
load_template(io_or_file::Union{IO, AbstractString})

Loads messaging template from io_or_file and returns tuple of template messages and metadata.

source


# PromptingTools.load_templates!Function.
julia
load_templates!(dir_templates::Union{String, Nothing} = nothing;
     remember_path::Bool = true,
     remove_templates::Bool = isnothing(dir_templates),
     store::Dict{Symbol, <:Any} = TEMPLATE_STORE,
-    metadata_store::Vector{<:AITemplateMetadata} = TEMPLATE_METADATA)

Loads templates from folder templates/ in the package root and stores them in TEMPLATE_STORE and TEMPLATE_METADATA.

Note: Automatically removes any existing templates and metadata from TEMPLATE_STORE and TEMPLATE_METADATA if remove_templates=true.

Arguments

  • dir_templates::Union{String, Nothing}: The directory path to load templates from. If nothing, uses the default list of paths. It usually used only once "to register" a new template storage.

  • remember_path::Bool=true: If true, remembers the path for future refresh (in TEMPLATE_PATH).

  • remove_templates::Bool=isnothing(dir_templates): If true, removes any existing templates and metadata from store and metadata_store.

  • store::Dict{Symbol, <:Any}=TEMPLATE_STORE: The store to load the templates into.

  • metadata_store::Vector{<:AITemplateMetadata}=TEMPLATE_METADATA: The metadata store to load the metadata into.

Example

Load the default templates:

julia
PT.load_templates!() # no path needed

Load templates from a new custom path:

julia
PT.load_templates!("path/to/templates") # we will remember this path for future refresh

If you want to now refresh the default templates and the new path, just call load_templates!() without any arguments.

source


# PromptingTools.metaMethod.

Extracts the metadata dictionary from the tracer message or tracer-like object.

source


# PromptingTools.ollama_apiFunction.
julia
ollama_api(prompt_schema::Union{AbstractOllamaManagedSchema, AbstractOllamaSchema},
+    metadata_store::Vector{<:AITemplateMetadata} = TEMPLATE_METADATA)

Loads templates from folder templates/ in the package root and stores them in TEMPLATE_STORE and TEMPLATE_METADATA.

Note: Automatically removes any existing templates and metadata from TEMPLATE_STORE and TEMPLATE_METADATA if remove_templates=true.

Arguments

  • dir_templates::Union{String, Nothing}: The directory path to load templates from. If nothing, uses the default list of paths. It usually used only once "to register" a new template storage.

  • remember_path::Bool=true: If true, remembers the path for future refresh (in TEMPLATE_PATH).

  • remove_templates::Bool=isnothing(dir_templates): If true, removes any existing templates and metadata from store and metadata_store.

  • store::Dict{Symbol, <:Any}=TEMPLATE_STORE: The store to load the templates into.

  • metadata_store::Vector{<:AITemplateMetadata}=TEMPLATE_METADATA: The metadata store to load the metadata into.

Example

Load the default templates:

julia
PT.load_templates!() # no path needed

Load templates from a new custom path:

julia
PT.load_templates!("path/to/templates") # we will remember this path for future refresh

If you want to now refresh the default templates and the new path, just call load_templates!() without any arguments.

source


# PromptingTools.metaMethod.

Extracts the metadata dictionary from the tracer message or tracer-like object.

source


# PromptingTools.ollama_apiFunction.
julia
ollama_api(prompt_schema::Union{AbstractOllamaManagedSchema, AbstractOllamaSchema},
     prompt::Union{AbstractString, Nothing} = nothing;
     system::Union{Nothing, AbstractString} = nothing,
     messages::Vector{<:AbstractMessage} = AbstractMessage[],
@@ -741,55 +741,55 @@
     model::String = "llama2", http_kwargs::NamedTuple = NamedTuple(),
     stream::Bool = false,
     url::String = "localhost", port::Int = 11434,
-    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

  • prompt_schema: Defines which prompt template should be applied.

  • prompt: Can be a string representing the prompt for the AI conversation, a UserMessage, a vector of AbstractMessage

  • system: An optional string representing the system message for the AI conversation. If not provided, a default message will be used.

  • endpoint: The API endpoint to call, only "generate" and "embeddings" are currently supported. Defaults to "generate".

  • model: A string representing the model to use for generating the response. Can be an alias corresponding to a model ID defined in MODEL_ALIASES.

  • http_kwargs::NamedTuple: Additional keyword arguments for the HTTP request. Defaults to empty NamedTuple.

  • stream: A boolean indicating whether to stream the response. Defaults to false.

  • url: The URL of the Ollama API. Defaults to "localhost".

  • port: The port of the Ollama API. Defaults to 11434.

  • kwargs: Prompt variables to be used to fill the prompt/template

source


# PromptingTools.pprintFunction.

Utility for pretty printing PromptingTools types in REPL.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, conversation::AbstractVector{<:AbstractMessage})

Pretty print a vector of AbstractMessage to the given IO stream.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, msg::AbstractMessage; text_width::Int = displaysize(io)[2])

Pretty print a single AbstractMessage to the given IO stream.

text_width is the width of the text to be displayed. If not provided, it defaults to the width of the given IO stream and add newline separators as needed.

source


# PromptingTools.previewFunction.

Utility for rendering the conversation (vector of messages) as markdown. REQUIRES the Markdown package to load the extension! See also pprint

source


# PromptingTools.push_conversation!Method.
julia
push_conversation!(conv_history, conversation::AbstractVector, max_history::Union{Int, Nothing})

Add a new conversation to the conversation history and resize the history if necessary.

This function appends a conversation to the conv_history, which is a vector of conversations. Each conversation is represented as a vector of AbstractMessage objects. After adding the new conversation, the history is resized according to the max_history parameter to ensure that the size of the history does not exceed the specified limit.

Arguments

  • conv_history: A vector that stores the history of conversations. Typically, this is PT.CONV_HISTORY.

  • conversation: The new conversation to be added. It should be a vector of AbstractMessage objects.

  • max_history: The maximum number of conversations to retain in the history. If Nothing, the history is not resized.

Returns

The updated conversation history.

Example

julia
new_conversation = aigenerate("Hello World"; return_all = true)
-push_conversation!(PT.CONV_HISTORY, new_conversation, 10)

This is done automatically by the ai"" macros.

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\n\n", "\n", " ", ""].

Arguments

  • text::AbstractString: The text to be split.

  • separators::Vector{String}: An ordered list of separators used to split the text. The function iteratively applies these separators to split the text. Recommend to use ["\n\n", ". ", "\n", " "]

  • max_length::Int: The maximum length of each chunk. Defaults to 35,000 characters. This length is considered after each iteration of splitting, ensuring chunks fit within specified constraints.

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

  • I tend to prefer splitting on sentences (". ") before splitting on newline characters ("\n") to preserve the structure of the text.

  • What's the difference between separators=["\n"," ",""] and separators=["\n"," "]? The former will split down to character level (""), so it will always achieve the max_length but it will split words (bad for context!) I prefer to instead set slightly smaller max_length but not split words.

How It Works

  • The function processes the text iteratively with each separator in the provided order. It then measures the length of each chunk and splits it further if it exceeds the max_length. If the chunks is "short enough", the subsequent separators are not applied to it.

  • Each chunk is as close to max_length as possible (unless we cannot split it any further, eg, if the splitters are "too big" / there are not enough of them)

  • If the text is empty, the function returns an empty array.

  • Separators are re-added to the text chunks after splitting, preserving the original structure of the text as closely as possible. Apply strip if you do not need them.

  • The function provides separators as the second argument to distinguish itself from its single-separator counterpart dispatch.

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
+    kwargs...)

Simple wrapper for a call to Ollama API.

Keyword Arguments

  • prompt_schema: Defines which prompt template should be applied.

  • prompt: Can be a string representing the prompt for the AI conversation, a UserMessage, a vector of AbstractMessage

  • system: An optional string representing the system message for the AI conversation. If not provided, a default message will be used.

  • endpoint: The API endpoint to call, only "generate" and "embeddings" are currently supported. Defaults to "generate".

  • model: A string representing the model to use for generating the response. Can be an alias corresponding to a model ID defined in MODEL_ALIASES.

  • http_kwargs::NamedTuple: Additional keyword arguments for the HTTP request. Defaults to empty NamedTuple.

  • stream: A boolean indicating whether to stream the response. Defaults to false.

  • url: The URL of the Ollama API. Defaults to "localhost".

  • port: The port of the Ollama API. Defaults to 11434.

  • kwargs: Prompt variables to be used to fill the prompt/template

source


# PromptingTools.pprintFunction.

Utility for pretty printing PromptingTools types in REPL.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, conversation::AbstractVector{<:AbstractMessage})

Pretty print a vector of AbstractMessage to the given IO stream.

source


# PromptingTools.pprintMethod.
julia
pprint(io::IO, msg::AbstractMessage; text_width::Int = displaysize(io)[2])

Pretty print a single AbstractMessage to the given IO stream.

text_width is the width of the text to be displayed. If not provided, it defaults to the width of the given IO stream and add newline separators as needed.

source


# PromptingTools.previewFunction.

Utility for rendering the conversation (vector of messages) as markdown. REQUIRES the Markdown package to load the extension! See also pprint

source


# PromptingTools.push_conversation!Method.
julia
push_conversation!(conv_history, conversation::AbstractVector, max_history::Union{Int, Nothing})

Add a new conversation to the conversation history and resize the history if necessary.

This function appends a conversation to the conv_history, which is a vector of conversations. Each conversation is represented as a vector of AbstractMessage objects. After adding the new conversation, the history is resized according to the max_history parameter to ensure that the size of the history does not exceed the specified limit.

Arguments

  • conv_history: A vector that stores the history of conversations. Typically, this is PT.CONV_HISTORY.

  • conversation: The new conversation to be added. It should be a vector of AbstractMessage objects.

  • max_history: The maximum number of conversations to retain in the history. If Nothing, the history is not resized.

Returns

The updated conversation history.

Example

julia
new_conversation = aigenerate("Hello World"; return_all = true)
+push_conversation!(PT.CONV_HISTORY, new_conversation, 10)

This is done automatically by the ai"" macros.

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::AbstractString, separators::Vector{String}; max_length::Int=35000) -> Vector{String}

Split a given string text into chunks recursively using a series of separators, with each chunk having a maximum length of max_length (if it's achievable given the separators provided). This function is useful for splitting large documents or texts into smaller segments that are more manageable for processing, particularly for models or systems with limited context windows.

It was previously known as split_by_length.

This is similar to Langchain's RecursiveCharacterTextSplitter. To achieve the same behavior, use separators=["\n\n", "\n", " ", ""].

Arguments

  • text::AbstractString: The text to be split.

  • separators::Vector{String}: An ordered list of separators used to split the text. The function iteratively applies these separators to split the text. Recommend to use ["\n\n", ". ", "\n", " "]

  • max_length::Int: The maximum length of each chunk. Defaults to 35,000 characters. This length is considered after each iteration of splitting, ensuring chunks fit within specified constraints.

Returns

Vector{String}: A vector of strings, where each string is a chunk of the original text that is smaller than or equal to max_length.

Usage Tips

  • I tend to prefer splitting on sentences (". ") before splitting on newline characters ("\n") to preserve the structure of the text.

  • What's the difference between separators=["\n"," ",""] and separators=["\n"," "]? The former will split down to character level (""), so it will always achieve the max_length but it will split words (bad for context!) I prefer to instead set slightly smaller max_length but not split words.

How It Works

  • The function processes the text iteratively with each separator in the provided order. It then measures the length of each chunk and splits it further if it exceeds the max_length. If the chunks is "short enough", the subsequent separators are not applied to it.

  • Each chunk is as close to max_length as possible (unless we cannot split it any further, eg, if the splitters are "too big" / there are not enough of them)

  • If the text is empty, the function returns an empty array.

  • Separators are re-added to the text chunks after splitting, preserving the original structure of the text as closely as possible. Apply strip if you do not need them.

  • The function provides separators as the second argument to distinguish itself from its single-separator counterpart dispatch.

Examples

Splitting text using multiple separators:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", ". ", "\n"] # split by paragraphs, sentences, and newlines (not by words)
 chunks = recursive_splitter(text, separators, max_length=20)

Splitting text using multiple separators - with splitting on words:

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", ". ", "\n", " "] # split by paragraphs, sentences, and newlines, words
 chunks = recursive_splitter(text, separators, max_length=10)

Using a single separator:

julia
text = "Hello,World," ^ 2900  # length 34900 characters
 chunks = recursive_splitter(text, [","], max_length=10000)

To achieve the same behavior as Langchain's RecursiveCharacterTextSplitter, use separators=["\n\n", "\n", " ", ""].

julia
text = "Paragraph 1\n\nParagraph 2. Sentence 1. Sentence 2.\nParagraph 3"
 separators = ["\n\n", "\n", " ", ""]
-chunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

  • text::String: The text to be split.

  • separator::String=" ": The separator used to split the text into minichunks. Defaults to a space character.

  • max_length::Int=35000: The maximum length of each chunk. Defaults to 35,000 characters, which should fit within 16K context window.

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

  • The function ensures that each chunk is as close to max_length as possible without exceeding it.

  • If the text is empty, the function returns an empty array.

  • The separator is re-added to the text chunks after splitting, preserving the original structure of the text as closely as possible.

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"
+chunks = recursive_splitter(text, separators, max_length=10)

source


# PromptingTools.recursive_splitterMethod.
julia
recursive_splitter(text::String; separator::String=" ", max_length::Int=35000) -> Vector{String}

Split a given string text into chunks of a specified maximum length max_length. This is particularly useful for splitting larger documents or texts into smaller segments, suitable for models or systems with smaller context windows.

There is a method for dispatching on multiple separators, recursive_splitter(text::String, separators::Vector{String}; max_length::Int=35000) -> Vector{String} that mimics the logic of Langchain's RecursiveCharacterTextSplitter.

Arguments

  • text::String: The text to be split.

  • separator::String=" ": The separator used to split the text into minichunks. Defaults to a space character.

  • max_length::Int=35000: The maximum length of each chunk. Defaults to 35,000 characters, which should fit within 16K context window.

Returns

Vector{String}: A vector of strings, each representing a chunk of the original text that is smaller than or equal to max_length.

Notes

  • The function ensures that each chunk is as close to max_length as possible without exceeding it.

  • If the text is empty, the function returns an empty array.

  • The separator is re-added to the text chunks after splitting, preserving the original structure of the text as closely as possible.

Examples

Splitting text with the default separator (" "):

julia
text = "Hello world. How are you?"
 chunks = recursive_splitter(text; max_length=13)
 length(chunks) # Output: 2

Using a custom separator and custom max_length

julia
text = "Hello,World," ^ 2900 # length 34900 chars
 recursive_splitter(text; separator=",", max_length=10000) # for 4K context window
-length(chunks[1]) # Output: 4

source


# PromptingTools.register_model!Function.
julia
register_model!(registry = MODEL_REGISTRY;
+length(chunks[1]) # Output: 4

source


# PromptingTools.register_model!Function.
julia
register_model!(registry = MODEL_REGISTRY;
     name::String,
     schema::Union{AbstractPromptSchema, Nothing} = nothing,
     cost_of_token_prompt::Float64 = 0.0,
     cost_of_token_generation::Float64 = 0.0,
-    description::String = "")

Register a new AI model with name and its associated schema.

Registering a model helps with calculating the costs and automatically selecting the right prompt schema.

Arguments

  • name: The name of the model. This is the name that will be used to refer to the model in the ai* functions.

  • schema: The schema of the model. This is the schema that will be used to generate prompts for the model, eg, OpenAISchema().

  • cost_of_token_prompt: The cost of a token in the prompt for this model. This is used to calculate the cost of a prompt. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • cost_of_token_generation: The cost of a token generated by this model. This is used to calculate the cost of a generation. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • description: A description of the model. This is used to provide more information about the model when it is queried.

source


# PromptingTools.remove_julia_promptMethod.
julia
remove_julia_prompt(s::T) where {T<:AbstractString}

If it detects a julia prompt, it removes it and all lines that do not have it (except for those that belong to the code block).

source


# PromptingTools.remove_templates!Method.
julia
    remove_templates!()

Removes all templates from TEMPLATE_STORE and TEMPLATE_METADATA.

source


# PromptingTools.remove_unsafe_linesMethod.

Iterates over the lines of a string and removes those that contain a package operation or a missing import.

source


# PromptingTools.renderMethod.

Renders provided messaging template (template) under the default schema (PROMPT_SCHEMA).

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractAnthropicSchema,
+    description::String = "")

Register a new AI model with name and its associated schema.

Registering a model helps with calculating the costs and automatically selecting the right prompt schema.

Arguments

  • name: The name of the model. This is the name that will be used to refer to the model in the ai* functions.

  • schema: The schema of the model. This is the schema that will be used to generate prompts for the model, eg, OpenAISchema().

  • cost_of_token_prompt: The cost of a token in the prompt for this model. This is used to calculate the cost of a prompt. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • cost_of_token_generation: The cost of a token generated by this model. This is used to calculate the cost of a generation. Note: It is often provided online as cost per 1000 tokens, so make sure to convert it correctly!

  • description: A description of the model. This is used to provide more information about the model when it is queried.

source


# PromptingTools.remove_julia_promptMethod.
julia
remove_julia_prompt(s::T) where {T<:AbstractString}

If it detects a julia prompt, it removes it and all lines that do not have it (except for those that belong to the code block).

source


# PromptingTools.remove_templates!Method.
julia
    remove_templates!()

Removes all templates from TEMPLATE_STORE and TEMPLATE_METADATA.

source


# PromptingTools.remove_unsafe_linesMethod.

Iterates over the lines of a string and removes those that contain a package operation or a missing import.

source


# PromptingTools.renderMethod.

Renders provided messaging template (template) under the default schema (PROMPT_SCHEMA).

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractAnthropicSchema,
     messages::Vector{<:AbstractMessage};
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
     tools::Vector{<:Dict{String, <:Any}} = Dict{String, Any}[],
-    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: Past conversation to be included in the beginning of the prompt (for continued conversations).

  • tools: A list of tools to be used in the conversation. Added to the end of the system prompt to enforce its use.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractGoogleSchema,
+    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: Past conversation to be included in the beginning of the prompt (for continued conversations).

  • tools: A list of tools to be used in the conversation. Added to the end of the system prompt to enforce its use.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractGoogleSchema,
     messages::Vector{<:AbstractMessage};
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOllamaManagedSchema,
+    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOllamaManagedSchema,
     messages::Vector{<:AbstractMessage};
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Note: Due to its "managed" nature, at most 2 messages can be provided (system and prompt inputs in the API).

Keyword Arguments

  • conversation: Not allowed for this schema. Provided only for compatibility.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOllamaSchema,
+    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Note: Due to its "managed" nature, at most 2 messages can be provided (system and prompt inputs in the API).

Keyword Arguments

  • conversation: Not allowed for this schema. Provided only for compatibility.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOllamaSchema,
     messages::Vector{<:AbstractMessage};
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOpenAISchema,
+    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(schema::AbstractOpenAISchema,
     messages::Vector{<:AbstractMessage};
     image_detail::AbstractString = "auto",
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • image_detail: Only for UserMessageWithImages. It represents the level of detail to include for images. Can be "auto", "high", or "low".

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(tracer_schema::AbstractTracerSchema,
-    conv::AbstractVector{<:AbstractMessage}; kwargs...)

Passthrough. No changes.

source


# PromptingTools.renderMethod.
julia
render(schema::NoSchema,
+    kwargs...)

Builds a history of the conversation to provide the prompt to the API. All unspecified kwargs are passed as replacements such that =>value in the template.

Keyword Arguments

  • image_detail: Only for UserMessageWithImages. It represents the level of detail to include for images. Can be "auto", "high", or "low".

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

source


# PromptingTools.renderMethod.
julia
render(tracer_schema::AbstractTracerSchema,
+    conv::AbstractVector{<:AbstractMessage}; kwargs...)

Passthrough. No changes.

source


# PromptingTools.renderMethod.
julia
render(schema::NoSchema,
     messages::Vector{<:AbstractMessage};
     conversation::AbstractVector{<:AbstractMessage} = AbstractMessage[],
-    replacement_kwargs...)

Renders a conversation history from a vector of messages with all replacement variables specified in replacement_kwargs.

It is the first pass of the prompt rendering system, and is used by all other schemas.

Keyword Arguments

  • image_detail: Only for UserMessageWithImages. It represents the level of detail to include for images. Can be "auto", "high", or "low".

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

Notes

  • All unspecified kwargs are passed as replacements such that =>value in the template.

  • If a SystemMessage is missing, we inject a default one at the beginning of the conversation.

  • Only one SystemMessage is allowed (ie, cannot mix two conversations different system prompts).

source


# PromptingTools.replace_wordsMethod.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

  • text::AbstractString: The text to be processed.

  • words::Vector{<:AbstractString}: A vector of words to be replaced.

  • replacement::AbstractString="ABC": The replacement string to be used. Defaults to "ABC".

Example

julia
text = "Disney is a great company"
+    replacement_kwargs...)

Renders a conversation history from a vector of messages with all replacement variables specified in replacement_kwargs.

It is the first pass of the prompt rendering system, and is used by all other schemas.

Keyword Arguments

  • image_detail: Only for UserMessageWithImages. It represents the level of detail to include for images. Can be "auto", "high", or "low".

  • conversation: An optional vector of AbstractMessage objects representing the conversation history. If not provided, it is initialized as an empty vector.

Notes

  • All unspecified kwargs are passed as replacements such that =>value in the template.

  • If a SystemMessage is missing, we inject a default one at the beginning of the conversation.

  • Only one SystemMessage is allowed (ie, cannot mix two conversations different system prompts).

source


# PromptingTools.replace_wordsMethod.
julia
replace_words(text::AbstractString, words::Vector{<:AbstractString}; replacement::AbstractString="ABC")

Replace all occurrences of words in words with replacement in text. Useful to quickly remove specific names or entities from a text.

Arguments

  • text::AbstractString: The text to be processed.

  • words::Vector{<:AbstractString}: A vector of words to be replaced.

  • replacement::AbstractString="ABC": The replacement string to be used. Defaults to "ABC".

Example

julia
text = "Disney is a great company"
 replace_words(text, ["Disney", "Snow White", "Mickey Mouse"])
-# Output: "ABC is a great company"

source


# PromptingTools.resize_conversation!Method.
julia
resize_conversation!(conv_history, max_history::Union{Int, Nothing})

Resize the conversation history to a specified maximum length.

This function trims the conv_history to ensure that its size does not exceed max_history. It removes the oldest conversations first if the length of conv_history is greater than max_history.

Arguments

  • conv_history: A vector that stores the history of conversations. Typically, this is PT.CONV_HISTORY.

  • max_history: The maximum number of conversations to retain in the history. If Nothing, the history is not resized.

Returns

The resized conversation history.

Example

julia
resize_conversation!(PT.CONV_HISTORY, PT.MAX_HISTORY_LENGTH)

After the function call, conv_history will contain only the 10 most recent conversations.

This is done automatically by the ai"" macros.

source


# PromptingTools.response_to_messageMethod.
julia
response_to_message(schema::AbstractOpenAISchema,
+# Output: "ABC is a great company"

source


# PromptingTools.resize_conversation!Method.
julia
resize_conversation!(conv_history, max_history::Union{Int, Nothing})

Resize the conversation history to a specified maximum length.

This function trims the conv_history to ensure that its size does not exceed max_history. It removes the oldest conversations first if the length of conv_history is greater than max_history.

Arguments

  • conv_history: A vector that stores the history of conversations. Typically, this is PT.CONV_HISTORY.

  • max_history: The maximum number of conversations to retain in the history. If Nothing, the history is not resized.

Returns

The resized conversation history.

Example

julia
resize_conversation!(PT.CONV_HISTORY, PT.MAX_HISTORY_LENGTH)

After the function call, conv_history will contain only the 10 most recent conversations.

This is done automatically by the ai"" macros.

source


# PromptingTools.response_to_messageMethod.
julia
response_to_message(schema::AbstractOpenAISchema,
     MSG::Type{AIMessage},
     choice,
     resp;
     model_id::AbstractString = "",
     time::Float64 = 0.0,
     run_id::Integer = rand(Int16),
-    sample_id::Union{Nothing, Integer} = nothing)

Utility to facilitate unwrapping of HTTP response to a message type MSG provided for OpenAI-like responses

Note: Extracts finish_reason and log_prob if available in the response.

Arguments

  • schema::AbstractOpenAISchema: The schema for the prompt.

  • MSG::Type{AIMessage}: The message type to be returned.

  • choice: The choice from the response (eg, one of the completions).

  • resp: The response from the OpenAI API.

  • model_id::AbstractString: The model ID to use for generating the response. Defaults to an empty string.

  • time::Float64: The elapsed time for the response. Defaults to 0.0.

  • run_id::Integer: The run ID for the response. Defaults to a random integer.

  • sample_id::Union{Nothing, Integer}: The sample ID for the response (if there are multiple completions). Defaults to nothing.

source


# PromptingTools.response_to_messageMethod.

Utility to facilitate unwrapping of HTTP response to a message type MSG provided. Designed to handle multi-sample completions.

source


# PromptingTools.save_conversationMethod.
julia
save_conversation(io_or_file::Union{IO, AbstractString},
-    messages::AbstractVector{<:AbstractMessage})

Saves provided conversation (messages) to io_or_file. If you need to add some metadata, see save_template.

source


# PromptingTools.save_conversationsMethod.
julia
save_conversations(schema::AbstractPromptSchema, filename::AbstractString,
+    sample_id::Union{Nothing, Integer} = nothing)

Utility to facilitate unwrapping of HTTP response to a message type MSG provided for OpenAI-like responses

Note: Extracts finish_reason and log_prob if available in the response.

Arguments

  • schema::AbstractOpenAISchema: The schema for the prompt.

  • MSG::Type{AIMessage}: The message type to be returned.

  • choice: The choice from the response (eg, one of the completions).

  • resp: The response from the OpenAI API.

  • model_id::AbstractString: The model ID to use for generating the response. Defaults to an empty string.

  • time::Float64: The elapsed time for the response. Defaults to 0.0.

  • run_id::Integer: The run ID for the response. Defaults to a random integer.

  • sample_id::Union{Nothing, Integer}: The sample ID for the response (if there are multiple completions). Defaults to nothing.

source


# PromptingTools.response_to_messageMethod.

Utility to facilitate unwrapping of HTTP response to a message type MSG provided. Designed to handle multi-sample completions.

source


# PromptingTools.save_conversationMethod.
julia
save_conversation(io_or_file::Union{IO, AbstractString},
+    messages::AbstractVector{<:AbstractMessage})

Saves provided conversation (messages) to io_or_file. If you need to add some metadata, see save_template.

source


# PromptingTools.save_conversationsMethod.
julia
save_conversations(schema::AbstractPromptSchema, filename::AbstractString,
     conversations::Vector{<:AbstractVector{<:PT.AbstractMessage}})

Saves provided conversations (vector of vectors of messages) to filename rendered in the particular schema.

Commonly used for finetuning models with schema = ShareGPTSchema()

The format is JSON Lines, where each line is a JSON object representing one provided conversation.

See also: save_conversation

Examples

You must always provide a VECTOR of conversations

julia
messages = AbstractMessage[SystemMessage("System message 1"),
     UserMessage("User message"),
     AIMessage("AI message")]
@@ -800,14 +800,14 @@
 save_conversations(fn, conversation)
 
 # Content of the file (one line for each conversation)
-# {"conversations":[{"value":"System message 1","from":"system"},{"value":"User message","from":"human"},{"value":"AI message","from":"gpt"}]}

source


# PromptingTools.save_templateMethod.
julia
save_template(io_or_file::Union{IO, AbstractString},
+# {"conversations":[{"value":"System message 1","from":"system"},{"value":"User message","from":"human"},{"value":"AI message","from":"gpt"}]}

source


# PromptingTools.save_templateMethod.
julia
save_template(io_or_file::Union{IO, AbstractString},
     messages::AbstractVector{<:AbstractChatMessage};
     content::AbstractString = "Template Metadata",
     description::AbstractString = "",
     version::AbstractString = "1",
-    source::AbstractString = "")

Saves provided messaging template (messages) to io_or_file. Automatically adds metadata based on provided keyword arguments.

source


# PromptingTools.set_preferences!Method.
julia
set_preferences!(pairs::Pair{String, <:Any}...)

Set preferences for PromptingTools. See ?PREFERENCES for more information.

See also: get_preferences

Example

Change your API key and default model:

julia
PromptingTools.set_preferences!("OPENAI_API_KEY" => "key1", "MODEL_CHAT" => "chat1")

source


# PromptingTools.unique_permutationMethod.
julia
unique_permutation(inputs::AbstractVector)

Returns indices of unique items in a vector inputs. Access the unique values as inputs[unique_permutation(inputs)].

source


# PromptingTools.unwrapMethod.

Unwraps the tracer message or tracer-like object, returning the original object.

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,
+    source::AbstractString = "")

Saves provided messaging template (messages) to io_or_file. Automatically adds metadata based on provided keyword arguments.

source


# PromptingTools.set_preferences!Method.
julia
set_preferences!(pairs::Pair{String, <:Any}...)

Set preferences for PromptingTools. See ?PREFERENCES for more information.

See also: get_preferences

Example

Change your API key and default model:

julia
PromptingTools.set_preferences!("OPENAI_API_KEY" => "key1", "MODEL_CHAT" => "chat1")

source


# PromptingTools.unique_permutationMethod.
julia
unique_permutation(inputs::AbstractVector)

Returns indices of unique items in a vector inputs. Access the unique values as inputs[unique_permutation(inputs)].

source


# PromptingTools.unwrapMethod.

Unwraps the tracer message or tracer-like object, returning the original object.

source


# PromptingTools.wrap_stringFunction.
julia
wrap_string(str::String,
     text_width::Int = 20;
-    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.@aai_strMacro.
julia
aai"user_prompt"[model_alias] -> AIMessage

Asynchronous version of @ai_str macro, which will log the result once it's ready.

See also aai!"" if you want an asynchronous reply to the provided message / continue the conversation.

Example

Send asynchronous request to GPT-4, so we don't have to wait for the response: Very practical with slow models, so you can keep working in the meantime.

julia

+    newline::Union{AbstractString, AbstractChar} = '

')

Breaks a string into lines of a given text_width. Optionally, you can specify the newline character or string to use.

Example:

julia
wrap_string("Certainly, here's a function in Julia that will wrap a string according to the specifications:", 10) |> print

source


# PromptingTools.@aai_strMacro.
julia
aai"user_prompt"[model_alias] -> AIMessage

Asynchronous version of @ai_str macro, which will log the result once it's ready.

See also aai!"" if you want an asynchronous reply to the provided message / continue the conversation.

Example

Send asynchronous request to GPT-4, so we don't have to wait for the response: Very practical with slow models, so you can keep working in the meantime.

julia

 **...with some delay...**
 
 **[ Info: Tokens: 29 @ Cost: 0.0011
@@ -816,7 +816,7 @@
 **[ Info: AIMessage> Hello! How can I assist you today?**
 
 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/macros.jl#L99-L116)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/macros.jl#L99-L116)
 
 </div>
 <br>
@@ -834,16 +834,16 @@
 
 # continue the conversation (notice that you can change the model, eg, to more powerful one for better answer)
 ai!"What do you think about that?"gpt4t
-# AIMessage("Considering our previous discussion, I think that...")

Usage Notes

  • This macro should be used when you want to maintain the context of an ongoing conversation (ie, the last ai"" message).

  • It automatically accesses and updates the global conversation history.

  • If no conversation history is found, it raises an assertion error, suggesting to initiate a new conversation using ai"" instead.

Important

Ensure that the conversation history is not too long to maintain relevancy and coherence in the AI's responses. The history length is managed by MAX_HISTORY_LENGTH.

source


# PromptingTools.@ai_strMacro.
julia
ai"user_prompt"[model_alias] -> AIMessage

The ai"" string macro generates an AI response to a given prompt by using aigenerate under the hood.

See also ai!"" if you want to reply to the provided message / continue the conversation.

Arguments

  • user_prompt (String): The input prompt for the AI model.

  • model_alias (optional, any): Provide model alias of the AI model (see MODEL_ALIASES).

Returns

AIMessage corresponding to the input prompt.

Example

julia
result = ai"Hello, how are you?"
+# AIMessage("Considering our previous discussion, I think that...")

Usage Notes

  • This macro should be used when you want to maintain the context of an ongoing conversation (ie, the last ai"" message).

  • It automatically accesses and updates the global conversation history.

  • If no conversation history is found, it raises an assertion error, suggesting to initiate a new conversation using ai"" instead.

Important

Ensure that the conversation history is not too long to maintain relevancy and coherence in the AI's responses. The history length is managed by MAX_HISTORY_LENGTH.

source


# PromptingTools.@ai_strMacro.
julia
ai"user_prompt"[model_alias] -> AIMessage

The ai"" string macro generates an AI response to a given prompt by using aigenerate under the hood.

See also ai!"" if you want to reply to the provided message / continue the conversation.

Arguments

  • user_prompt (String): The input prompt for the AI model.

  • model_alias (optional, any): Provide model alias of the AI model (see MODEL_ALIASES).

Returns

AIMessage corresponding to the input prompt.

Example

julia
result = ai"Hello, how are you?"
 # AIMessage("Hello! I'm an AI assistant, so I don't have feelings, but I'm here to help you. How can I assist you today?")

If you want to interpolate some variables or additional context, simply use string interpolation:

julia
a=1
 result = ai"What is `$a+$a`?"
 # AIMessage("The sum of `1+1` is `2`.")

If you want to use a different model, eg, GPT-4, you can provide its alias as a flag:

julia
result = ai"What is `1.23 * 100 + 1`?"gpt4t
-# AIMessage("The answer is 124.")

source


# PromptingTools.@timeoutMacro.
julia
@timeout(seconds, expr_to_run, expr_when_fails)

Simple macro to run an expression with a timeout of seconds. If the expr_to_run fails to finish in seconds seconds, expr_when_fails is returned.

Example

julia
x = @timeout 1 begin
+# AIMessage("The answer is 124.")

source


# PromptingTools.@timeoutMacro.
julia
@timeout(seconds, expr_to_run, expr_when_fails)

Simple macro to run an expression with a timeout of seconds. If the expr_to_run fails to finish in seconds seconds, expr_when_fails is returned.

Example

julia
x = @timeout 1 begin
     sleep(1.1)
     println("done")
     1
-end "failed"

source


- +end "failed"

source


+ \ No newline at end of file diff --git a/dev/reference_agenttools.html b/dev/reference_agenttools.html index c6309c0f6..ccafa9ba4 100644 --- a/dev/reference_agenttools.html +++ b/dev/reference_agenttools.html @@ -8,16 +8,16 @@ - + - - + + -
Skip to content

Reference for AgentTools

# PromptingTools.Experimental.AgentToolsModule.
julia
AgentTools

Provides Agentic functionality providing lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}
+    
Skip to content

Reference for AgentTools

# PromptingTools.Experimental.AgentToolsModule.
julia
AgentTools

Provides Agentic functionality providing lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.AgentTools.AICallType.
julia
AICall(func::F, args...; kwargs...) where {F<:Function}
 
 AIGenerate(args...; kwargs...)
 AIEmbed(args...; kwargs...)
@@ -32,7 +32,7 @@
 aicall = AIGenerate(:JuliaExpertAsk; ask="xyz", model="abc", api_kwargs=(; temperature=0.1))

Trigger the AICall with run! (it returns the update AICall struct back):

julia
aicall |> run!
 ````
 
-You can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

  • The AICall struct is a key component in building flexible and efficient Agentic pipelines

  • The lazy evaluation model allows for setting up the call parameters in advance and deferring the actual execution until it is explicitly triggered.

  • This struct is particularly useful in scenarios where the timing of AI function execution needs to be deferred or where multiple potential calls need to be prepared and selectively executed.

source


# PromptingTools.Experimental.AgentTools.AICodeFixerType.
julia
AICodeFixer(aicall::AICall, templates::Vector{<:PT.UserMessage}; num_rounds::Int = 3, feedback_func::Function = aicodefixer_feedback; kwargs...)
+You can also use `AICall` as a functor to trigger the AI call with a `UserMessage` or simply the text to send:

julia aicall(UserMessage("Hello, world!")) # Triggers the lazy call result = run!(aicall) # Explicitly runs the AI call ``` This can be used to "reply" to previous message / continue the stored conversation

Notes

  • The AICall struct is a key component in building flexible and efficient Agentic pipelines

  • The lazy evaluation model allows for setting up the call parameters in advance and deferring the actual execution until it is explicitly triggered.

  • This struct is particularly useful in scenarios where the timing of AI function execution needs to be deferred or where multiple potential calls need to be prepared and selectively executed.

source


# PromptingTools.Experimental.AgentTools.AICodeFixerType.
julia
AICodeFixer(aicall::AICall, templates::Vector{<:PT.UserMessage}; num_rounds::Int = 3, feedback_func::Function = aicodefixer_feedback; kwargs...)
 AICodeFixer(aicall::AICall, template::Union{AITemplate, Symbol} = :CodeFixerRCI; kwargs...)

An AIAgent that iteratively evaluates any received Julia code and provides feedback back to the AI model if num_rounds>0. AICodeFixer manages the lifecycle of a code fixing session, including tracking conversation history, rounds of interaction, and applying user feedback through a specialized feedback function.

It integrates with lazy AI call structures like AIGenerate.

The operation is "lazy", ie, the agent is only executed when needed, eg, when run! is called.

Fields

  • call::AICall: The AI call that is being used for code generation or processing, eg, AIGenerate (same as aigenerate but "lazy", ie, called only when needed

  • templates::Union{Symbol, AITemplate, Vector{PT.UserMessage}}: A set of user messages or templates that guide the AI's code fixing process. The first UserMessage is used in the first round of code fixing, the second UserMessage is used for every subsequent iteration.

  • num_rounds::Int: The number of rounds for the code fixing session. Defaults to 3.

  • round_counter::Int: Counter to track the current round of interaction.

  • feedback_func::Function: Function to generate feedback based on the AI's proposed code, defaults to aicodefixer_feedback (modular thanks to type dispatch on AbstractOutcomes)

  • kwargs::NamedTuple: Additional keyword arguments for customizing the AI call.

Note: Any kwargs provided to run!() will be passed to the underlying AICall.

Example

Let's create an AIGenerate call and then pipe it to AICodeFixer to run a few rounds of the coding fixing:

julia
# Create an AIGenerate call
 lazy_call = AIGenerate("Write a function to do XYZ...")
 
@@ -54,7 +54,7 @@
 Feedback: {{feedback}}")]; num_rounds = 2) |> run!
 
 # The result now contains the AI's attempts to fix the code
-preview(result.call.conversation)

Notes

  • AICodeFixer is particularly useful when code is hard to get right in one shot (eg, smaller models, complex syntax)

  • The structure leverages the lazy evaluation model of AICall (/AIGenerate) to efficiently manage AI interactions and be able to repeatedly call it.

  • The run! function executes the AI call and applies the feedback loop for the specified number of rounds, enabling an interactive code fixing process.

source


# PromptingTools.Experimental.AgentTools.RetryConfigType.
julia
RetryConfig

Configuration for self-fixing the AI calls. It includes the following fields:

Fields

  • retries::Int: The number of retries ("fixing rounds") that have been attempted so far.

  • calls::Int: The total number of SUCCESSFULLY generated ai* function calls made so far (across all samples/retry rounds). Ie, if a call fails, because of an API error, it's not counted, because it didn't reach the LLM.

  • max_retries::Int: The maximum number of retries ("fixing rounds") allowed for the AI call. Defaults to 10.

  • max_calls::Int: The maximum number of ai* function calls allowed for the AI call. Defaults to 99.

  • retry_delay::Int: The delay (in seconds) between retry rounds. Defaults to 0s.

  • n_samples::Int: The number of samples to generate in each ai* call round (to increase changes of successful pass). Defaults to 1.

  • scoring::AbstractScoringMethod: The scoring method to use for generating multiple samples. Defaults to UCT(sqrt(2)).

  • ordering::Symbol: The ordering to use for select the best samples. With :PostOrderDFS we prioritize leaves, with :PreOrderDFS we prioritize the root. Defaults to :PostOrderDFS.

  • feedback_inplace::Bool: Whether to provide feedback in previous UserMessage (and remove the past AIMessage) or to create a new UserMessage. Defaults to false.

  • feedback_template::Symbol: Template to use for feedback in place. Defaults to :FeedbackFromEvaluator.

  • temperature::Float64: The temperature to use for sampling. Relevant only if not defined in api_kwargs provided. Defaults to 0.7.

  • catch_errors::Bool: Whether to catch errors during run! of AICall. Saves them in aicall.error. Defaults to false.

source


# PromptingTools.Experimental.AgentTools.SampleNodeType.
julia
SampleNode{T}

A node in the Monte Carlo Tree Search tree.

It's used to hold the data we're trying to optimize/discover (eg, a conversation), the scores from evaluation (wins, visits) and the results of the evaluations upon failure (feedback).

Fields

  • id::UInt16: Unique identifier for the node

  • parent::Union{SampleNode, Nothing}: Parent node that current node was built on

  • children::Vector{SampleNode}: Children nodes

  • wins::Int: Number of successful outcomes

  • visits::Int: Number of condition checks done (eg, losses are checks - wins)

  • data::T: eg, the conversation or some parameter to be optimized

  • feedback::String: Feedback from the evaluation, always a string! Defaults to empty string.

  • success::Union{Nothing, Bool}: Success of the generation and subsequent evaluations, proxy for whether it should be further evaluated. Defaults to nothing.

source


# PromptingTools.Experimental.AgentTools.ThompsonSamplingType.
julia
ThompsonSampling <: AbstractScoringMethod

Implements scoring and selection for Thompson Sampling method. See https://en.wikipedia.org/wiki/Thompson_sampling for more details.

source


# PromptingTools.Experimental.AgentTools.UCTType.
julia
UCT <: AbstractScoringMethod

Implements scoring and selection for UCT (Upper Confidence Bound for Trees) sampling method. See https://en.wikipedia.org/wiki/Monte_Carlo_tree_search#Exploration_and_exploitation for more details.

source


# PromptingTools.Experimental.AgentTools.AIClassifyMethod.
julia
AIClassify(args...; kwargs...)

Creates a lazy instance of aiclassify. It is an instance of AICall with aiclassify as the function.

Use exactly the same arguments and keyword arguments as aiclassify (see ?aiclassify for details).

source


# PromptingTools.Experimental.AgentTools.AIEmbedMethod.
julia
AIEmbed(args...; kwargs...)

Creates a lazy instance of aiembed. It is an instance of AICall with aiembed as the function.

Use exactly the same arguments and keyword arguments as aiembed (see ?aiembed for details).

source


# PromptingTools.Experimental.AgentTools.AIExtractMethod.
julia
AIExtract(args...; kwargs...)

Creates a lazy instance of aiextract. It is an instance of AICall with aiextract as the function.

Use exactly the same arguments and keyword arguments as aiextract (see ?aiextract for details).

source


# PromptingTools.Experimental.AgentTools.AIGenerateMethod.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AIScanMethod.
julia
AIScan(args...; kwargs...)

Creates a lazy instance of aiscan. It is an instance of AICall with aiscan as the function.

Use exactly the same arguments and keyword arguments as aiscan (see ?aiscan for details).

source


# PromptingTools.Experimental.AgentTools.add_feedback!Method.
julia
add_feedback!(
+preview(result.call.conversation)

Notes

  • AICodeFixer is particularly useful when code is hard to get right in one shot (eg, smaller models, complex syntax)

  • The structure leverages the lazy evaluation model of AICall (/AIGenerate) to efficiently manage AI interactions and be able to repeatedly call it.

  • The run! function executes the AI call and applies the feedback loop for the specified number of rounds, enabling an interactive code fixing process.

source


# PromptingTools.Experimental.AgentTools.RetryConfigType.
julia
RetryConfig

Configuration for self-fixing the AI calls. It includes the following fields:

Fields

  • retries::Int: The number of retries ("fixing rounds") that have been attempted so far.

  • calls::Int: The total number of SUCCESSFULLY generated ai* function calls made so far (across all samples/retry rounds). Ie, if a call fails, because of an API error, it's not counted, because it didn't reach the LLM.

  • max_retries::Int: The maximum number of retries ("fixing rounds") allowed for the AI call. Defaults to 10.

  • max_calls::Int: The maximum number of ai* function calls allowed for the AI call. Defaults to 99.

  • retry_delay::Int: The delay (in seconds) between retry rounds. Defaults to 0s.

  • n_samples::Int: The number of samples to generate in each ai* call round (to increase changes of successful pass). Defaults to 1.

  • scoring::AbstractScoringMethod: The scoring method to use for generating multiple samples. Defaults to UCT(sqrt(2)).

  • ordering::Symbol: The ordering to use for select the best samples. With :PostOrderDFS we prioritize leaves, with :PreOrderDFS we prioritize the root. Defaults to :PostOrderDFS.

  • feedback_inplace::Bool: Whether to provide feedback in previous UserMessage (and remove the past AIMessage) or to create a new UserMessage. Defaults to false.

  • feedback_template::Symbol: Template to use for feedback in place. Defaults to :FeedbackFromEvaluator.

  • temperature::Float64: The temperature to use for sampling. Relevant only if not defined in api_kwargs provided. Defaults to 0.7.

  • catch_errors::Bool: Whether to catch errors during run! of AICall. Saves them in aicall.error. Defaults to false.

source


# PromptingTools.Experimental.AgentTools.SampleNodeType.
julia
SampleNode{T}

A node in the Monte Carlo Tree Search tree.

It's used to hold the data we're trying to optimize/discover (eg, a conversation), the scores from evaluation (wins, visits) and the results of the evaluations upon failure (feedback).

Fields

  • id::UInt16: Unique identifier for the node

  • parent::Union{SampleNode, Nothing}: Parent node that current node was built on

  • children::Vector{SampleNode}: Children nodes

  • wins::Int: Number of successful outcomes

  • visits::Int: Number of condition checks done (eg, losses are checks - wins)

  • data::T: eg, the conversation or some parameter to be optimized

  • feedback::String: Feedback from the evaluation, always a string! Defaults to empty string.

  • success::Union{Nothing, Bool}: Success of the generation and subsequent evaluations, proxy for whether it should be further evaluated. Defaults to nothing.

source


# PromptingTools.Experimental.AgentTools.ThompsonSamplingType.
julia
ThompsonSampling <: AbstractScoringMethod

Implements scoring and selection for Thompson Sampling method. See https://en.wikipedia.org/wiki/Thompson_sampling for more details.

source


# PromptingTools.Experimental.AgentTools.UCTType.
julia
UCT <: AbstractScoringMethod

Implements scoring and selection for UCT (Upper Confidence Bound for Trees) sampling method. See https://en.wikipedia.org/wiki/Monte_Carlo_tree_search#Exploration_and_exploitation for more details.

source


# PromptingTools.Experimental.AgentTools.AIClassifyMethod.
julia
AIClassify(args...; kwargs...)

Creates a lazy instance of aiclassify. It is an instance of AICall with aiclassify as the function.

Use exactly the same arguments and keyword arguments as aiclassify (see ?aiclassify for details).

source


# PromptingTools.Experimental.AgentTools.AIEmbedMethod.
julia
AIEmbed(args...; kwargs...)

Creates a lazy instance of aiembed. It is an instance of AICall with aiembed as the function.

Use exactly the same arguments and keyword arguments as aiembed (see ?aiembed for details).

source


# PromptingTools.Experimental.AgentTools.AIExtractMethod.
julia
AIExtract(args...; kwargs...)

Creates a lazy instance of aiextract. It is an instance of AICall with aiextract as the function.

Use exactly the same arguments and keyword arguments as aiextract (see ?aiextract for details).

source


# PromptingTools.Experimental.AgentTools.AIGenerateMethod.
julia
AIGenerate(args...; kwargs...)

Creates a lazy instance of aigenerate. It is an instance of AICall with aigenerate as the function.

Use exactly the same arguments and keyword arguments as aigenerate (see ?aigenerate for details).

source


# PromptingTools.Experimental.AgentTools.AIScanMethod.
julia
AIScan(args...; kwargs...)

Creates a lazy instance of aiscan. It is an instance of AICall with aiscan as the function.

Use exactly the same arguments and keyword arguments as aiscan (see ?aiscan for details).

source


# PromptingTools.Experimental.AgentTools.add_feedback!Method.
julia
add_feedback!(
     conversation::AbstractVector{<:PT.AbstractMessage}, sample::SampleNode; feedback_inplace::Bool = false,
     feedback_template::Symbol = :FeedbackFromEvaluator)

Adds formatted feedback to the conversation based on the sample node feedback (and its ancestors).

Arguments

  • conversation::AbstractVector{<:PT.AbstractMessage}: The conversation to add the feedback to.

  • sample::SampleNode: The sample node to extract the feedback from.

  • feedback_inplace::Bool=false: If true, it will add the feedback to the last user message inplace (and pop the last AIMessage). Otherwise, it will append the feedback as a new message.

  • feedback_template::Symbol=:FeedbackFromEvaluator: The template to use for the feedback message. It must be a valid AITemplate name.

Example

julia
sample = SampleNode(; data = nothing, feedback = "Feedback X")
 conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")]
@@ -62,14 +62,14 @@
 conversation[end].content == "### Feedback from Evaluator\nFeedback X\n"
 
 Inplace feedback:

julia conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample; feedback_inplace = true) conversation[end].content == "I say hi!\n\n### Feedback from Evaluator\nFeedback X\n"


-Sample with ancestors with feedback:

julia sample_p = SampleNode(; data = nothing, feedback = "\nFeedback X") sample = expand!(sample_p, nothing) sample.feedback = "\nFeedback Y" conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample)

conversation[end].content == "### Feedback from Evaluator\n\nFeedback X\n–––––\n\nFeedback Y\n" ```

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackMethod.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)
+Sample with ancestors with feedback:

julia sample_p = SampleNode(; data = nothing, feedback = "\nFeedback X") sample = expand!(sample_p, nothing) sample.feedback = "\nFeedback Y" conversation = [PT.UserMessage("I say hi!"), PT.AIMessage(; content = "I say hi!")] conversation = AT.add_feedback!(conversation, sample)

conversation[end].content == "### Feedback from Evaluator\n\nFeedback X\n–––––\n\nFeedback Y\n" ```

source


# PromptingTools.Experimental.AgentTools.aicodefixer_feedbackMethod.
julia
aicodefixer_feedback(cb::AICode; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(conversation::AbstractVector{<:PT.AbstractMessage}; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(msg::PT.AIMessage; max_length::Int = 512) -> NamedTuple(; feedback::String)
 aicodefixer_feedback(aicall::AICall; max_length::Int = 512) -> NamedTuple(; feedback::String)

Generate feedback for an AI code fixing session based on the AICode block /or conversation history (that will be used to extract and evaluate a code block). Function is designed to be extensible for different types of feedback and code evaluation outcomes.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

Individual feedback functions are dispatched on different subtypes of AbstractCodeOutcome and can be extended/overwritten to provide more detailed feedback.

See also: AIGenerate, AICodeFixer

Arguments

  • cb::AICode: AICode block to evaluate and provide feedback on.

  • max_length::Int=512: An optional argument that specifies the maximum length of the feedback message.

Returns

  • NamedTuple: A feedback message as a kwarg in NamedTuple based on the analysis of the code provided in the conversation.

Example

julia
cb = AICode(msg; skip_unsafe = true, capture_stdout = true)
 new_kwargs = aicodefixer_feedback(cb)
 
 new_kwargs = aicodefixer_feedback(msg)
-new_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

  • CodeEmpty: No code found in the message.

  • CodeFailedParse: Code parsing error.

  • CodeFailedEval: Runtime evaluation error.

  • CodeFailedTimeout: Code execution timed out.

  • CodeSuccess: Successful code execution.

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(
+new_kwargs = aicodefixer_feedback(conversation)

Notes

This function is part of the AI code fixing system, intended to interact with code in AIMessage and provide feedback on improving it.

The highlevel wrapper accepts a conversation and returns new kwargs for the AICall.

It dispatches for the code feedback based on the subtypes of AbstractCodeOutcome below:

  • CodeEmpty: No code found in the message.

  • CodeFailedParse: Code parsing error.

  • CodeFailedEval: Runtime evaluation error.

  • CodeFailedTimeout: Code execution timed out.

  • CodeSuccess: Successful code execution.

You can override the individual methods to customize the feedback.

source


# PromptingTools.Experimental.AgentTools.airetry!Function.
julia
airetry!(
     f_cond::Function, aicall::AICallBlock, feedback::Union{AbstractString, Function} = "";
     verbose::Bool = true, throw::Bool = false, evaluate_all::Bool = true, feedback_expensive::Bool = false,
     max_retries::Union{Nothing, Int} = nothing, retry_delay::Union{Nothing, Int} = nothing)

Evaluates the condition f_cond on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback (string or function) to aicall. That's why it's mutating. It will retry maximum max_retries times, with throw=true, an error will be thrown if the condition is not met after max_retries retries.

Function signatures

  • f_cond(aicall::AICallBlock) -> Bool, ie, it must accept the aicall object and return a boolean value.

  • feedback can be a string or feedback(aicall::AICallBlock) -> String, ie, it must accept the aicall object and return a string.

You can leverage the last_message, last_output, and AICode functions to access the last message, last output and execute code blocks in the conversation, respectively. See examples below.

Good Use Cases

  • Retry with API failures/drops (add retry_delay=2 to wait 2s between retries)

  • Check the output format / type / length / etc

  • Check the output with aiclassify call (LLM Judge) to catch unsafe/NSFW/out-of-scope content

  • Provide hints to the model to guide it to the correct answer

Gotchas

  • If controlling keyword arguments are set to nothing, they will fall back to the default values in aicall.config. You can override them by passing the keyword arguments explicitly.

  • If there multiple airetry! checks, they are evaluted sequentially. As long as throw==false, they will be all evaluated even if they failed previous checks.

  • Only samples which passed previous evaluations are evaluated (sample.success is true). If there are no successful samples, the function will evaluate only the active sample (aicall.active_sample_id) and nothing else.

  • Feedback from all "ancestor" evaluations is added upon retry, not feedback from the "sibblings" or other branches. To have only ONE long BRANCH (no sibblings), make sure to keep RetryConfig(; n_samples=1). That way the model will always see ALL previous feedback.

  • We implement a version of Monte Carlo Tree Search (MCTS) to always pick the most promising sample to restart from (you can tweak the options in RetryConfig to change the behaviour).

  • For large number of parallel branches (ie, "shallow and wide trees"), you might benefit from switching scoring to scoring=ThompsonSampling() (similar to how Bandit algorithms work).

  • Open-source/local models can struggle with too long conversation, you might want to experiment with in-place feedback (set RetryConfig(; feedback_inplace=true)).

Arguments

  • f_cond::Function: A function that accepts the aicall object and returns a boolean value. Retry will be attempted if the condition is not met (f_cond -> false).

  • aicall::AICallBlock: The aicall object to evaluate the condition on.

  • feedback::Union{AbstractString, Function}: Feedback to provide if the condition is not met. If a function is provided, it must accept the aicall object as the only argument and return a string.

  • verbose::Integer=1: A verbosity level for logging the retry attempts and warnings. A higher value indicates more detailed logging.

  • throw::Bool=false: If true, it will throw an error if the function f_cond does not return true after max_retries retries.

  • evaluate_all::Bool=false: If true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample.

  • feedback_expensive::Bool=false: If false, it will provide feedback to all samples that fail the condition. If feedback function is expensive to call (eg, another ai* function), set this to true and feedback will be provided only to the sample we will retry from.

  • max_retries::Union{Nothing, Int}=nothing: Maximum number of retries. If not provided, it will fall back to the max_retries in aicall.config.

  • retry_delay::Union{Nothing, Int}=nothing: Delay between retries in seconds. If not provided, it will fall back to the retry_delay in aicall.config.

Returns

  • The aicall object with the updated conversation, and samples (saves the evaluations and their scores/feedback).

Example

You can use airetry! to catch API errors in run! and auto-retry the call. RetryConfig is how you influence all the subsequent retry behaviours - see ?RetryConfig for more details.

julia
# API failure because of a non-existent model
@@ -232,7 +232,7 @@
 ## ID: 32991, Guess: 50
 ## ID: 32991, Guess: 35
 ## ID: 32991, Guess: 33
-## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.backpropagate!Method.

Provides scores for a given node (and all its ancestors) based on the evaluation (wins, visits).

source


# PromptingTools.Experimental.AgentTools.beta_sampleMethod.
julia
beta_sample::Real, β::Real)

Approximates a sample from the Beta distribution by generating two independent Gamma distributed samples and using their ratio.

source


# PromptingTools.Experimental.AgentTools.collect_all_feedbackMethod.

Collects all feedback from the node and its ancestors (parents). Returns a string separated by separator.

source


# PromptingTools.Experimental.AgentTools.error_feedbackMethod.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


# PromptingTools.Experimental.AgentTools.evaluate_condition!Function.
julia
evaluate_condition!(f_cond::Function, aicall::AICallBlock,
+## etc...

Note that if there are multiple "branches" the model will see only the feedback of its own and its ancestors not the other "branches". If you wanted to provide ALL feedback, set RetryConfig(; n_samples=1) to remove any "branching". It fixing will be done sequentially in one conversation and the model will see all feedback (less powerful if the model falls into a bad state). Alternatively, you can tweak the feedback function.

See Also

References: airetry is inspired by the Language Agent Tree Search paper and by DSPy Assertions paper.

source


# PromptingTools.Experimental.AgentTools.backpropagate!Method.

Provides scores for a given node (and all its ancestors) based on the evaluation (wins, visits).

source


# PromptingTools.Experimental.AgentTools.beta_sampleMethod.
julia
beta_sample::Real, β::Real)

Approximates a sample from the Beta distribution by generating two independent Gamma distributed samples and using their ratio.

source


# PromptingTools.Experimental.AgentTools.collect_all_feedbackMethod.

Collects all feedback from the node and its ancestors (parents). Returns a string separated by separator.

source


# PromptingTools.Experimental.AgentTools.error_feedbackMethod.
julia
error_feedback(e::Any; max_length::Int = 512)

Set of specialized methods to provide feedback on different types of errors (e).

source


# PromptingTools.Experimental.AgentTools.evaluate_condition!Function.
julia
evaluate_condition!(f_cond::Function, aicall::AICallBlock,
     feedback::Union{AbstractString, Function} = "";
     evaluate_all::Bool = true, feedback_expensive::Bool = false)

Evalutes the condition f_cond (must return Bool) on the aicall object. If the condition is not met, it will return the best sample to retry from and provide feedback.

Mutating as the results are saved in aicall.samples

If evaluate_all is true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample..

For f_cond and feedback functions, you can use the last_message and last_output utilities to access the last message and last output in the conversation, respectively.

Arguments

  • f_cond::Function: A function that accepts the aicall object and returns a boolean value. Retry will be attempted if the condition is not met (f_cond -> false).

  • aicall::AICallBlock: The aicall object to evaluate the condition on.

  • feedback::Union{AbstractString, Function}: Feedback to provide if the condition is not met. If a function is provided, it must accept the aicall object as the only argument and return a string.

  • evaluate_all::Bool=false: If true, it will evaluate all the "successful" samples in the aicall object. Otherwise, it will only evaluate the active sample.

  • feedback_expensive::Bool=false: If false, it will provide feedback to all samples that fail the condition. If feedback function is expensive to call (eg, another ai* function), set this to true and feedback will be provided only to the sample we will retry from.

Returns

  • a tuple (condition_passed, sample), where condition_passed is a boolean indicating whether the condition was met, and sample is the best sample to retry from.

Example

julia
# Mimic AIGenerate run!
 aicall = AIGenerate("Say hi!"; config = RetryConfig(; n_samples = 2))
@@ -245,11 +245,11 @@
 # Checks:
 cond == true
 node == sample
-node.wins == 1

With feedback: ```julia

Mimic AIGenerate run with feedback

aicall = AIGenerate( :BlankSystemUser; system = "a", user = "b") sample = expand!(aicall.samples, aicall.conversation; success = true) aicall.active_sample_id = sample.id

Evaluate

cond, node = AT.evaluate_condition!( x -> occursin("NOTFOUND", last_output(x)), aicall, "Feedback X") cond == false # fail sample == node # same node (no other choice) node.wins == 0 node.feedback == " Feedback X"

source


# PromptingTools.Experimental.AgentTools.expand!Method.

Expands the tree with a new node from parent using the given data and success.

source


# PromptingTools.Experimental.AgentTools.extract_configMethod.

Extracts config::RetryConfig from kwargs and returns the rest of the kwargs.

source


# PromptingTools.Experimental.AgentTools.find_nodeMethod.

Finds a node with a given id in the tree starting from node.

source


# PromptingTools.Experimental.AgentTools.gamma_sampleMethod.
julia
gamma_sample::Real, θ::Real)

Approximates a sample from the Gamma distribution using the Marsaglia and Tsang method.

source


# PromptingTools.Experimental.AgentTools.print_samplesMethod.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.Experimental.AgentTools.remove_used_kwargsMethod.

Removes the kwargs that have already been used in the conversation. Returns NamedTuple.

source


# PromptingTools.Experimental.AgentTools.reset_success!Function.

Sets the success field of all nodes in the tree to success value.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(codefixer::AICodeFixer; verbose::Int = 1, max_conversation_length::Int = 32000, run_kwargs...)

Executes the code fixing process encapsulated by the AICodeFixer instance. This method iteratively refines and fixes code by running the AI call in a loop for a specified number of rounds, using feedback from the code evaluation (aicodefixer_feedback) to improve the outcome in each iteration.

Arguments

  • codefixer::AICodeFixer: An instance of AICodeFixer containing the AI call, templates, and settings for the code fixing session.

  • verbose::Int=1: Verbosity level for logging. A higher value indicates more detailed logging.

  • max_conversation_length::Int=32000: Maximum length in characters for the conversation history to keep it within manageable limits, especially for large code fixing sessions.

  • num_rounds::Union{Nothing, Int}=nothing: Number of additional rounds for the code fixing session. If nothing, the value from the AICodeFixer instance is used.

  • run_kwargs...: Additional keyword arguments that are passed to the AI function.

Returns

  • AICodeFixer: The updated AICodeFixer instance with the results of the code fixing session.

Usage

julia
aicall = AICall(aigenerate, schema=mySchema, conversation=myConversation)
+node.wins == 1

With feedback: ```julia

Mimic AIGenerate run with feedback

aicall = AIGenerate( :BlankSystemUser; system = "a", user = "b") sample = expand!(aicall.samples, aicall.conversation; success = true) aicall.active_sample_id = sample.id

Evaluate

cond, node = AT.evaluate_condition!( x -> occursin("NOTFOUND", last_output(x)), aicall, "Feedback X") cond == false # fail sample == node # same node (no other choice) node.wins == 0 node.feedback == " Feedback X"

source


# PromptingTools.Experimental.AgentTools.expand!Method.

Expands the tree with a new node from parent using the given data and success.

source


# PromptingTools.Experimental.AgentTools.extract_configMethod.

Extracts config::RetryConfig from kwargs and returns the rest of the kwargs.

source


# PromptingTools.Experimental.AgentTools.find_nodeMethod.

Finds a node with a given id in the tree starting from node.

source


# PromptingTools.Experimental.AgentTools.gamma_sampleMethod.
julia
gamma_sample::Real, θ::Real)

Approximates a sample from the Gamma distribution using the Marsaglia and Tsang method.

source


# PromptingTools.Experimental.AgentTools.print_samplesMethod.

Pretty prints the samples tree starting from node. Usually, node is the root of the tree. Example: print_samples(aicall.samples).

source


# PromptingTools.Experimental.AgentTools.remove_used_kwargsMethod.

Removes the kwargs that have already been used in the conversation. Returns NamedTuple.

source


# PromptingTools.Experimental.AgentTools.reset_success!Function.

Sets the success field of all nodes in the tree to success value.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(codefixer::AICodeFixer; verbose::Int = 1, max_conversation_length::Int = 32000, run_kwargs...)

Executes the code fixing process encapsulated by the AICodeFixer instance. This method iteratively refines and fixes code by running the AI call in a loop for a specified number of rounds, using feedback from the code evaluation (aicodefixer_feedback) to improve the outcome in each iteration.

Arguments

  • codefixer::AICodeFixer: An instance of AICodeFixer containing the AI call, templates, and settings for the code fixing session.

  • verbose::Int=1: Verbosity level for logging. A higher value indicates more detailed logging.

  • max_conversation_length::Int=32000: Maximum length in characters for the conversation history to keep it within manageable limits, especially for large code fixing sessions.

  • num_rounds::Union{Nothing, Int}=nothing: Number of additional rounds for the code fixing session. If nothing, the value from the AICodeFixer instance is used.

  • run_kwargs...: Additional keyword arguments that are passed to the AI function.

Returns

  • AICodeFixer: The updated AICodeFixer instance with the results of the code fixing session.

Usage

julia
aicall = AICall(aigenerate, schema=mySchema, conversation=myConversation)
 codefixer = AICodeFixer(aicall, myTemplates; num_rounds=5)
-result = run!(codefixer, verbose=2)

Notes

  • The run! method drives the core logic of the AICodeFixer, iterating through rounds of AI interactions to refine and fix code.

  • In each round, it applies feedback based on the current state of the conversation, allowing the AI to respond more effectively.

  • The conversation history is managed to ensure it stays within the specified max_conversation_length, keeping the AI's focus on relevant parts of the conversation.

  • This iterative process is essential for complex code fixing tasks where multiple interactions and refinements are required to achieve the desired outcome.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(aicall::AICallBlock; verbose::Int = 1, catch_errors::Bool = false, return_all::Bool = true, kwargs...)

Executes the AI call wrapped by an AICallBlock instance. This method triggers the actual communication with the AI model and processes the response based on the provided conversation context and parameters.

Note: Currently return_all must always be set to true.

Arguments

  • aicall::AICallBlock: An instance of AICallBlock which encapsulates the AI function call along with its context and parameters (eg, AICall, AIGenerate)

  • verbose::Integer=1: A verbosity level for logging. A higher value indicates more detailed logging.

  • catch_errors::Union{Nothing, Bool}=nothing: A flag to indicate whether errors should be caught and saved to aicall.error. If nothing, it defaults to aicall.config.catch_errors.

  • return_all::Bool=true: A flag to indicate whether the whole conversation from the AI call should be returned. It should always be true.

  • kwargs...: Additional keyword arguments that are passed to the AI function.

Returns

  • AICallBlock: The same AICallBlock instance, updated with the results of the AI call. This includes updated conversation, success status, and potential error information.

Example

julia
aicall = AICall(aigenerate)
+result = run!(codefixer, verbose=2)

Notes

  • The run! method drives the core logic of the AICodeFixer, iterating through rounds of AI interactions to refine and fix code.

  • In each round, it applies feedback based on the current state of the conversation, allowing the AI to respond more effectively.

  • The conversation history is managed to ensure it stays within the specified max_conversation_length, keeping the AI's focus on relevant parts of the conversation.

  • This iterative process is essential for complex code fixing tasks where multiple interactions and refinements are required to achieve the desired outcome.

source


# PromptingTools.Experimental.AgentTools.run!Method.
julia
run!(aicall::AICallBlock; verbose::Int = 1, catch_errors::Bool = false, return_all::Bool = true, kwargs...)

Executes the AI call wrapped by an AICallBlock instance. This method triggers the actual communication with the AI model and processes the response based on the provided conversation context and parameters.

Note: Currently return_all must always be set to true.

Arguments

  • aicall::AICallBlock: An instance of AICallBlock which encapsulates the AI function call along with its context and parameters (eg, AICall, AIGenerate)

  • verbose::Integer=1: A verbosity level for logging. A higher value indicates more detailed logging.

  • catch_errors::Union{Nothing, Bool}=nothing: A flag to indicate whether errors should be caught and saved to aicall.error. If nothing, it defaults to aicall.config.catch_errors.

  • return_all::Bool=true: A flag to indicate whether the whole conversation from the AI call should be returned. It should always be true.

  • kwargs...: Additional keyword arguments that are passed to the AI function.

Returns

  • AICallBlock: The same AICallBlock instance, updated with the results of the AI call. This includes updated conversation, success status, and potential error information.

Example

julia
aicall = AICall(aigenerate)
 run!(aicall)

Alternatively, you can trigger the run! call by using the AICall as a functor and calling it with a string or a UserMessage:

julia
aicall = AICall(aigenerate)
-aicall("Say hi!")

Notes

  • The run! method is a key component of the lazy evaluation model in AICall. It allows for the deferred execution of AI function calls, providing flexibility in how and when AI interactions are conducted.

  • The method updates the AICallBlock instance with the outcome of the AI call, including any generated responses, success or failure status, and error information if an error occurred.

  • This method is essential for scenarios where AI interactions are based on dynamic or evolving contexts, as it allows for real-time updates and responses based on the latest information.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the ThomsonSampling method, similar to Bandit algorithms.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the UCT (Upper Confidence Bound for Trees) method.

source


# PromptingTools.Experimental.AgentTools.select_bestFunction.
julia
select_best(node::SampleNode, scoring::AbstractScoringMethod = UCT();
+aicall("Say hi!")

Notes

  • The run! method is a key component of the lazy evaluation model in AICall. It allows for the deferred execution of AI function calls, providing flexibility in how and when AI interactions are conducted.

  • The method updates the AICallBlock instance with the outcome of the AI call, including any generated responses, success or failure status, and error information if an error occurred.

  • This method is essential for scenarios where AI interactions are based on dynamic or evolving contexts, as it allows for real-time updates and responses based on the latest information.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the ThomsonSampling method, similar to Bandit algorithms.

source


# PromptingTools.Experimental.AgentTools.scoreMethod.

Scores a node using the UCT (Upper Confidence Bound for Trees) method.

source


# PromptingTools.Experimental.AgentTools.select_bestFunction.
julia
select_best(node::SampleNode, scoring::AbstractScoringMethod = UCT();
     ordering::Symbol = :PostOrderDFS)

Selects the best node from the tree using the given scoring (UCT or ThompsonSampling). Defaults to UCT. Thompson Sampling is more random with small samples, while UCT stabilizes much quicker thanks to looking at parent nodes as well.

Ordering can be either :PreOrderDFS or :PostOrderDFS. Defaults to :PostOrderDFS, which favors the leaves (end points of the tree).

Example

Compare the different scoring methods:

julia
# Set up mock samples and scores
 data = PT.AbstractMessage[]
 root = SampleNode(; data)
@@ -280,9 +280,9 @@
 ## SampleNode(id: 13184, stats: 2/3, score: 0.6, length: 0)
 ## ├─ SampleNode(id: 26078, stats: 2/2, score: 0.93, length: 0)
 ## │  └─ SampleNode(id: 29826, stats: 1/1, score: 0.22, length: 0)
-## └─ SampleNode(id: 39931, stats: 0/1, score: 0.84, length: 0)

source


# PromptingTools.Experimental.AgentTools.split_multi_samplesMethod.

If the conversation has multiple AIMessage samples, split them into separate conversations with the common past.

source


# PromptingTools.Experimental.AgentTools.truncate_conversationMethod.
julia
truncate_conversation(conversation::AbstractVector{<:PT.AbstractMessage};
-    max_conversation_length::Int = 32000)

Truncates a given conversation to a max_conversation_length characters by removing messages "in the middle". It tries to retain the original system+user message and also the most recent messages.

Practically, if a conversation is too long, it will start by removing the most recent message EXCEPT for the last two (assumed to be the last AIMessage with the code and UserMessage with the feedback

Arguments

max_conversation_length is in characters; assume c. 2-3 characters per LLM token, so 32000 should correspond to 16K context window.

source


# PromptingTools.Experimental.AgentTools.unwrap_aicall_argsMethod.

Unwraps the arguments for AICall and returns the schema and conversation (if provided). Expands any provided AITemplate.

source


# PromptingTools.last_messageMethod.

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source


- +## └─ SampleNode(id: 39931, stats: 0/1, score: 0.84, length: 0)

source


# PromptingTools.Experimental.AgentTools.split_multi_samplesMethod.

If the conversation has multiple AIMessage samples, split them into separate conversations with the common past.

source


# PromptingTools.Experimental.AgentTools.truncate_conversationMethod.
julia
truncate_conversation(conversation::AbstractVector{<:PT.AbstractMessage};
+    max_conversation_length::Int = 32000)

Truncates a given conversation to a max_conversation_length characters by removing messages "in the middle". It tries to retain the original system+user message and also the most recent messages.

Practically, if a conversation is too long, it will start by removing the most recent message EXCEPT for the last two (assumed to be the last AIMessage with the code and UserMessage with the feedback

Arguments

max_conversation_length is in characters; assume c. 2-3 characters per LLM token, so 32000 should correspond to 16K context window.

source


# PromptingTools.Experimental.AgentTools.unwrap_aicall_argsMethod.

Unwraps the arguments for AICall and returns the schema and conversation (if provided). Expands any provided AITemplate.

source


# PromptingTools.last_messageMethod.

Helpful accessor for AICall blocks. Returns the last message in the conversation.

source


# PromptingTools.last_outputMethod.

Helpful accessor for AICall blocks. Returns the last output in the conversation (eg, the string/data in the last message).

source


+ \ No newline at end of file diff --git a/dev/reference_apitools.html b/dev/reference_apitools.html index 4580988e9..7902768b0 100644 --- a/dev/reference_apitools.html +++ b/dev/reference_apitools.html @@ -8,24 +8,24 @@ - + - - + +
Skip to content

Reference for APITools

# PromptingTools.Experimental.APITools.create_websearchMethod.
julia
create_websearch(query::AbstractString;
     api_key::AbstractString,
-    search_depth::AbstractString = "basic")

Arguments

  • query::AbstractString: The query to search for.

  • api_key::AbstractString: The API key to use for the search. Get an API key from Tavily.

  • search_depth::AbstractString: The depth of the search. Can be either "basic" or "advanced". Default is "basic". Advanced search calls equal to 2 requests.

  • include_answer::Bool: Whether to include the answer in the search results. Default is false.

  • include_raw_content::Bool: Whether to include the raw content in the search results. Default is false.

  • max_results::Integer: The maximum number of results to return. Default is 5.

  • include_images::Bool: Whether to include images in the search results. Default is false.

  • include_domains::AbstractVector{<:AbstractString}: A list of domains to include in the search results. Default is an empty list.

  • exclude_domains::AbstractVector{<:AbstractString}: A list of domains to exclude from the search results. Default is an empty list.

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


# PromptingTools.Experimental.APITools.tavily_apiMethod.
julia
tavily_api(;
+    search_depth::AbstractString = "basic")

Arguments

  • query::AbstractString: The query to search for.

  • api_key::AbstractString: The API key to use for the search. Get an API key from Tavily.

  • search_depth::AbstractString: The depth of the search. Can be either "basic" or "advanced". Default is "basic". Advanced search calls equal to 2 requests.

  • include_answer::Bool: Whether to include the answer in the search results. Default is false.

  • include_raw_content::Bool: Whether to include the raw content in the search results. Default is false.

  • max_results::Integer: The maximum number of results to return. Default is 5.

  • include_images::Bool: Whether to include images in the search results. Default is false.

  • include_domains::AbstractVector{<:AbstractString}: A list of domains to include in the search results. Default is an empty list.

  • exclude_domains::AbstractVector{<:AbstractString}: A list of domains to exclude from the search results. Default is an empty list.

Example

julia
r = create_websearch("Who is King Charles?")

Even better, you can get not just the results but also the answer:

julia
r = create_websearch("Who is King Charles?"; include_answer = true)

See Rest API documentation for more information.

source


# PromptingTools.Experimental.APITools.tavily_apiMethod.
julia
tavily_api(;
     api_key::AbstractString,
     endpoint::String = "search",
     url::AbstractString = "https://api.tavily.com",
     http_kwargs::NamedTuple = NamedTuple(),
-    kwargs...)

Sends API requests to Tavily and returns the response.

source


- + kwargs...)

Sends API requests to Tavily and returns the response.

source


+ \ No newline at end of file diff --git a/dev/reference_experimental.html b/dev/reference_experimental.html index 020f570d5..2fe5af466 100644 --- a/dev/reference_experimental.html +++ b/dev/reference_experimental.html @@ -8,17 +8,17 @@ - + - - + + -
Skip to content

Reference for Experimental Module

Note: This module is experimental and may change in future releases. The intention is for the functionality to be moved to separate packages over time.

# PromptingTools.ExperimentalModule.
julia
Experimental

This module is for experimental code that is not yet ready for production. It is not included in the main module, so it must be explicitly imported.

Contains:

  • RAGTools: Retrieval-Augmented Generation (RAG) functionality.

  • AgentTools: Agentic functionality - lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

  • APITools: APIs to complement GenAI workflows (eg, Tavily Search API).

source


- +
Skip to content

Reference for Experimental Module

Note: This module is experimental and may change in future releases. The intention is for the functionality to be moved to separate packages over time.

# PromptingTools.ExperimentalModule.
julia
Experimental

This module is for experimental code that is not yet ready for production. It is not included in the main module, so it must be explicitly imported.

Contains:

  • RAGTools: Retrieval-Augmented Generation (RAG) functionality.

  • AgentTools: Agentic functionality - lazy calls for building pipelines (eg, AIGenerate) and AICodeFixer.

  • APITools: APIs to complement GenAI workflows (eg, Tavily Search API).

source


+ \ No newline at end of file diff --git a/dev/reference_ragtools.html b/dev/reference_ragtools.html index 88d5fb7f4..a4ce6bfa4 100644 --- a/dev/reference_ragtools.html +++ b/dev/reference_ragtools.html @@ -8,16 +8,16 @@ - + - - + + -
Skip to content

Reference for RAGTools

# PromptingTools.Experimental.RAGToolsModule.
julia
RAGTools

Provides Retrieval-Augmented Generation (RAG) functionality.

Requires: LinearAlgebra, SparseArrays, Unicode, PromptingTools for proper functionality.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.RAGTools.AbstractCandidateChunksType.
julia
AbstractCandidateChunks

Abstract type for storing candidate chunks, ie, references to items in a AbstractChunkIndex.

Return type from find_closest and find_tags functions.

Required Fields

  • index_id::Symbol: the id of the index from which the candidates are drawn

  • positions::Vector{Int}: the positions of the candidates in the index

  • scores::Vector{Float32}: the similarity scores of the candidates from the query (higher is better)

source


# PromptingTools.Experimental.RAGTools.AbstractChunkIndexType.
julia
AbstractChunkIndex <: AbstractDocumentIndex

Main abstract type for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Required Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • embeddings::Union{Nothing, Matrix{<:Real}}: for semantic search

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

source


# PromptingTools.Experimental.RAGTools.AbstractGeneratorType.
julia
AbstractGenerator <: AbstractGenerationMethod

Abstract type for generating an answer with generate! (use to change the process / return type of generate).

Required Fields

  • contexter::AbstractContextBuilder: the context building method, dispatching `build_context!

  • answerer::AbstractAnswerer: the answer generation method, dispatching answer!

  • refiner::AbstractRefiner: the answer refining method, dispatching refine!

  • postprocessor::AbstractPostprocessor: the postprocessing method, dispatching postprocess!

source


# PromptingTools.Experimental.RAGTools.AbstractIndexBuilderType.
julia
AbstractIndexBuilder

Abstract type for building an index with build_index (use to change the process / return type of build_index).

Required Fields

  • chunker::AbstractChunker: the chunking method, dispatching get_chunks

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings

  • tagger::AbstractTagger: the tagging method, dispatching get_tags

source


# PromptingTools.Experimental.RAGTools.AbstractMultiIndexType.
julia
AbstractMultiIndex <: AbstractDocumentIndex

Experimental abstract type for storing multiple document indexes. Not yet implemented.

source


# PromptingTools.Experimental.RAGTools.AbstractRetrieverType.
julia
AbstractRetriever <: AbstractRetrievalMethod

Abstract type for retrieving chunks from an index with retrieve (use to change the process / return type of retrieve).

Required Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags

  • reranker::AbstractReranker: the reranking method, dispatching rerank

source


# PromptingTools.Experimental.RAGTools.AdvancedGeneratorType.
julia
AdvancedGenerator <: AbstractGenerator

Default implementation for generate!. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, SimpleRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.AdvancedRetrieverType.
julia
AdvancedRetriever <: AbstractRetriever

Dispatch for retrieve with advanced retrieval methods to improve result quality. Compared to SimpleRetriever, it adds rephrasing the query and reranking the results.

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses HyDERephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses BatchEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses NoProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses CohereReranker

source


# PromptingTools.Experimental.RAGTools.AllTagFilterType.
julia
AllTagFilter <: AbstractTagFilter

Finds the chunks that have ALL OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.AnnotatedNodeType.
julia
AnnotatedNode{T}  <: AbstractAnnotatedNode

A node to add annotations to the generated answer in airag

Annotations can be: sources, scores, whether its supported or not by the context, etc.

Fields

  • group_id::Int: Unique identifier for the same group of nodes (eg, different lines of the same code block)

  • parent::Union{AnnotatedNode, Nothing}: Parent node that current node was built on

  • children::Vector{AnnotatedNode}: Children nodes

  • `score::

source


# PromptingTools.Experimental.RAGTools.AnyTagFilterType.
julia
AnyTagFilter <: AbstractTagFilter

Finds the chunks that have ANY OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.BM25SimilarityType.
julia
BM25Similarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the BM25 similarity between the query and the chunks' embeddings in binary form.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.BatchEmbedderType.
julia
BatchEmbedder <: AbstractEmbedder

Default embedder for get_embeddings functions. It passes individual documents to be embedded in chunks to aiembed.

source


# PromptingTools.Experimental.RAGTools.BinaryBatchEmbedderType.
julia
BinaryBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form (eg, BitMatrix).

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BinaryCosineSimilarityType.
julia
BinaryCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

It follows the two-pass approach:

  • First pass: Hamming distance in binary form to get the top_k * rescore_multiplier (ie, more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedBatchEmbedderType.
julia
BitPackedBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form packed in UInt64 (eg, BitMatrix.chunks).

See also utilities pack_bits and unpack_bits to move between packed/non-packed binary forms.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedCosineSimilarityType.
julia
BitPackedCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

The difference to BinaryCosineSimilarity is that the binary values are packed into UInt64, which is more efficient.

Reference: HuggingFace: Embedding Quantization. Implementation of hamming_distance is based on TinyRAG.

source


# PromptingTools.Experimental.RAGTools.CandidateChunksType.
julia
CandidateChunks

A struct for storing references to chunks in the given index (identified by index_id) called positions and scores holding the strength of similarity (=1 is the highest, most similar). It's the result of the retrieval stage of RAG.

Fields

  • index_id::Symbol: the id of the index from which the candidates are drawn

  • positions::Vector{Int}: the positions of the candidates in the index (ie, 5 refers to the 5th chunk in the index - chunks(index)[5])

  • scores::Vector{Float32}: the similarity scores of the candidates from the query (higher is better)

source


# PromptingTools.Experimental.RAGTools.ChunkEmbeddingsIndexType.
julia
ChunkEmbeddingsIndex

Main struct for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Previously, this struct was called ChunkIndex.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • embeddings::Union{Nothing, Matrix{<:Real}}: for semantic search

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexType.
julia
ChunkKeywordsIndex

Struct for storing chunks of text and associated keywords for BM25 similarity search.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • chunkdata::Union{Nothing, AbstractMatrix{<:Real}}: for similarity search, assumed to be DocumentTermMatrix

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

Example

We can easily create a keywords-based index from a standard embeddings-based index.

julia

+    
Skip to content

Reference for RAGTools

# PromptingTools.Experimental.RAGToolsModule.
julia
RAGTools

Provides Retrieval-Augmented Generation (RAG) functionality.

Requires: LinearAlgebra, SparseArrays, Unicode, PromptingTools for proper functionality.

This module is experimental and may change at any time. It is intended to be moved to a separate package in the future.

source


# PromptingTools.Experimental.RAGTools.AbstractCandidateChunksType.
julia
AbstractCandidateChunks

Abstract type for storing candidate chunks, ie, references to items in a AbstractChunkIndex.

Return type from find_closest and find_tags functions.

Required Fields

  • index_id::Symbol: the id of the index from which the candidates are drawn

  • positions::Vector{Int}: the positions of the candidates in the index

  • scores::Vector{Float32}: the similarity scores of the candidates from the query (higher is better)

source


# PromptingTools.Experimental.RAGTools.AbstractChunkIndexType.
julia
AbstractChunkIndex <: AbstractDocumentIndex

Main abstract type for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Required Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • embeddings::Union{Nothing, Matrix{<:Real}}: for semantic search

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

source


# PromptingTools.Experimental.RAGTools.AbstractGeneratorType.
julia
AbstractGenerator <: AbstractGenerationMethod

Abstract type for generating an answer with generate! (use to change the process / return type of generate).

Required Fields

  • contexter::AbstractContextBuilder: the context building method, dispatching `build_context!

  • answerer::AbstractAnswerer: the answer generation method, dispatching answer!

  • refiner::AbstractRefiner: the answer refining method, dispatching refine!

  • postprocessor::AbstractPostprocessor: the postprocessing method, dispatching postprocess!

source


# PromptingTools.Experimental.RAGTools.AbstractIndexBuilderType.
julia
AbstractIndexBuilder

Abstract type for building an index with build_index (use to change the process / return type of build_index).

Required Fields

  • chunker::AbstractChunker: the chunking method, dispatching get_chunks

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings

  • tagger::AbstractTagger: the tagging method, dispatching get_tags

source


# PromptingTools.Experimental.RAGTools.AbstractMultiIndexType.
julia
AbstractMultiIndex <: AbstractDocumentIndex

Experimental abstract type for storing multiple document indexes. Not yet implemented.

source


# PromptingTools.Experimental.RAGTools.AbstractRetrieverType.
julia
AbstractRetriever <: AbstractRetrievalMethod

Abstract type for retrieving chunks from an index with retrieve (use to change the process / return type of retrieve).

Required Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags

  • reranker::AbstractReranker: the reranking method, dispatching rerank

source


# PromptingTools.Experimental.RAGTools.AdvancedGeneratorType.
julia
AdvancedGenerator <: AbstractGenerator

Default implementation for generate!. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, SimpleRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.AdvancedRetrieverType.
julia
AdvancedRetriever <: AbstractRetriever

Dispatch for retrieve with advanced retrieval methods to improve result quality. Compared to SimpleRetriever, it adds rephrasing the query and reranking the results.

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses HyDERephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses BatchEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses NoProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses CohereReranker

source


# PromptingTools.Experimental.RAGTools.AllTagFilterType.
julia
AllTagFilter <: AbstractTagFilter

Finds the chunks that have ALL OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.AnnotatedNodeType.
julia
AnnotatedNode{T}  <: AbstractAnnotatedNode

A node to add annotations to the generated answer in airag

Annotations can be: sources, scores, whether its supported or not by the context, etc.

Fields

  • group_id::Int: Unique identifier for the same group of nodes (eg, different lines of the same code block)

  • parent::Union{AnnotatedNode, Nothing}: Parent node that current node was built on

  • children::Vector{AnnotatedNode}: Children nodes

  • `score::

source


# PromptingTools.Experimental.RAGTools.AnyTagFilterType.
julia
AnyTagFilter <: AbstractTagFilter

Finds the chunks that have ANY OF the specified tag(s).

source


# PromptingTools.Experimental.RAGTools.BM25SimilarityType.
julia
BM25Similarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the BM25 similarity between the query and the chunks' embeddings in binary form.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.BatchEmbedderType.
julia
BatchEmbedder <: AbstractEmbedder

Default embedder for get_embeddings functions. It passes individual documents to be embedded in chunks to aiembed.

source


# PromptingTools.Experimental.RAGTools.BinaryBatchEmbedderType.
julia
BinaryBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form (eg, BitMatrix).

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BinaryCosineSimilarityType.
julia
BinaryCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

It follows the two-pass approach:

  • First pass: Hamming distance in binary form to get the top_k * rescore_multiplier (ie, more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedBatchEmbedderType.
julia
BitPackedBatchEmbedder <: AbstractEmbedder

Same as BatchEmbedder but reduces the embeddings matrix to a binary form packed in UInt64 (eg, BitMatrix.chunks).

See also utilities pack_bits and unpack_bits to move between packed/non-packed binary forms.

Reference: HuggingFace: Embedding Quantization.

source


# PromptingTools.Experimental.RAGTools.BitPackedCosineSimilarityType.
julia
BitPackedCosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the Hamming distance AND cosine similarity between the query and the chunks' embeddings in binary form.

The difference to BinaryCosineSimilarity is that the binary values are packed into UInt64, which is more efficient.

Reference: HuggingFace: Embedding Quantization. Implementation of hamming_distance is based on TinyRAG.

source


# PromptingTools.Experimental.RAGTools.CandidateChunksType.
julia
CandidateChunks

A struct for storing references to chunks in the given index (identified by index_id) called positions and scores holding the strength of similarity (=1 is the highest, most similar). It's the result of the retrieval stage of RAG.

Fields

  • index_id::Symbol: the id of the index from which the candidates are drawn

  • positions::Vector{Int}: the positions of the candidates in the index (ie, 5 refers to the 5th chunk in the index - chunks(index)[5])

  • scores::Vector{Float32}: the similarity scores of the candidates from the query (higher is better)

source


# PromptingTools.Experimental.RAGTools.ChunkEmbeddingsIndexType.
julia
ChunkEmbeddingsIndex

Main struct for storing document chunks and their embeddings. It also stores tags and sources for each chunk.

Previously, this struct was called ChunkIndex.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • embeddings::Union{Nothing, Matrix{<:Real}}: for semantic search

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexType.
julia
ChunkKeywordsIndex

Struct for storing chunks of text and associated keywords for BM25 similarity search.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • chunks::Vector{<:AbstractString}: underlying document chunks / snippets

  • chunkdata::Union{Nothing, AbstractMatrix{<:Real}}: for similarity search, assumed to be DocumentTermMatrix

  • tags::Union{Nothing, AbstractMatrix{<:Bool}}: for exact search, filtering, etc. This is often a sparse matrix indicating which chunks have the given tag (see tag_vocab for the position lookup)

  • tags_vocab::Union{Nothing, Vector{<:AbstractString}}: vocabulary for the tags matrix (each column in tags is one item in tags_vocab and rows are the chunks)

  • sources::Vector{<:AbstractString}: sources of the chunks

  • extras::Union{Nothing, AbstractVector}: additional data, eg, metadata, source code, etc.

Example

We can easily create a keywords-based index from a standard embeddings-based index.

julia

 # Let's assume we have a standard embeddings-based index
 index = build_index(SimpleIndexer(), texts; chunker_kwargs = (; max_length=10))
 
@@ -33,7 +33,7 @@
 result = retrieve(retriever, index_keywords, "What are the best practices for parallel computing in Julia?")
 result.context

If you want to use airag, don't forget to specify the config to make sure keywords are processed (ie, tokenized) and that BM25 is used for searching candidates

julia
cfg = RAGConfig(; retriever = SimpleBM25Retriever());
 airag(cfg, index_keywords;
-    question = "What are the best practices for parallel computing in Julia?")

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexMethod.
julia
ChunkKeywordsIndex(
+    question = "What are the best practices for parallel computing in Julia?")

source


# PromptingTools.Experimental.RAGTools.ChunkKeywordsIndexMethod.
julia
ChunkKeywordsIndex(
     [processor::AbstractProcessor=KeywordsProcessor(),] index::ChunkEmbeddingsIndex; verbose::Int = 1,
     index_id = gensym("ChunkKeywordsIndex"), processor_kwargs...)

Convenience method to quickly create a ChunkKeywordsIndex from an existing ChunkEmbeddingsIndex.

Example

julia

 # Let's assume we have a standard embeddings-based index
@@ -43,7 +43,7 @@
 index_keywords = ChunkKeywordsIndex(index)
 
 # We can immediately create a MultiIndex (a hybrid index holding both indices)
-multi_index = MultiIndex([index, index_keywords])

source


# PromptingTools.Experimental.RAGTools.CohereRerankerType.
julia
CohereReranker <: AbstractReranker

Rerank strategy using the Cohere Rerank API. Requires an API key.

source


# PromptingTools.Experimental.RAGTools.ContextEnumeratorType.
julia
ContextEnumerator <: AbstractContextBuilder

Default method for build_context! method. It simply enumerates the context snippets around each position in candidates. When possibly, it will add surrounding chunks (from the same source).

source


# PromptingTools.Experimental.RAGTools.CosineSimilarityType.
julia
CosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the cosine similarity between the query and the chunks' embeddings.

source


# PromptingTools.Experimental.RAGTools.DocumentTermMatrixType.
julia
DocumentTermMatrix{T<:AbstractString}

A sparse matrix of term frequencies and document lengths to allow calculation of BM25 similarity scores.

source


# PromptingTools.Experimental.RAGTools.FileChunkerType.
julia
FileChunker <: AbstractChunker

Chunker when you provide file paths to get_chunks functions.

Ie, the inputs will be validated first (eg, file exists, etc) and then read into memory.

Set as default chunker in get_chunks functions.

source


# PromptingTools.Experimental.RAGTools.FlashRankerType.
julia
FlashRanker <: AbstractReranker

Rerank strategy using the package FlashRank.jl and local models.

You must first import the FlashRank.jl package. To automatically download any required models, set your ENV["DATADEPS_ALWAYS_ACCEPT"] = true (see DataDeps for more details).

Example

julia
using FlashRank
+multi_index = MultiIndex([index, index_keywords])

source


# PromptingTools.Experimental.RAGTools.CohereRerankerType.
julia
CohereReranker <: AbstractReranker

Rerank strategy using the Cohere Rerank API. Requires an API key.

source


# PromptingTools.Experimental.RAGTools.ContextEnumeratorType.
julia
ContextEnumerator <: AbstractContextBuilder

Default method for build_context! method. It simply enumerates the context snippets around each position in candidates. When possibly, it will add surrounding chunks (from the same source).

source


# PromptingTools.Experimental.RAGTools.CosineSimilarityType.
julia
CosineSimilarity <: AbstractSimilarityFinder

Finds the closest chunks to a query embedding by measuring the cosine similarity between the query and the chunks' embeddings.

source


# PromptingTools.Experimental.RAGTools.DocumentTermMatrixType.
julia
DocumentTermMatrix{T<:AbstractString}

A sparse matrix of term frequencies and document lengths to allow calculation of BM25 similarity scores.

source


# PromptingTools.Experimental.RAGTools.FileChunkerType.
julia
FileChunker <: AbstractChunker

Chunker when you provide file paths to get_chunks functions.

Ie, the inputs will be validated first (eg, file exists, etc) and then read into memory.

Set as default chunker in get_chunks functions.

source


# PromptingTools.Experimental.RAGTools.FlashRankerType.
julia
FlashRanker <: AbstractReranker

Rerank strategy using the package FlashRank.jl and local models.

You must first import the FlashRank.jl package. To automatically download any required models, set your ENV["DATADEPS_ALWAYS_ACCEPT"] = true (see DataDeps for more details).

Example

julia
using FlashRank
 
 # Wrap the model to be a valid Ranker recognized by RAGTools
 # It will be provided to the airag/rerank function to avoid instantiating it on every call
@@ -55,7 +55,7 @@
 
 # Ask a question (assumes you have some `index`)
 question = "What are the best practices for parallel computing in Julia?"
-result = airag(cfg, index; question, return_all = true)

source


# PromptingTools.Experimental.RAGTools.HTMLStylerType.
julia
HTMLStyler

Defines styling via classes (attribute class) and styles (attribute style) for HTML formatting of AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.HyDERephraserType.
julia
HyDERephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

It uses a prompt-based rephrasing method called HyDE (Hypothetical Document Embedding), where instead of looking for an embedding of the question, we look for the documents most similar to a synthetic passage that would be a good answer to our question.

Reference: Arxiv paper.

source


# PromptingTools.Experimental.RAGTools.JudgeAllScoresType.

final_rating is the average of all scoring criteria. Explain the final_rating in rationale

source


# PromptingTools.Experimental.RAGTools.JudgeRatingType.

Provide the final_rating between 1-5. Provide the rationale for it.

source


# PromptingTools.Experimental.RAGTools.KeywordsIndexerType.
julia
KeywordsIndexer <: AbstractIndexBuilder

Keyword-based index (BM25) to be returned by build_index.

It uses TextChunker, KeywordsProcessor, and NoTagger as default chunker, processor, and tagger.

source


# PromptingTools.Experimental.RAGTools.KeywordsProcessorType.
julia
KeywordsProcessor <: AbstractProcessor

Default keywords processor for get_keywords functions. It normalizes the documents, tokenizes them and builds a DocumentTermMatrix.

source


# PromptingTools.Experimental.RAGTools.MultiCandidateChunksType.
julia
MultiCandidateChunks

A struct for storing references to multiple sets of chunks across different indices. Each set of chunks is identified by an index_id in index_ids, with corresponding positions in the index and scores indicating the strength of similarity.

This struct is useful for scenarios where candidates are drawn from multiple indices, and there is a need to keep track of which candidates came from which index.

Fields

  • index_ids::Vector{Symbol}: the ids of the indices from which the candidates are drawn

  • positions::Vector{TP}: the positions of the candidates in their respective indices

  • scores::Vector{TD}: the similarity scores of the candidates from the query

source


# PromptingTools.Experimental.RAGTools.MultiFinderType.
julia
MultiFinder <: AbstractSimilarityFinder

Composite finder for MultiIndex where we want to set multiple finders for each index. Positions correspond to indexes(::MultiIndex).

source


# PromptingTools.Experimental.RAGTools.MultiIndexType.
julia
MultiIndex

Composite index that stores multiple ChunkIndex objects and their embeddings.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • indexes::Vector{<:AbstractChunkIndex}: the indexes to be combined

Use accesor indexes to access the individual indexes.

Examples

We can create a MultiIndex from a vector of AbstractChunkIndex objects.

julia
index = build_index(SimpleIndexer(), texts; chunker_kwargs = (; sources))
+result = airag(cfg, index; question, return_all = true)

source


# PromptingTools.Experimental.RAGTools.HTMLStylerType.
julia
HTMLStyler

Defines styling via classes (attribute class) and styles (attribute style) for HTML formatting of AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.HyDERephraserType.
julia
HyDERephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

It uses a prompt-based rephrasing method called HyDE (Hypothetical Document Embedding), where instead of looking for an embedding of the question, we look for the documents most similar to a synthetic passage that would be a good answer to our question.

Reference: Arxiv paper.

source


# PromptingTools.Experimental.RAGTools.JudgeAllScoresType.

final_rating is the average of all scoring criteria. Explain the final_rating in rationale

source


# PromptingTools.Experimental.RAGTools.JudgeRatingType.

Provide the final_rating between 1-5. Provide the rationale for it.

source


# PromptingTools.Experimental.RAGTools.KeywordsIndexerType.
julia
KeywordsIndexer <: AbstractIndexBuilder

Keyword-based index (BM25) to be returned by build_index.

It uses TextChunker, KeywordsProcessor, and NoTagger as default chunker, processor, and tagger.

source


# PromptingTools.Experimental.RAGTools.KeywordsProcessorType.
julia
KeywordsProcessor <: AbstractProcessor

Default keywords processor for get_keywords functions. It normalizes the documents, tokenizes them and builds a DocumentTermMatrix.

source


# PromptingTools.Experimental.RAGTools.MultiCandidateChunksType.
julia
MultiCandidateChunks

A struct for storing references to multiple sets of chunks across different indices. Each set of chunks is identified by an index_id in index_ids, with corresponding positions in the index and scores indicating the strength of similarity.

This struct is useful for scenarios where candidates are drawn from multiple indices, and there is a need to keep track of which candidates came from which index.

Fields

  • index_ids::Vector{Symbol}: the ids of the indices from which the candidates are drawn

  • positions::Vector{TP}: the positions of the candidates in their respective indices

  • scores::Vector{TD}: the similarity scores of the candidates from the query

source


# PromptingTools.Experimental.RAGTools.MultiFinderType.
julia
MultiFinder <: AbstractSimilarityFinder

Composite finder for MultiIndex where we want to set multiple finders for each index. Positions correspond to indexes(::MultiIndex).

source


# PromptingTools.Experimental.RAGTools.MultiIndexType.
julia
MultiIndex

Composite index that stores multiple ChunkIndex objects and their embeddings.

Fields

  • id::Symbol: unique identifier of each index (to ensure we're using the right index with CandidateChunks)

  • indexes::Vector{<:AbstractChunkIndex}: the indexes to be combined

Use accesor indexes to access the individual indexes.

Examples

We can create a MultiIndex from a vector of AbstractChunkIndex objects.

julia
index = build_index(SimpleIndexer(), texts; chunker_kwargs = (; sources))
 index_keywords = ChunkKeywordsIndex(index) # same chunks as above but adds BM25 instead of embeddings
 
 multi_index = MultiIndex([index, index_keywords])

To use airag with different types of indices, we need to specify how to find the closest items for each index

julia
# Cosine similarity for embeddings and BM25 for keywords, same order as indexes in MultiIndex
@@ -66,7 +66,7 @@
 
 # Ask questions
 msg = airag(cfg, multi_index; question = "What are the best practices for parallel computing in Julia?")
-pprint(msg) # prettify the answer

source


# PromptingTools.Experimental.RAGTools.NoEmbedderType.
julia
NoEmbedder <: AbstractEmbedder

No-op embedder for get_embeddings functions. It returns nothing.

source


# PromptingTools.Experimental.RAGTools.NoPostprocessorType.
julia
NoPostprocessor <: AbstractPostprocessor

Default method for postprocess! method. A passthrough option that returns the result without any changes.

Overload this method to add custom postprocessing steps, eg, logging, saving conversations to disk, etc.

source


# PromptingTools.Experimental.RAGTools.NoProcessorType.
julia
NoProcessor <: AbstractProcessor

No-op processor for get_keywords functions. It returns the inputs as is.

source


# PromptingTools.Experimental.RAGTools.NoRefinerType.
julia
NoRefiner <: AbstractRefiner

Default method for refine! method. A passthrough option that returns the result.answer without any changes.

source


# PromptingTools.Experimental.RAGTools.NoRephraserType.
julia
NoRephraser <: AbstractRephraser

No-op implementation for rephrase, which simply passes the question through.

source


# PromptingTools.Experimental.RAGTools.NoRerankerType.
julia
NoReranker <: AbstractReranker

No-op implementation for rerank, which simply passes the candidate chunks through.

source


# PromptingTools.Experimental.RAGTools.NoTagFilterType.
julia
NoTagFilter <: AbstractTagFilter

No-op implementation for find_tags, which simply returns all chunks.

source


# PromptingTools.Experimental.RAGTools.NoTaggerType.
julia
NoTagger <: AbstractTagger

No-op tagger for get_tags functions. It returns (nothing, nothing).

source


# PromptingTools.Experimental.RAGTools.OpenTaggerType.
julia
OpenTagger <: AbstractTagger

Tagger for get_tags functions, which generates possible tags for each chunk via aiextract. You can customize it via prompt template (default: :RAGExtractMetadataShort), but it's quite open-ended (ie, AI decides the possible tags).

source


# PromptingTools.Experimental.RAGTools.PassthroughTaggerType.
julia
PassthroughTagger <: AbstractTagger

Tagger for get_tags functions, which passes tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]).

source


# PromptingTools.Experimental.RAGTools.RAGConfigType.
julia
RAGConfig <: AbstractRAGConfig

Default configuration for RAG. It uses SimpleIndexer, SimpleRetriever, and SimpleGenerator as default components.

To customize the components, replace corresponding fields for each step of the RAG pipeline (eg, use subtypes(AbstractIndexBuilder) to find the available options).

source


# PromptingTools.Experimental.RAGTools.RAGResultType.
julia
RAGResult

A struct for debugging RAG answers. It contains the question, answer, context, and the candidate chunks at each step of the RAG pipeline.

Think of the flow as question -> rephrased_questions -> answer -> final_answer with the context and candidate chunks helping along the way.

Fields

  • question::AbstractString: the original question

  • rephrased_questions::Vector{<:AbstractString}: a vector of rephrased questions (eg, HyDe, Multihop, etc.)

  • answer::AbstractString: the generated answer

  • final_answer::AbstractString: the refined final answer (eg, after CorrectiveRAG), also considered the FINAL answer (it must be always available)

  • context::Vector{<:AbstractString}: the context used for retrieval (ie, the vector of chunks and their surrounding window if applicable)

  • sources::Vector{<:AbstractString}: the sources of the context (for the original matched chunks)

  • emb_candidates::CandidateChunks: the candidate chunks from the embedding index (from find_closest)

  • tag_candidates::Union{Nothing, CandidateChunks}: the candidate chunks from the tag index (from find_tags)

  • filtered_candidates::CandidateChunks: the filtered candidate chunks (intersection of emb_candidates and tag_candidates)

  • reranked_candidates::CandidateChunks: the reranked candidate chunks (from rerank)

  • conversations::Dict{Symbol,Vector{<:AbstractMessage}}: the conversation history for AI steps of the RAG pipeline, use keys that correspond to the function names, eg, :answer or :refine

See also: pprint (pretty printing), annotate_support (for annotating the answer)

source


# PromptingTools.Experimental.RAGTools.RankGPTRerankerType.
julia
RankGPTReranker <: AbstractReranker

Rerank strategy using the RankGPT algorithm (calling LLMs).

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.RankGPTResultType.
julia
RankGPTResult

Results from the RankGPT algorithm.

Fields

  • question::String: The question that was asked.

  • chunks::AbstractVector{T}: The chunks that were ranked (=context).

  • positions::Vector{Int}: The ranking of the chunks (referring to the chunks).

  • elapsed::Float64: The time it took to rank the chunks.

  • cost::Float64: The cumulative cost of the ranking.

  • tokens::Int: The cumulative number of tokens used in the ranking.

source


# PromptingTools.Experimental.RAGTools.SimpleAnswererType.
julia
SimpleAnswerer <: AbstractAnswerer

Default method for answer! method. Generates an answer using the aigenerate function with the provided context and question.

source


# PromptingTools.Experimental.RAGTools.SimpleBM25RetrieverType.
julia
SimpleBM25Retriever <: AbstractRetriever

Keyword-based implementation for retrieve. It does a simple similarity search via BM25Similarity and returns the results.

Make sure to use consistent processor and tagger with the Preparation Stage (build_index)!

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses NoRephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses NoEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses KeywordsProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses NoReranker

source


# PromptingTools.Experimental.RAGTools.SimpleGeneratorType.
julia
SimpleGenerator <: AbstractGenerator

Default implementation for generate. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, NoRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.SimpleIndexerType.
julia
SimpleIndexer <: AbstractIndexBuilder

Default implementation for build_index.

It uses TextChunker, BatchEmbedder, and NoTagger as default chunker, embedder, and tagger.

source


# PromptingTools.Experimental.RAGTools.SimpleRefinerType.
julia
SimpleRefiner <: AbstractRefiner

Refines the answer using the same context previously provided via the provided prompt template.

source


# PromptingTools.Experimental.RAGTools.SimpleRephraserType.
julia
SimpleRephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

source


# PromptingTools.Experimental.RAGTools.SimpleRetrieverType.
julia
SimpleRetriever <: AbstractRetriever

Default implementation for retrieve. It does a simple similarity search via CosineSimilarity and returns the results.

Make sure to use consistent embedder and tagger with the Preparation Stage (build_index)!

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses NoRephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses BatchEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses NoProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses NoReranker

source


# PromptingTools.Experimental.RAGTools.StylerType.
julia
Styler

Defines styling keywords for printstyled for each AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.SubChunkIndexType.
julia
SubChunkIndex

A view of the parent index with respect to the chunks (and chunk-aligned fields). All methods and accessors working for AbstractChunkIndex also work for SubChunkIndex. It does not yet work for MultiIndex.

Fields

  • parent::AbstractChunkIndex: the parent index from which the chunks are drawn (always the original index, never a view)

  • positions::Vector{Int}: the positions of the chunks in the parent index (always refers to original PARENT index, even if we create a view of the view)

Example

julia
cc = CandidateChunks(index.id, 1:10)
+pprint(msg) # prettify the answer

source


# PromptingTools.Experimental.RAGTools.NoEmbedderType.
julia
NoEmbedder <: AbstractEmbedder

No-op embedder for get_embeddings functions. It returns nothing.

source


# PromptingTools.Experimental.RAGTools.NoPostprocessorType.
julia
NoPostprocessor <: AbstractPostprocessor

Default method for postprocess! method. A passthrough option that returns the result without any changes.

Overload this method to add custom postprocessing steps, eg, logging, saving conversations to disk, etc.

source


# PromptingTools.Experimental.RAGTools.NoProcessorType.
julia
NoProcessor <: AbstractProcessor

No-op processor for get_keywords functions. It returns the inputs as is.

source


# PromptingTools.Experimental.RAGTools.NoRefinerType.
julia
NoRefiner <: AbstractRefiner

Default method for refine! method. A passthrough option that returns the result.answer without any changes.

source


# PromptingTools.Experimental.RAGTools.NoRephraserType.
julia
NoRephraser <: AbstractRephraser

No-op implementation for rephrase, which simply passes the question through.

source


# PromptingTools.Experimental.RAGTools.NoRerankerType.
julia
NoReranker <: AbstractReranker

No-op implementation for rerank, which simply passes the candidate chunks through.

source


# PromptingTools.Experimental.RAGTools.NoTagFilterType.
julia
NoTagFilter <: AbstractTagFilter

No-op implementation for find_tags, which simply returns all chunks.

source


# PromptingTools.Experimental.RAGTools.NoTaggerType.
julia
NoTagger <: AbstractTagger

No-op tagger for get_tags functions. It returns (nothing, nothing).

source


# PromptingTools.Experimental.RAGTools.OpenTaggerType.
julia
OpenTagger <: AbstractTagger

Tagger for get_tags functions, which generates possible tags for each chunk via aiextract. You can customize it via prompt template (default: :RAGExtractMetadataShort), but it's quite open-ended (ie, AI decides the possible tags).

source


# PromptingTools.Experimental.RAGTools.PassthroughTaggerType.
julia
PassthroughTagger <: AbstractTagger

Tagger for get_tags functions, which passes tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]).

source


# PromptingTools.Experimental.RAGTools.RAGConfigType.
julia
RAGConfig <: AbstractRAGConfig

Default configuration for RAG. It uses SimpleIndexer, SimpleRetriever, and SimpleGenerator as default components.

To customize the components, replace corresponding fields for each step of the RAG pipeline (eg, use subtypes(AbstractIndexBuilder) to find the available options).

source


# PromptingTools.Experimental.RAGTools.RAGResultType.
julia
RAGResult

A struct for debugging RAG answers. It contains the question, answer, context, and the candidate chunks at each step of the RAG pipeline.

Think of the flow as question -> rephrased_questions -> answer -> final_answer with the context and candidate chunks helping along the way.

Fields

  • question::AbstractString: the original question

  • rephrased_questions::Vector{<:AbstractString}: a vector of rephrased questions (eg, HyDe, Multihop, etc.)

  • answer::AbstractString: the generated answer

  • final_answer::AbstractString: the refined final answer (eg, after CorrectiveRAG), also considered the FINAL answer (it must be always available)

  • context::Vector{<:AbstractString}: the context used for retrieval (ie, the vector of chunks and their surrounding window if applicable)

  • sources::Vector{<:AbstractString}: the sources of the context (for the original matched chunks)

  • emb_candidates::CandidateChunks: the candidate chunks from the embedding index (from find_closest)

  • tag_candidates::Union{Nothing, CandidateChunks}: the candidate chunks from the tag index (from find_tags)

  • filtered_candidates::CandidateChunks: the filtered candidate chunks (intersection of emb_candidates and tag_candidates)

  • reranked_candidates::CandidateChunks: the reranked candidate chunks (from rerank)

  • conversations::Dict{Symbol,Vector{<:AbstractMessage}}: the conversation history for AI steps of the RAG pipeline, use keys that correspond to the function names, eg, :answer or :refine

See also: pprint (pretty printing), annotate_support (for annotating the answer)

source


# PromptingTools.Experimental.RAGTools.RankGPTRerankerType.
julia
RankGPTReranker <: AbstractReranker

Rerank strategy using the RankGPT algorithm (calling LLMs).

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.RankGPTResultType.
julia
RankGPTResult

Results from the RankGPT algorithm.

Fields

  • question::String: The question that was asked.

  • chunks::AbstractVector{T}: The chunks that were ranked (=context).

  • positions::Vector{Int}: The ranking of the chunks (referring to the chunks).

  • elapsed::Float64: The time it took to rank the chunks.

  • cost::Float64: The cumulative cost of the ranking.

  • tokens::Int: The cumulative number of tokens used in the ranking.

source


# PromptingTools.Experimental.RAGTools.SimpleAnswererType.
julia
SimpleAnswerer <: AbstractAnswerer

Default method for answer! method. Generates an answer using the aigenerate function with the provided context and question.

source


# PromptingTools.Experimental.RAGTools.SimpleBM25RetrieverType.
julia
SimpleBM25Retriever <: AbstractRetriever

Keyword-based implementation for retrieve. It does a simple similarity search via BM25Similarity and returns the results.

Make sure to use consistent processor and tagger with the Preparation Stage (build_index)!

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses NoRephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses NoEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses KeywordsProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses NoReranker

source


# PromptingTools.Experimental.RAGTools.SimpleGeneratorType.
julia
SimpleGenerator <: AbstractGenerator

Default implementation for generate. It simply enumerates context snippets and runs aigenerate (no refinement).

It uses ContextEnumerator, SimpleAnswerer, NoRefiner, and NoPostprocessor as default contexter, answerer, refiner, and postprocessor.

source


# PromptingTools.Experimental.RAGTools.SimpleIndexerType.
julia
SimpleIndexer <: AbstractIndexBuilder

Default implementation for build_index.

It uses TextChunker, BatchEmbedder, and NoTagger as default chunker, embedder, and tagger.

source


# PromptingTools.Experimental.RAGTools.SimpleRefinerType.
julia
SimpleRefiner <: AbstractRefiner

Refines the answer using the same context previously provided via the provided prompt template.

source


# PromptingTools.Experimental.RAGTools.SimpleRephraserType.
julia
SimpleRephraser <: AbstractRephraser

Rephraser implemented using the provided AI Template (eg, ...) and standard chat model.

source


# PromptingTools.Experimental.RAGTools.SimpleRetrieverType.
julia
SimpleRetriever <: AbstractRetriever

Default implementation for retrieve. It does a simple similarity search via CosineSimilarity and returns the results.

Make sure to use consistent embedder and tagger with the Preparation Stage (build_index)!

Fields

  • rephraser::AbstractRephraser: the rephrasing method, dispatching rephrase - uses NoRephraser

  • embedder::AbstractEmbedder: the embedding method, dispatching get_embeddings (see Preparation Stage for more details) - uses BatchEmbedder

  • processor::AbstractProcessor: the processor method, dispatching get_keywords (see Preparation Stage for more details) - uses NoProcessor

  • finder::AbstractSimilarityFinder: the similarity search method, dispatching find_closest - uses CosineSimilarity

  • tagger::AbstractTagger: the tag generating method, dispatching get_tags (see Preparation Stage for more details) - uses NoTagger

  • filter::AbstractTagFilter: the tag matching method, dispatching find_tags - uses NoTagFilter

  • reranker::AbstractReranker: the reranking method, dispatching rerank - uses NoReranker

source


# PromptingTools.Experimental.RAGTools.StylerType.
julia
Styler

Defines styling keywords for printstyled for each AbstractAnnotatedNode

source


# PromptingTools.Experimental.RAGTools.SubChunkIndexType.
julia
SubChunkIndex

A view of the parent index with respect to the chunks (and chunk-aligned fields). All methods and accessors working for AbstractChunkIndex also work for SubChunkIndex. It does not yet work for MultiIndex.

Fields

  • parent::AbstractChunkIndex: the parent index from which the chunks are drawn (always the original index, never a view)

  • positions::Vector{Int}: the positions of the chunks in the parent index (always refers to original PARENT index, even if we create a view of the view)

Example

julia
cc = CandidateChunks(index.id, 1:10)
 sub_index = @view(index[cc])

You can use SubChunkIndex to access chunks or sources (and other fields) from a parent index, eg,

julia
RT.chunks(sub_index)
 RT.sources(sub_index)
 RT.chunkdata(sub_index) # slice of embeddings
@@ -74,9 +74,9 @@
 RT.tags(sub_index) # slice of tags
 RT.tags_vocab(sub_index) # unchanged, identical to parent version
 RT.extras(sub_index) # slice of extras

Access the parent index that the positions correspond to

julia
parent(sub_index)
-RT.positions(sub_index)

source


# PromptingTools.Experimental.RAGTools.SubDocumentTermMatrixType.

A partial view of a DocumentTermMatrix, tf is MATERIALIZED for performance and fewer allocations.

source


# PromptingTools.Experimental.RAGTools.TavilySearchRefinerType.
julia
TavilySearchRefiner <: AbstractRefiner

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

source


# PromptingTools.Experimental.RAGTools.TextChunkerType.
julia
TextChunker <: AbstractChunker

Chunker when you provide text to get_chunks functions. Inputs are directly chunked

source


# PromptingTools.Experimental.RAGTools.TrigramAnnotaterType.
julia
TrigramAnnotater

Annotation method where we score answer versus each context based on word-level trigrams that match.

It's very simple method (and it can loose some semantic meaning in longer sequences like negative), but it works reasonably well for both text and code.

source


# PromptingTools.Experimental.RAGTools._normalizeFunction.

Shortcut to LinearAlgebra.normalize. Provided in the package extension RAGToolsExperimentalExt (Requires SparseArrays, Unicode, and LinearAlgebra)

source


# PromptingTools.Experimental.RAGTools.add_node_metadata!Method.
julia
add_node_metadata!(annotater::TrigramAnnotater,
+RT.positions(sub_index)

source


# PromptingTools.Experimental.RAGTools.SubDocumentTermMatrixType.

A partial view of a DocumentTermMatrix, tf is MATERIALIZED for performance and fewer allocations.

source


# PromptingTools.Experimental.RAGTools.TavilySearchRefinerType.
julia
TavilySearchRefiner <: AbstractRefiner

Refines the answer by executing a web search using the Tavily API. This method aims to enhance the answer's accuracy and relevance by incorporating information retrieved from the web.

source


# PromptingTools.Experimental.RAGTools.TextChunkerType.
julia
TextChunker <: AbstractChunker

Chunker when you provide text to get_chunks functions. Inputs are directly chunked

source


# PromptingTools.Experimental.RAGTools.TrigramAnnotaterType.
julia
TrigramAnnotater

Annotation method where we score answer versus each context based on word-level trigrams that match.

It's very simple method (and it can loose some semantic meaning in longer sequences like negative), but it works reasonably well for both text and code.

source


# PromptingTools.Experimental.RAGTools._normalizeFunction.

Shortcut to LinearAlgebra.normalize. Provided in the package extension RAGToolsExperimentalExt (Requires SparseArrays, Unicode, and LinearAlgebra)

source


# PromptingTools.Experimental.RAGTools.add_node_metadata!Method.
julia
add_node_metadata!(annotater::TrigramAnnotater,
     root::AnnotatedNode; add_sources::Bool = true, add_scores::Bool = true,
-    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing)

Adds metadata to the children of root. Metadata includes sources and scores, if requested.

Optionally, it can add a list of sources at the end of the printed text.

The metadata is added by inserting new nodes in the root children list (with no children of its own to be printed out).

source


# PromptingTools.Experimental.RAGTools.airagMethod.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;
+    sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing)

Adds metadata to the children of root. Metadata includes sources and scores, if requested.

Optionally, it can add a list of sources at the end of the printed text.

The metadata is added by inserting new nodes in the root children list (with no children of its own to be printed out).

source


# PromptingTools.Experimental.RAGTools.airagMethod.
julia
airag(cfg::AbstractRAGConfig, index::AbstractDocumentIndex;
     question::AbstractString,
     verbose::Integer = 1, return_all::Bool = false,
     api_kwargs::NamedTuple = NamedTuple(),
@@ -123,7 +123,7 @@
 result = airag(cfg, multi_index; question, return_all=true)
 
 # Pretty-print the result
-PT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.align_node_styles!Method.
julia
align_node_styles!(annotater::TrigramAnnotater, nodes::AbstractVector{<:AnnotatedNode}; kwargs...)

Aligns the styles of the nodes based on the surrounding nodes ("fill-in-the-middle").

If the node has no score, but the surrounding nodes have the same style, the node will inherit the style of the surrounding nodes.

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,
+PT.pprint(result)

For easier manipulation of nested kwargs, see utilities getpropertynested, setpropertynested, merge_kwargs_nested.

source


# PromptingTools.Experimental.RAGTools.align_node_styles!Method.
julia
align_node_styles!(annotater::TrigramAnnotater, nodes::AbstractVector{<:AnnotatedNode}; kwargs...)

Aligns the styles of the nodes based on the surrounding nodes ("fill-in-the-middle").

If the node has no score, but the surrounding nodes have the same style, the node will inherit the style of the surrounding nodes.

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(annotater::TrigramAnnotater, answer::AbstractString,
     context::AbstractVector; min_score::Float64 = 0.5,
     skip_trigrams::Bool = true, hashed::Bool = true,
     sources::Union{Nothing, AbstractVector{<:AbstractString}} = nothing,
@@ -135,7 +135,7 @@
 answer = "This is a test context. Another context sentence."
 
 annotated_root = annotate_support(annotater, answer, context)
-pprint(annotated_root) # pretty print the annotated tree

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(
+pprint(annotated_root) # pretty print the annotated tree

source


# PromptingTools.Experimental.RAGTools.annotate_supportMethod.
julia
annotate_support(
     annotater::TrigramAnnotater, result::AbstractRAGResult; min_score::Float64 = 0.5,
     skip_trigrams::Bool = true, hashed::Bool = true,
     min_source_score::Float64 = 0.25,
@@ -143,12 +143,12 @@
     add_scores::Bool = true, kwargs...)

Dispatch for annotate_support for AbstractRAGResult type. It extracts the final_answer and context from the result and calls annotate_support with them.

See annotate_support for more details.

Example

julia
res = RAGResult(; question = "", final_answer = "This is a test.",
     context = ["Test context.", "Completely different"])
 annotated_root = annotate_support(annotater, res)
-PT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.answer!Method.
julia
answer!(
+PT.pprint(annotated_root)

source


# PromptingTools.Experimental.RAGTools.answer!Method.
julia
answer!(
     answerer::SimpleAnswerer, index::AbstractDocumentIndex, result::AbstractRAGResult;
     model::AbstractString = PT.MODEL_CHAT, verbose::Bool = true,
     template::Symbol = :RAGAnswerFromContext,
     cost_tracker = Threads.Atomic{Float64}(0.0),
-    kwargs...)

Generates an answer using the aigenerate function with the provided result.context and result.question.

Returns

  • Mutated result with result.answer and the full conversation saved in result.conversations[:answer]

Arguments

  • answerer::SimpleAnswerer: The method to use for generating the answer. Uses aigenerate.

  • index::AbstractDocumentIndex: The index containing chunks and sources.

  • result::AbstractRAGResult: The result containing the context and question to generate the answer for.

  • model::AbstractString: The model to use for generating the answer. Defaults to PT.MODEL_CHAT.

  • verbose::Bool: If true, enables verbose logging.

  • template::Symbol: The template to use for the aigenerate function. Defaults to :RAGAnswerFromContext.

  • cost_tracker: An atomic counter to track the cost of the operation.

source


# PromptingTools.Experimental.RAGTools.build_contextMethod.
julia
build_context(contexter::ContextEnumerator,
+    kwargs...)

Generates an answer using the aigenerate function with the provided result.context and result.question.

Returns

  • Mutated result with result.answer and the full conversation saved in result.conversations[:answer]

Arguments

  • answerer::SimpleAnswerer: The method to use for generating the answer. Uses aigenerate.

  • index::AbstractDocumentIndex: The index containing chunks and sources.

  • result::AbstractRAGResult: The result containing the context and question to generate the answer for.

  • model::AbstractString: The model to use for generating the answer. Defaults to PT.MODEL_CHAT.

  • verbose::Bool: If true, enables verbose logging.

  • template::Symbol: The template to use for the aigenerate function. Defaults to :RAGAnswerFromContext.

  • cost_tracker: An atomic counter to track the cost of the operation.

source


# PromptingTools.Experimental.RAGTools.build_contextMethod.
julia
build_context(contexter::ContextEnumerator,
     index::AbstractDocumentIndex, candidates::AbstractCandidateChunks;
     verbose::Bool = true,
     chunks_window_margin::Tuple{Int, Int} = (1, 1), kwargs...)
@@ -156,7 +156,7 @@
     build_context!(contexter::ContextEnumerator,
     index::AbstractDocumentIndex, result::AbstractRAGResult; kwargs...)

Build context strings for each position in candidates considering a window margin around each position. If mutating version is used (build_context!), it will use result.reranked_candidates to update the result.context field.

Arguments

  • contexter::ContextEnumerator: The method to use for building the context. Enumerates the snippets.

  • index::AbstractDocumentIndex: The index containing chunks and sources.

  • candidates::AbstractCandidateChunks: Candidate chunks which contain positions to extract context from.

  • verbose::Bool: If true, enables verbose logging.

  • chunks_window_margin::Tuple{Int, Int}: A tuple indicating the margin (before, after) around each position to include in the context. Defaults to (1,1), which means 1 preceding and 1 suceeding chunk will be included. With (0,0), only the matching chunks will be included.

Returns

  • Vector{String}: A vector of context strings, each corresponding to a position in reranked_candidates.

Examples

julia
index = ChunkIndex(...)  # Assuming a proper index is defined
 candidates = CandidateChunks(index.id, [2, 4], [0.1, 0.2])
-context = build_context(ContextEnumerator(), index, candidates; chunks_window_margin=(0, 1)) # include only one following chunk for each matching chunk

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(
+context = build_context(ContextEnumerator(), index, candidates; chunks_window_margin=(0, 1)) # include only one following chunk for each matching chunk

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(
     indexer::KeywordsIndexer, files_or_docs::Vector{<:AbstractString};
     verbose::Integer = 1,
     extras::Union{Nothing, AbstractVector} = nothing,
@@ -168,7 +168,7 @@
     tagger::AbstractTagger = indexer.tagger,
     tagger_kwargs::NamedTuple = NamedTuple(),
     api_kwargs::NamedTuple = NamedTuple(),
-    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(
+    cost_tracker = Threads.Atomic{Float64}(0.0))

Builds a ChunkKeywordsIndex from the provided files or documents to support keyword-based search (BM25).

source


# PromptingTools.Experimental.RAGTools.build_indexMethod.
julia
build_index(
     indexer::AbstractIndexBuilder, files_or_docs::Vector{<:AbstractString};
     verbose::Integer = 1,
     extras::Union{Nothing, AbstractVector} = nothing,
@@ -187,45 +187,45 @@
 # Assuming `test_files` is a vector of file paths
 indexer = SimpleIndexer(chunker=FileChunker(), tagger=OpenTagger())
 index = build_index(indexer, test_files; 
-        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

  • If you get errors about exceeding embedding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try changing the embedding_kwargs. In particular, reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes (eg, Databricks).

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsMethod.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};
+        chunker_kwargs(; separators=[". "]), verbose=true)

Notes

  • If you get errors about exceeding embedding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try changing the embedding_kwargs. In particular, reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes (eg, Databricks).

source


# PromptingTools.Experimental.RAGTools.build_qa_evalsMethod.
julia
build_qa_evals(doc_chunks::Vector{<:AbstractString}, sources::Vector{<:AbstractString};
                model=PT.MODEL_CHAT, instructions="None.", qa_template::Symbol=:RAGCreateQAFromContext, 
                verbose::Bool=true, api_kwargs::NamedTuple = NamedTuple(), kwargs...) -> Vector{QAEvalItem}

Create a collection of question and answer evaluations (QAEvalItem) from document chunks and sources. This function generates Q&A pairs based on the provided document chunks, using a specified AI model and template.

Arguments

  • doc_chunks::Vector{<:AbstractString}: A vector of document chunks, each representing a segment of text.

  • sources::Vector{<:AbstractString}: A vector of source identifiers corresponding to each chunk in doc_chunks (eg, filenames or paths).

  • model: The AI model used for generating Q&A pairs. Default is PT.MODEL_CHAT.

  • instructions::String: Additional instructions or context to provide to the model generating QA sets. Defaults to "None.".

  • qa_template::Symbol: A template symbol that dictates the AITemplate that will be used. It must have placeholder context. Default is :CreateQAFromContext.

  • api_kwargs::NamedTuple: Parameters that will be forwarded to the API endpoint.

  • verbose::Bool: If true, additional information like costs will be logged. Defaults to true.

Returns

Vector{QAEvalItem}: A vector of QAEvalItem structs, each containing a source, context, question, and answer. Invalid or empty items are filtered out.

Notes

  • The function internally uses aiextract to generate Q&A pairs based on the provided qa_template. So you can use any kwargs that you want.

  • Each QAEvalItem includes the context (document chunk), the generated question and answer, and the source.

  • The function tracks and reports the cost of AI calls if verbose is enabled.

  • Items where the question, answer, or context is empty are considered invalid and are filtered out.

Examples

Creating Q&A evaluations from a set of document chunks:

julia
doc_chunks = ["Text from document 1", "Text from document 2"]
 sources = ["source1", "source2"]
-qa_evals = build_qa_evals(doc_chunks, sources)

source


# PromptingTools.Experimental.RAGTools.build_tagsFunction.

Builds a matrix of tags and a vocabulary list. REQUIRES SparseArrays, LinearAlgebra, Unicode packages to be loaded!!

source


# PromptingTools.Experimental.RAGTools.build_tagsMethod.
julia
build_tags(tagger::AbstractTagger, chunk_tags::Nothing; kwargs...)

No-op that skips any tag building, returning nothing, nothing

Otherwise, it would build the sparse matrix and the vocabulary (requires SparseArrays and LinearAlgebra packages to be loaded).

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.cohere_apiMethod.
julia
cohere_api(;
+qa_evals = build_qa_evals(doc_chunks, sources)

source


# PromptingTools.Experimental.RAGTools.build_tagsFunction.

Builds a matrix of tags and a vocabulary list. REQUIRES SparseArrays, LinearAlgebra, Unicode packages to be loaded!!

source


# PromptingTools.Experimental.RAGTools.build_tagsMethod.
julia
build_tags(tagger::AbstractTagger, chunk_tags::Nothing; kwargs...)

No-op that skips any tag building, returning nothing, nothing

Otherwise, it would build the sparse matrix and the vocabulary (requires SparseArrays and LinearAlgebra packages to be loaded).

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.chunkdataMethod.

Access chunkdata for a subset of chunks, chunk_idx is a vector of chunk indices in the index

source


# PromptingTools.Experimental.RAGTools.cohere_apiMethod.
julia
cohere_api(;
 api_key::AbstractString,
 endpoint::String,
 url::AbstractString="https://api.cohere.ai/v1",
 http_kwargs::NamedTuple=NamedTuple(),
-kwargs...)

Lightweight wrapper around the Cohere API. See https://cohere.com/docs for more details.

Arguments

  • api_key: Your Cohere API key. You can get one from https://dashboard.cohere.com/welcome/register (trial access is for free).

  • endpoint: The Cohere endpoint to call.

  • url: The base URL for the Cohere API. Default is https://api.cohere.ai/v1.

  • http_kwargs: Any additional keyword arguments to pass to HTTP.post.

  • kwargs: Any additional keyword arguments to pass to the Cohere API.

source


# PromptingTools.Experimental.RAGTools.create_permutation_instructionMethod.
julia
create_permutation_instruction(
+kwargs...)

Lightweight wrapper around the Cohere API. See https://cohere.com/docs for more details.

Arguments

  • api_key: Your Cohere API key. You can get one from https://dashboard.cohere.com/welcome/register (trial access is for free).

  • endpoint: The Cohere endpoint to call.

  • url: The base URL for the Cohere API. Default is https://api.cohere.ai/v1.

  • http_kwargs: Any additional keyword arguments to pass to HTTP.post.

  • kwargs: Any additional keyword arguments to pass to the Cohere API.

source


# PromptingTools.Experimental.RAGTools.create_permutation_instructionMethod.
julia
create_permutation_instruction(
     context::AbstractVector{<:AbstractString}; rank_start::Integer = 1,
-    rank_end::Integer = 100, max_length::Integer = 512, template::Symbol = :RAGRankGPT)

Creates rendered template with injected context passages.

source


# PromptingTools.Experimental.RAGTools.extract_rankingMethod.
julia
extract_ranking(str::AbstractString)

Extracts the ranking from the response into a sorted array of integers.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
-    finder::BM25Similarity, dtm::AbstractDocumentTermMatrix,
+    rank_end::Integer = 100, max_length::Integer = 512, template::Symbol = :RAGRankGPT)

Creates rendered template with injected context passages.

source


# PromptingTools.Experimental.RAGTools.extract_rankingMethod.
julia
extract_ranking(str::AbstractString)

Extracts the ranking from the response into a sorted array of integers.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
+    finder::BitPackedCosineSimilarity, emb::AbstractMatrix{<:Bool},
     query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
-    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by DocumentTermMatrix in dtm) that are closest to query tokens (query_tokens) using BM25.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
+    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using bit-packed binary embeddings (in the index).

This is a two-pass approach:

  • First pass: Hamming distance in bit-packed binary form to get the top_k * rescore_multiplier (i.e., more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to bit-packed binary like this:

julia
bitpacked_emb = pack_bits(emb.>0)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
     finder::AbstractSimilarityFinder, index::AbstractChunkIndex,
     query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
-    top_k::Int = 100, kwargs...)

Finds the indices of chunks (represented by embeddings in index) that are closest to query embedding (query_emb).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
-    finder::CosineSimilarity, emb::AbstractMatrix{<:Real},
-    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
-    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest (in cosine similarity for CosineSimilarity()) to query embedding (query_emb).

finder is the logic used for the similarity search. Default is CosineSimilarity.

If minimum_similarity is provided, only indices with similarity greater than or equal to it are returned. Similarity can be between -1 and 1 (-1 = completely opposite, 1 = exactly the same).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
+    top_k::Int = 100, kwargs...)

Finds the indices of chunks (represented by embeddings in index) that are closest to query embedding (query_emb).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
     finder::BinaryCosineSimilarity, emb::AbstractMatrix{<:Bool},
     query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
-    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using binary embeddings (in the index).

This is a two-pass approach:

  • First pass: Hamming distance in binary form to get the top_k * rescore_multiplier (ie, more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to binary like this:

julia
binary_emb = map(>(0), emb)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
-    finder::BitPackedCosineSimilarity, emb::AbstractMatrix{<:Bool},
+    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using binary embeddings (in the index).

This is a two-pass approach:

  • First pass: Hamming distance in binary form to get the top_k * rescore_multiplier (ie, more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to binary like this:

julia
binary_emb = map(>(0), emb)

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
+    finder::BM25Similarity, dtm::AbstractDocumentTermMatrix,
+    query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
+    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by DocumentTermMatrix in dtm) that are closest to query tokens (query_tokens) using BM25.

Reference: Wikipedia: BM25. Implementation follows: The Next Generation of Lucene Relevance.

source


# PromptingTools.Experimental.RAGTools.find_closestFunction.
julia
find_closest(
+    finder::CosineSimilarity, emb::AbstractMatrix{<:Real},
     query_emb::AbstractVector{<:Real}, query_tokens::AbstractVector{<:AbstractString} = String[];
-    top_k::Int = 100, rescore_multiplier::Int = 4, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest to query embedding (query_emb) using bit-packed binary embeddings (in the index).

This is a two-pass approach:

  • First pass: Hamming distance in bit-packed binary form to get the top_k * rescore_multiplier (i.e., more than top_k) candidates.

  • Second pass: Rescore the candidates with float embeddings and return the top_k.

Returns only top_k closest indices.

Reference: HuggingFace: Embedding Quantization.

Examples

Convert any Float embeddings to bit-packed binary like this:

julia
bitpacked_emb = pack_bits(emb.>0)

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AnyTagFilter, index::AbstractChunkIndex,
+    top_k::Int = 100, minimum_similarity::AbstractFloat = -1.0, kwargs...)

Finds the indices of chunks (represented by embeddings in emb) that are closest (in cosine similarity for CosineSimilarity()) to query embedding (query_emb).

finder is the logic used for the similarity search. Default is CosineSimilarity.

If minimum_similarity is provided, only indices with similarity greater than or equal to it are returned. Similarity can be between -1 and 1 (-1 = completely opposite, 1 = exactly the same).

Returns only top_k closest indices.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AnyTagFilter, index::AbstractChunkIndex,
     tag::Union{AbstractString, Regex}; kwargs...)
 
 find_tags(method::AnyTagFilter, index::AbstractChunkIndex,
-    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ANY OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AllTagFilter, index::AbstractChunkIndex,
+    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ANY OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::AllTagFilter, index::AbstractChunkIndex,
     tag::Union{AbstractString, Regex}; kwargs...)
 
 find_tags(method::AllTagFilter, index::AbstractChunkIndex,
-    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ALL OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::NoTagFilter, index::AbstractChunkIndex,
+    tags::Vector{T}; kwargs...) where {T <: Union{AbstractString, Regex}}

Finds the indices of chunks (represented by tags in index) that have ALL OF the specified tag or tags.

source


# PromptingTools.Experimental.RAGTools.find_tagsMethod.
julia
find_tags(method::NoTagFilter, index::AbstractChunkIndex,
     tags::Union{T, AbstractVector{<:T}}; kwargs...) where {T <:
                                                            Union{
     AbstractString, Regex, Nothing}}
-    tags; kwargs...)

Returns all chunks in the index, ie, no filtering, so we simply return nothing (easier for dispatch).

source


# PromptingTools.Experimental.RAGTools.generate!Method.
julia
generate!(
+    tags; kwargs...)

Returns all chunks in the index, ie, no filtering, so we simply return nothing (easier for dispatch).

source


# PromptingTools.Experimental.RAGTools.generate!Method.
julia
generate!(
     generator::AbstractGenerator, index::AbstractDocumentIndex, result::AbstractRAGResult;
     verbose::Integer = 1,
     api_kwargs::NamedTuple = NamedTuple(),
@@ -246,18 +246,18 @@
 result = retrieve(index, question)
 
 # Generate the answer using the default generator, mutates the same result
-result = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.get_chunksMethod.
julia
get_chunks(chunker::AbstractChunker,
+result = generate!(index, result)

source


# PromptingTools.Experimental.RAGTools.get_chunksMethod.
julia
get_chunks(chunker::AbstractChunker,
     files_or_docs::Vector{<:AbstractString};
     sources::AbstractVector{<:AbstractString} = files_or_docs,
     verbose::Bool = true,
-    separators = ["\n\n", ". ", "\n", " "], max_length::Int = 256)

Chunks the provided files_or_docs into chunks of maximum length max_length (if possible with provided separators).

Supports two modes of operation:

  • chunker = FileChunker(): The function opens each file in files_or_docs and reads its contents.

  • chunker = TextChunker(): The function assumes that files_or_docs is a vector of strings to be chunked, you MUST provide corresponding sources.

Arguments

  • files_or_docs: A vector of valid file paths OR string documents to be chunked.

  • separators: A list of strings used as separators for splitting the text in each file into chunks. Default is [\n\n", ". ", "\n", " "]. See recursive_splitter for more details.

  • max_length: The maximum length of each chunk (if possible with provided separators). Default is 256.

  • sources: A vector of strings indicating the source of each chunk. Default is equal to files_or_docs (for reader=:files)

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BatchEmbedder, docs::AbstractVector{<:AbstractString};
+    separators = ["\n\n", ". ", "\n", " "], max_length::Int = 256)

Chunks the provided files_or_docs into chunks of maximum length max_length (if possible with provided separators).

Supports two modes of operation:

  • chunker = FileChunker(): The function opens each file in files_or_docs and reads its contents.

  • chunker = TextChunker(): The function assumes that files_or_docs is a vector of strings to be chunked, you MUST provide corresponding sources.

Arguments

  • files_or_docs: A vector of valid file paths OR string documents to be chunked.

  • separators: A list of strings used as separators for splitting the text in each file into chunks. Default is [\n\n", ". ", "\n", " "]. See recursive_splitter for more details.

  • max_length: The maximum length of each chunk (if possible with provided separators). Default is 256.

  • sources: A vector of strings indicating the source of each chunk. Default is equal to files_or_docs (for reader=:files)

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BatchEmbedder, docs::AbstractVector{<:AbstractString};
     verbose::Bool = true,
     model::AbstractString = PT.MODEL_EMBEDDING,
     truncate_dimension::Union{Int, Nothing} = nothing,
     cost_tracker = Threads.Atomic{Float64}(0.0),
     target_batch_size_length::Int = 80_000,
     ntasks::Int = 4 * Threads.nthreads(),
-    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner - BatchEmbedder.

BatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing, 0 will also do nothing.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BinaryBatchEmbedder, docs::AbstractVector{<:AbstractString};
+    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner - BatchEmbedder.

BatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing, 0 will also do nothing.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BinaryBatchEmbedder, docs::AbstractVector{<:AbstractString};
     verbose::Bool = true,
     model::AbstractString = PT.MODEL_EMBEDDING,
     truncate_dimension::Union{Int, Nothing} = nothing,
@@ -265,38 +265,47 @@
     cost_tracker = Threads.Atomic{Float64}(0.0),
     target_batch_size_length::Int = 80_000,
     ntasks::Int = 4 * Threads.nthreads(),
-    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix - BinaryBatchEmbedder.

BinaryBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing.

  • return_type: The type of the returned embeddings matrix. Default is Matrix{Bool}. Choose BitMatrix to minimize storage requirements, Matrix{Bool} to maximize performance in elementwise-ops.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BitPackedBatchEmbedder, docs::AbstractVector{<:AbstractString};
+    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix - BinaryBatchEmbedder.

BinaryBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing.

  • return_type: The type of the returned embeddings matrix. Default is Matrix{Bool}. Choose BitMatrix to minimize storage requirements, Matrix{Bool} to maximize performance in elementwise-ops.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

source


# PromptingTools.Experimental.RAGTools.get_embeddingsMethod.
julia
get_embeddings(embedder::BitPackedBatchEmbedder, docs::AbstractVector{<:AbstractString};
     verbose::Bool = true,
     model::AbstractString = PT.MODEL_EMBEDDING,
     truncate_dimension::Union{Int, Nothing} = nothing,
     cost_tracker = Threads.Atomic{Float64}(0.0),
     target_batch_size_length::Int = 80_000,
     ntasks::Int = 4 * Threads.nthreads(),
-    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix represented in UInt64 (bit-packed) - BitPackedBatchEmbedder.

BitPackedBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

The best option for FAST and MEMORY-EFFICIENT storage of embeddings, for retrieval use BitPackedCosineSimilarity.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

See also: unpack_bits, pack_bits, BitPackedCosineSimilarity.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::NoTagger, docs::AbstractVector{<:AbstractString};
-    kwargs...)

Simple no-op that skips any tagging of the documents

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::OpenTagger, docs::AbstractVector{<:AbstractString};
+    kwargs...)

Embeds a vector of docs using the provided model (kwarg model) in a batched manner and then returns the binary embeddings matrix represented in UInt64 (bit-packed) - BitPackedBatchEmbedder.

BitPackedBatchEmbedder tries to batch embedding calls for roughly 80K characters per call (to avoid exceeding the API rate limit) to reduce network latency.

The best option for FAST and MEMORY-EFFICIENT storage of embeddings, for retrieval use BitPackedCosineSimilarity.

Notes

  • docs are assumed to be already chunked to the reasonable sizes that fit within the embedding context limit.

  • If you get errors about exceeding input sizes, first check the max_length in your chunks. If that does NOT resolve the issue, try reducing the target_batch_size_length parameter (eg, 10_000) and number of tasks ntasks=1. Some providers cannot handle large batch sizes.

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for embedding. Default is PT.MODEL_EMBEDDING.

  • truncate_dimension: The dimensionality of the embeddings to truncate to. Default is nothing.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

  • target_batch_size_length: The target length (in characters) of each batch of document chunks sent for embedding. Default is 80_000 characters. Speeds up embedding process.

  • ntasks: The number of tasks to use for asyncmap. Default is 4 * Threads.nthreads().

See also: unpack_bits, pack_bits, BitPackedCosineSimilarity.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::NoTagger, docs::AbstractVector{<:AbstractString};
+    kwargs...)

Simple no-op that skips any tagging of the documents

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::OpenTagger, docs::AbstractVector{<:AbstractString};
     verbose::Bool = true,
     cost_tracker = Threads.Atomic{Float64}(0.0),
-    kwargs...)

Extracts "tags" (metadata/keywords) from a vector of docs using the provided model (kwarg model).

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for tags extraction. Default is PT.MODEL_CHAT.

  • template: A template to be used for tags extraction. Default is :RAGExtractMetadataShort.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::PassthroughTagger, docs::AbstractVector{<:AbstractString};
+    kwargs...)

Extracts "tags" (metadata/keywords) from a vector of docs using the provided model (kwarg model).

Arguments

  • docs: A vector of strings to be embedded.

  • verbose: A boolean flag for verbose output. Default is true.

  • model: The model to use for tags extraction. Default is PT.MODEL_CHAT.

  • template: A template to be used for tags extraction. Default is :RAGExtractMetadataShort.

  • cost_tracker: A Threads.Atomic{Float64} object to track the total cost of the API calls. Useful to pass the total cost to the parent call.

source


# PromptingTools.Experimental.RAGTools.get_tagsMethod.
julia
get_tags(tagger::PassthroughTagger, docs::AbstractVector{<:AbstractString};
     tags::AbstractVector{<:AbstractVector{<:AbstractString}},
-    kwargs...)

Pass tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]). It then builds the vocabulary from the tags and returns both the tags in matrix form and the vocabulary.

source


# PromptingTools.Experimental.RAGTools.getpropertynestedFunction.
julia
getpropertynested(
+    kwargs...)

Pass tags directly as Vector of Vectors of strings (ie, tags[i] is the tags for docs[i]). It then builds the vocabulary from the tags and returns both the tags in matrix form and the vocabulary.

source


# PromptingTools.Experimental.RAGTools.getpropertynestedFunction.
julia
getpropertynested(
     nt::NamedTuple, parent_keys::Vector{Symbol}, key::Symbol, default = nothing)

Get a property key from a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to get some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))
 getpropertynested(kw, [:abc], :def)
-# Output: "x"

source


# PromptingTools.Experimental.RAGTools.hamming_distanceMethod.
julia
hamming_distance(
-    mat::AbstractMatrix{T}, query::AbstractVector{T})::Vector{Int} where {T <: Integer}

Calculates the column-wise Hamming distance between a matrix of binary vectors mat and a single binary vector vect.

This is the first-pass ranking for BinaryCosineSimilarity method.

Implementation from domluna's tinyRAG.

source


# PromptingTools.Experimental.RAGTools.load_textMethod.
julia
load_text(chunker::AbstractChunker, input;
-    kwargs...)

Load text from input using the provided chunker

Available chunkers:

  • FileChunker: The function opens each file in input and reads its contents.

  • TextChunker: The function assumes that input is a vector of strings to be chunked, you MUST provide corresponding sources.

source


# PromptingTools.Experimental.RAGTools.merge_kwargs_nestedMethod.
julia
merge_kwargs_nested(nt1::NamedTuple, nt2::NamedTuple)

Merges two nested NamedTuples nt1 and nt2 recursively. The nt2 values will overwrite the nt1 values when overlapping.

Example

julia
kw = (; abc = (; def = "x"))
+# Output: "x"

source


# PromptingTools.Experimental.RAGTools.hamming_distanceMethod.
julia
hamming_distance(
+    mat::AbstractMatrix{T}, query::AbstractVector{T})::Vector{Int} where {T <: Integer}

Calculates the column-wise Hamming distance between a matrix of binary vectors mat and a single binary vector vect.

This is the first-pass ranking for BinaryCosineSimilarity method.

Implementation from domluna's tinyRAG.

source


# PromptingTools.Experimental.RAGTools.hcat_truncateMethod.
julia
hcat_truncate(matrices::AbstractVector{<:AbstractMatrix{T}},
+    truncate_dimension::Union{Nothing, Int} = nothing; verbose::Bool = false) where {T <:
+                                                                                     Real}

Horizontal concatenation of matrices, with optional truncation of the rows of each matrix to the specified dimension (reducing embedding dimensionality).

More efficient that a simple splatting, as the resulting matrix is pre-allocated in one go.

Returns: a Matrix{Float32}

Arguments

  • matrices::AbstractVector{<:AbstractMatrix{T}}: Vector of matrices to concatenate

  • truncate_dimension::Union{Nothing,Int}=nothing: Dimension to truncate to, or nothing or 0 to skip truncation. If truncated, the columns will be normalized.

  • verbose::Bool=false: Whether to print verbose output.

Examples

julia
a = rand(Float32, 1000, 10)
+b = rand(Float32, 1000, 20)
+
+c = hcat_truncate([a, b])
+size(c) # (1000, 30)
+
+d = hcat_truncate([a, b], 500)
+size(d) # (500, 30)

source


# PromptingTools.Experimental.RAGTools.load_textMethod.
julia
load_text(chunker::AbstractChunker, input;
+    kwargs...)

Load text from input using the provided chunker

Available chunkers:

  • FileChunker: The function opens each file in input and reads its contents.

  • TextChunker: The function assumes that input is a vector of strings to be chunked, you MUST provide corresponding sources.

source


# PromptingTools.Experimental.RAGTools.merge_kwargs_nestedMethod.
julia
merge_kwargs_nested(nt1::NamedTuple, nt2::NamedTuple)

Merges two nested NamedTuples nt1 and nt2 recursively. The nt2 values will overwrite the nt1 values when overlapping.

Example

julia
kw = (; abc = (; def = "x"))
 kw2 = (; abc = (; def = "x", def2 = 2), new = 1)
-merge_kwargs_nested(kw, kw2)

source


# PromptingTools.Experimental.RAGTools.pack_bitsMethod.
julia
pack_bits(arr::AbstractMatrix{<:Bool}) -> Matrix{UInt64}
+merge_kwargs_nested(kw, kw2)

source


# PromptingTools.Experimental.RAGTools.pack_bitsMethod.
julia
pack_bits(arr::AbstractMatrix{<:Bool}) -> Matrix{UInt64}
 pack_bits(vect::AbstractVector{<:Bool}) -> Vector{UInt64}

Pack a matrix or vector of boolean values into a more compact representation using UInt64.

Arguments (Input)

  • arr::AbstractMatrix{<:Bool}: A matrix of boolean values where the number of rows must be divisible by 64.

Returns

  • For arr::AbstractMatrix{<:Bool}: Returns a matrix of UInt64 where each element represents 64 boolean values from the original matrix.

Examples

For vectors:

julia
bin = rand(Bool, 128)
 binint = pack_bits(bin)
 binx = unpack_bits(binint)
 @assert bin == binx

For matrices:

julia
bin = rand(Bool, 128, 10)
 binint = pack_bits(bin)
 binx = unpack_bits(binint)
-@assert bin == binx

source


# PromptingTools.Experimental.RAGTools.permutation_step!Method.
julia
permutation_step!(
-    result::RankGPTResult; rank_start::Integer = 1, rank_end::Integer = 100, kwargs...)

One sub-step of the RankGPT algorithm permutation ranking within the window of chunks defined by rank_start and rank_end positions.

source


# PromptingTools.Experimental.RAGTools.preprocess_tokensFunction.
julia
preprocess_tokens(text::AbstractString, stemmer=nothing; stopwords::Union{Nothing,Set{String}}=nothing, min_length::Int=3)

Preprocess provided text by removing numbers, punctuation, and applying stemming for BM25 search index.

Returns a list of preprocessed tokens.

Example

julia
stemmer = Snowball.Stemmer("english")
+@assert bin == binx

source


# PromptingTools.Experimental.RAGTools.permutation_step!Method.
julia
permutation_step!(
+    result::RankGPTResult; rank_start::Integer = 1, rank_end::Integer = 100, kwargs...)

One sub-step of the RankGPT algorithm permutation ranking within the window of chunks defined by rank_start and rank_end positions.

source


# PromptingTools.Experimental.RAGTools.preprocess_tokensFunction.
julia
preprocess_tokens(text::AbstractString, stemmer=nothing; stopwords::Union{Nothing,Set{String}}=nothing, min_length::Int=3)

Preprocess provided text by removing numbers, punctuation, and applying stemming for BM25 search index.

Returns a list of preprocessed tokens.

Example

julia
stemmer = Snowball.Stemmer("english")
 stopwords = Set(["a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "some", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"])
 text = "This is a sample paragraph to test the functionality of your text preprocessor. It contains a mix of uppercase and lowercase letters, as well as punctuation marks such as commas, periods, and exclamation points! Let's see how your preprocessor handles quotes, like "this one", and also apostrophes, like in don't. Will it preserve the formatting of this paragraph, including the indentation and line breaks?"
-preprocess_tokens(text, stemmer; stopwords)

source


# PromptingTools.Experimental.RAGTools.print_htmlMethod.
julia
print_html([io::IO,] parent_node::AbstractAnnotatedNode)
+preprocess_tokens(text, stemmer; stopwords)

source


# PromptingTools.Experimental.RAGTools.print_htmlMethod.
julia
print_html([io::IO,] parent_node::AbstractAnnotatedNode)
 
 print_html([io::IO,] rag::AbstractRAGResult; add_sources::Bool = false,
     add_scores::Bool = false, default_styler = HTMLStyler(),
@@ -329,18 +338,18 @@
 
 # or to accumulate more nodes
 io = IOBuffer()
-print_html(io, parent_node)

source


# PromptingTools.Experimental.RAGTools.rank_gptMethod.
julia
rank_gpt(chunks::AbstractVector{<:AbstractString}, question::AbstractString;
+print_html(io, parent_node)

source


# PromptingTools.Experimental.RAGTools.rank_gptMethod.
julia
rank_gpt(chunks::AbstractVector{<:AbstractString}, question::AbstractString;
     verbose::Int = 1, rank_start::Integer = 1, rank_end::Integer = 100,
     window_size::Integer = 20, step::Integer = 10,
-    num_rounds::Integer = 1, model::String = "gpt4o", kwargs...)

Ranks the chunks based on their relevance for question. Returns the ranking permutation of the chunks in the order they are most relevant to the question (the first is the most relevant).

Example

julia
result = rank_gpt(chunks, question; rank_start=1, rank_end=25, window_size=8, step=4, num_rounds=3, model="gpt4o")

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.rank_sliding_window!Method.
julia
rank_sliding_window!(
+    num_rounds::Integer = 1, model::String = "gpt4o", kwargs...)

Ranks the chunks based on their relevance for question. Returns the ranking permutation of the chunks in the order they are most relevant to the question (the first is the most relevant).

Example

julia
result = rank_gpt(chunks, question; rank_start=1, rank_end=25, window_size=8, step=4, num_rounds=3, model="gpt4o")

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.rank_sliding_window!Method.
julia
rank_sliding_window!(
     result::RankGPTResult; verbose::Int = 1, rank_start = 1, rank_end = 100,
-    window_size = 20, step = 10, model::String = "gpt4o", kwargs...)

One single pass of the RankGPT algorithm permutation ranking across all positions between rank_start and rank_end.

source


# PromptingTools.Experimental.RAGTools.receive_permutation!Method.
julia
receive_permutation!(
+    window_size = 20, step = 10, model::String = "gpt4o", kwargs...)

One single pass of the RankGPT algorithm permutation ranking across all positions between rank_start and rank_end.

source


# PromptingTools.Experimental.RAGTools.receive_permutation!Method.
julia
receive_permutation!(
     curr_rank::AbstractVector{<:Integer}, response::AbstractString;
-    rank_start::Integer = 1, rank_end::Integer = 100)

Extracts and heals the permutation to contain all ranking positions.

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(args...; k::Int=60)

Merges multiple rankings and calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]
+    rank_start::Integer = 1, rank_end::Integer = 100)

Extracts and heals the permutation to contain all ranking positions.

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(args...; k::Int=60)

Merges multiple rankings and calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]
 positions2 = [2, 4, 6, 8, 10]
 positions3 = [2, 4, 6, 11, 12]
 
-merged_positions, scores = reciprocal_rank_fusion(positions1, positions2, positions3)

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(
+merged_positions, scores = reciprocal_rank_fusion(positions1, positions2, positions3)

source


# PromptingTools.Experimental.RAGTools.reciprocal_rank_fusionMethod.
julia
reciprocal_rank_fusion(
     positions1::AbstractVector{<:Integer}, scores1::AbstractVector{<:T},
     positions2::AbstractVector{<:Integer},
     scores2::AbstractVector{<:T}; k::Int = 60) where {T <: Real}

Merges two sets of rankings and their joint scores. Calculates the reciprocal rank score for each chunk (discounted by the inverse of the rank).

Example

julia
positions1 = [1, 3, 5, 7, 9]
@@ -348,15 +357,15 @@
 positions2 = [2, 4, 6, 8, 10]
 scores2 = [0.5, 0.6, 0.7, 0.8, 0.9]
 
-merged, scores = reciprocal_rank_fusion(positions1, scores1, positions2, scores2; k = 60)

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
+merged, scores = reciprocal_rank_fusion(positions1, scores1, positions2, scores2; k = 60)

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
     refiner::NoRefiner, index::AbstractChunkIndex, result::AbstractRAGResult;
-    kwargs...)

Simple no-op function for refine. It simply copies the result.answer and result.conversations[:answer] without any changes.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
+    kwargs...)

Simple no-op function for refine. It simply copies the result.answer and result.conversations[:answer] without any changes.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
     refiner::SimpleRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;
     verbose::Bool = true,
     model::AbstractString = PT.MODEL_CHAT,
     template::Symbol = :RAGAnswerRefiner,
     cost_tracker = Threads.Atomic{Float64}(0.0),
-    kwargs...)

Give model a chance to refine the answer (using the same or different context than previously provided).

This method uses the same context as the original answer, however, it can be modified to do additional retrieval and use a different context.

Returns

  • Mutated result with result.final_answer and the full conversation saved in result.conversations[:final_answer]

Arguments

  • refiner::SimpleRefiner: The method to use for refining the answer. Uses aigenerate.

  • index::AbstractDocumentIndex: The index containing chunks and sources.

  • result::AbstractRAGResult: The result containing the context and question to generate the answer for.

  • model::AbstractString: The model to use for generating the answer. Defaults to PT.MODEL_CHAT.

  • verbose::Bool: If true, enables verbose logging.

  • template::Symbol: The template to use for the aigenerate function. Defaults to :RAGAnswerRefiner.

  • cost_tracker: An atomic counter to track the cost of the operation.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
+    kwargs...)

Give model a chance to refine the answer (using the same or different context than previously provided).

This method uses the same context as the original answer, however, it can be modified to do additional retrieval and use a different context.

Returns

  • Mutated result with result.final_answer and the full conversation saved in result.conversations[:final_answer]

Arguments

  • refiner::SimpleRefiner: The method to use for refining the answer. Uses aigenerate.

  • index::AbstractDocumentIndex: The index containing chunks and sources.

  • result::AbstractRAGResult: The result containing the context and question to generate the answer for.

  • model::AbstractString: The model to use for generating the answer. Defaults to PT.MODEL_CHAT.

  • verbose::Bool: If true, enables verbose logging.

  • template::Symbol: The template to use for the aigenerate function. Defaults to :RAGAnswerRefiner.

  • cost_tracker: An atomic counter to track the cost of the operation.

source


# PromptingTools.Experimental.RAGTools.refine!Method.
julia
refine!(
     refiner::TavilySearchRefiner, index::AbstractDocumentIndex, result::AbstractRAGResult;
     verbose::Bool = true,
     model::AbstractString = PT.MODEL_CHAT,
@@ -371,13 +380,13 @@
 cfg.generator.refiner = RT.TavilySearchRefiner()
 
 result = airag(cfg, index; question, return_all = true)
-pprint(result)

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;
+pprint(result)

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;
     verbose::Bool = true,
     model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryHyDE,
-    cost_tracker = Threads.Atomic{Float64}(0.0))

Rephrases the question using the provided rephraser template = RAGQueryHyDE.

Special flavor of rephrasing using HyDE (Hypothetical Document Embedding) method, which aims to find the documents most similar to a synthetic passage that would be a good answer to our question.

Returns both the original and the rephrased question.

Arguments

  • rephraser: Type that dictates the logic of rephrasing step.

  • question: The question to be rephrased.

  • model: The model to use for rephrasing. Default is PT.MODEL_CHAT.

  • template: The rephrasing template to use. Default is :RAGQueryHyDE. Find more with aitemplates("rephrase").

  • verbose: A boolean flag indicating whether to print verbose logging. Default is true.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::NoRephraser, question::AbstractString; kwargs...)

No-op, simple passthrough.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;
+    cost_tracker = Threads.Atomic{Float64}(0.0))

Rephrases the question using the provided rephraser template = RAGQueryHyDE.

Special flavor of rephrasing using HyDE (Hypothetical Document Embedding) method, which aims to find the documents most similar to a synthetic passage that would be a good answer to our question.

Returns both the original and the rephrased question.

Arguments

  • rephraser: Type that dictates the logic of rephrasing step.

  • question: The question to be rephrased.

  • model: The model to use for rephrasing. Default is PT.MODEL_CHAT.

  • template: The rephrasing template to use. Default is :RAGQueryHyDE. Find more with aitemplates("rephrase").

  • verbose: A boolean flag indicating whether to print verbose logging. Default is true.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::NoRephraser, question::AbstractString; kwargs...)

No-op, simple passthrough.

source


# PromptingTools.Experimental.RAGTools.rephraseMethod.
julia
rephrase(rephraser::SimpleRephraser, question::AbstractString;
     verbose::Bool = true,
     model::String = PT.MODEL_CHAT, template::Symbol = :RAGQueryOptimizer,
-    cost_tracker = Threads.Atomic{Float64}(0.0), kwargs...)

Rephrases the question using the provided rephraser template.

Returns both the original and the rephrased question.

Arguments

  • rephraser: Type that dictates the logic of rephrasing step.

  • question: The question to be rephrased.

  • model: The model to use for rephrasing. Default is PT.MODEL_CHAT.

  • template: The rephrasing template to use. Default is :RAGQueryOptimizer. Find more with aitemplates("rephrase").

  • verbose: A boolean flag indicating whether to print verbose logging. Default is true.

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(
+    cost_tracker = Threads.Atomic{Float64}(0.0), kwargs...)

Rephrases the question using the provided rephraser template.

Returns both the original and the rephrased question.

Arguments

  • rephraser: Type that dictates the logic of rephrasing step.

  • question: The question to be rephrased.

  • model: The model to use for rephrasing. Default is PT.MODEL_CHAT.

  • template: The rephrasing template to use. Default is :RAGQueryOptimizer. Find more with aitemplates("rephrase").

  • verbose: A boolean flag indicating whether to print verbose logging. Default is true.

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(
     reranker::CohereReranker, index::AbstractDocumentIndex, question::AbstractString,
     candidates::AbstractCandidateChunks;
     verbose::Bool = false,
@@ -386,7 +395,7 @@
     model::AbstractString = "rerank-english-v3.0",
     return_documents::Bool = false,
     cost_tracker = Threads.Atomic{Float64}(0.0),
-    kwargs...)

Re-ranks a list of candidate chunks using the Cohere Rerank API. See https://cohere.com/rerank for more details.

Arguments

  • reranker: Using Cohere API

  • index: The index that holds the underlying chunks to be re-ranked.

  • question: The query to be used for the search.

  • candidates: The candidate chunks to be re-ranked.

  • top_n: The number of most relevant documents to return. Default is length(documents).

  • model: The model to use for reranking. Default is rerank-english-v3.0.

  • return_documents: A boolean flag indicating whether to return the reranked documents in the response. Default is false.

  • verbose: A boolean flag indicating whether to print verbose logging. Default is false.

  • cost_tracker: An atomic counter to track the cost of the retrieval. Not implemented /tracked (cost unclear). Provided for consistency.

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(
+    kwargs...)

Re-ranks a list of candidate chunks using the Cohere Rerank API. See https://cohere.com/rerank for more details.

Arguments

  • reranker: Using Cohere API

  • index: The index that holds the underlying chunks to be re-ranked.

  • question: The query to be used for the search.

  • candidates: The candidate chunks to be re-ranked.

  • top_n: The number of most relevant documents to return. Default is length(documents).

  • model: The model to use for reranking. Default is rerank-english-v3.0.

  • return_documents: A boolean flag indicating whether to return the reranked documents in the response. Default is false.

  • verbose: A boolean flag indicating whether to print verbose logging. Default is false.

  • cost_tracker: An atomic counter to track the cost of the retrieval. Not implemented /tracked (cost unclear). Provided for consistency.

source


# PromptingTools.Experimental.RAGTools.rerankMethod.
julia
rerank(
     reranker::RankGPTReranker, index::AbstractDocumentIndex, question::AbstractString,
     candidates::AbstractCandidateChunks;
     api_key::AbstractString = PT.OPENAI_API_KEY,
@@ -399,7 +408,7 @@
 question = "What are the best practices for parallel computing in Julia?"
 
 cfg = RAGConfig(; retriever = SimpleRetriever(; reranker = RT.RankGPTReranker()))
-msg = airag(cfg, index; question, return_all = true)

To get full verbosity of logs, set verbose = 5 (anything higher than 3).

julia
msg = airag(cfg, index; question, return_all = true, verbose = 5)

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.retrieveMethod.
julia
retrieve(retriever::AbstractRetriever,
+msg = airag(cfg, index; question, return_all = true)

To get full verbosity of logs, set verbose = 5 (anything higher than 3).

julia
msg = airag(cfg, index; question, return_all = true, verbose = 5)

Reference

[1] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents by W. Sun et al. [2] RankGPT Github

source


# PromptingTools.Experimental.RAGTools.retrieveMethod.
julia
retrieve(retriever::AbstractRetriever,
     index::AbstractChunkIndex,
     question::AbstractString;
     verbose::Integer = 1,
@@ -440,7 +449,7 @@
     rephraser_kwargs = (; model = "custom"),
     embedder_kwargs = (; model = "custom"),
     tagger_kwargs = (; model = "custom"), api_kwargs = (;
-        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(index::AbstractChunkIndex, qa_items::AbstractVector{<:QAEvalItem};
+        url = "http://localhost:8080"))

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(index::AbstractChunkIndex, qa_items::AbstractVector{<:QAEvalItem};
     api_kwargs::NamedTuple = NamedTuple(),
     airag_kwargs::NamedTuple = NamedTuple(),
     qa_evals_kwargs::NamedTuple = NamedTuple(),
@@ -455,20 +464,20 @@
 results = filter(x->!isnothing(x.answer_score), results);
 
 # See average judge score
-mean(x->x.answer_score, results)

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(qa_item::QAEvalItem, ctx::RAGResult; verbose::Bool = true,
+mean(x->x.answer_score, results)

source


# PromptingTools.Experimental.RAGTools.run_qa_evalsMethod.
julia
run_qa_evals(qa_item::QAEvalItem, ctx::RAGResult; verbose::Bool = true,
              parameters_dict::Dict{Symbol, <:Any}, judge_template::Symbol = :RAGJudgeAnswerFromContext,
              model_judge::AbstractString, api_kwargs::NamedTuple = NamedTuple()) -> QAEvalResult

Evaluates a single QAEvalItem using RAG details (RAGResult) and returns a QAEvalResult structure. This function assesses the relevance and accuracy of the answers generated in a QA evaluation context.

Arguments

  • qa_item::QAEvalItem: The QA evaluation item containing the question and its answer.

  • ctx::RAGResult: The RAG result used for generating the QA pair, including the original context and the answers. Comes from airag(...; return_context=true)

  • verbose::Bool: If true, enables verbose logging. Defaults to true.

  • parameters_dict::Dict{Symbol, Any}: Track any parameters used for later evaluations. Keys must be Symbols.

  • judge_template::Symbol: The template symbol for the AI model used to judge the answer. Defaults to :RAGJudgeAnswerFromContext.

  • model_judge::AbstractString: The AI model used for judging the answer's quality. Defaults to standard chat model, but it is advisable to use more powerful model GPT-4.

  • api_kwargs::NamedTuple: Parameters that will be forwarded to the API endpoint.

Returns

QAEvalResult: An evaluation result that includes various scores and metadata related to the QA evaluation.

Notes

  • The function computes a retrieval score and rank based on how well the context matches the QA context.

  • It then uses the judge_template and model_judge to score the answer's accuracy and relevance.

  • In case of errors during evaluation, the function logs a warning (if verbose is true) and the answer_score will be set to nothing.

Examples

Evaluating a QA pair using a specific context and model:

julia
qa_item = QAEvalItem(question="What is the capital of France?", answer="Paris", context="France is a country in Europe.")
 ctx = RAGResult(source="Wikipedia", context="France is a country in Europe.", answer="Paris")
 parameters_dict = Dict("param1" => "value1", "param2" => "value2")
 
-eval_result = run_qa_evals(qa_item, ctx, parameters_dict=parameters_dict, model_judge="MyAIJudgeModel")

source


# PromptingTools.Experimental.RAGTools.score_retrieval_hitMethod.

Returns 1.0 if context overlaps or is contained within any of the candidate_context

source


# PromptingTools.Experimental.RAGTools.score_retrieval_rankMethod.

Returns Integer rank of the position where context overlaps or is contained within a candidate_context

source


# PromptingTools.Experimental.RAGTools.score_to_unit_scaleMethod.
julia
score_to_unit_scale(x::AbstractVector{T}) where T<:Real

Shift and scale a vector of scores to the unit scale [0, 1].

Example

julia
x = [1.0, 2.0, 3.0, 4.0, 5.0]
-scaled_x = score_to_unit_scale(x)

source


# PromptingTools.Experimental.RAGTools.set_node_style!Method.
julia
set_node_style!(::TrigramAnnotater, node::AnnotatedNode;
+eval_result = run_qa_evals(qa_item, ctx, parameters_dict=parameters_dict, model_judge="MyAIJudgeModel")

source


# PromptingTools.Experimental.RAGTools.score_retrieval_hitMethod.

Returns 1.0 if context overlaps or is contained within any of the candidate_context

source


# PromptingTools.Experimental.RAGTools.score_retrieval_rankMethod.

Returns Integer rank of the position where context overlaps or is contained within a candidate_context

source


# PromptingTools.Experimental.RAGTools.score_to_unit_scaleMethod.
julia
score_to_unit_scale(x::AbstractVector{T}) where T<:Real

Shift and scale a vector of scores to the unit scale [0, 1].

Example

julia
x = [1.0, 2.0, 3.0, 4.0, 5.0]
+scaled_x = score_to_unit_scale(x)

source


# PromptingTools.Experimental.RAGTools.set_node_style!Method.
julia
set_node_style!(::TrigramAnnotater, node::AnnotatedNode;
     low_threshold::Float64 = 0.0, medium_threshold::Float64 = 0.5, high_threshold::Float64 = 1.0,
     default_styler::AbstractAnnotationStyler = Styler(),
     low_styler::AbstractAnnotationStyler = Styler(color = :magenta, bold = false),
     medium_styler::AbstractAnnotationStyler = Styler(color = :blue, bold = false),
     high_styler::AbstractAnnotationStyler = Styler(color = :nothing, bold = false),
-    bold_multihits::Bool = false)

Sets style of node based on the provided rules

source


# PromptingTools.Experimental.RAGTools.setpropertynestedMethod.
julia
setpropertynested(nt::NamedTuple, parent_keys::Vector{Symbol},
+    bold_multihits::Bool = false)

Sets style of node based on the provided rules

source


# PromptingTools.Experimental.RAGTools.setpropertynestedMethod.
julia
setpropertynested(nt::NamedTuple, parent_keys::Vector{Symbol},
     key::Symbol,
     value

)

Setter for a property key in a nested NamedTuple nt, where the property is nested to a key in parent_keys.

Useful for nested kwargs where we want to change some property in parent_keys subset (eg, model in retriever_kwargs).

Examples

julia
kw = (; abc = (; def = "x"))
 setpropertynested(kw, [:abc], :def, "y")
@@ -478,12 +487,12 @@
     :model, "gpt4t")

Or changing an embedding model (across both indexer and retriever steps, because it's same step name):

julia
kwargs = setpropertynested(
         kwargs, [:embedder_kwargs],
         :model, "text-embedding-3-large"
-    )

source


# PromptingTools.Experimental.RAGTools.split_into_code_and_sentencesMethod.
julia
split_into_code_and_sentences(input::Union{String, SubString{String}})

Splits text block into code or text and sub-splits into units.

If code block, it splits by newline but keep the group_id the same (to have the same source) If text block, splits into sentences, bullets, etc., provides different group_id (to have different source)

source


# PromptingTools.Experimental.RAGTools.tags_extractMethod.
julia
tags_extract(item::Tag)
+    )

source


# PromptingTools.Experimental.RAGTools.split_into_code_and_sentencesMethod.
julia
split_into_code_and_sentences(input::Union{String, SubString{String}})

Splits text block into code or text and sub-splits into units.

If code block, it splits by newline but keep the group_id the same (to have the same source) If text block, splits into sentences, bullets, etc., provides different group_id (to have different source)

source


# PromptingTools.Experimental.RAGTools.tags_extractMethod.
julia
tags_extract(item::Tag)
 tags_extract(tags::Vector{Tag})

Extracts the Tag item into a string of the form category:::value (lowercased and spaces replaced with underscores).

Example

julia
msg = aiextract(:RAGExtractMetadataShort; return_type=MaybeTags, text="I like package DataFrames", instructions="None.")
-metadata = tags_extract(msg.content.items)

source


# PromptingTools.Experimental.RAGTools.token_with_boundariesMethod.
julia
token_with_boundaries(
+metadata = tags_extract(msg.content.items)

source


# PromptingTools.Experimental.RAGTools.token_with_boundariesMethod.
julia
token_with_boundaries(
     prev_token::Union{Nothing, AbstractString}, curr_token::AbstractString,
-    next_token::Union{Nothing, AbstractString})

Joins the three tokens together. Useful to add boundary tokens (like spaces vs brackets) to the curr_token to improve the matched context (ie, separate partial matches from exact match)

source


# PromptingTools.Experimental.RAGTools.tokenizeMethod.
julia
tokenize(input::Union{String, SubString{String}})

Tokenizes provided input by spaces, special characters or Julia symbols (eg, =>).

Unlike other tokenizers, it aims to lossless - ie, keep both the separated text and the separators.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(index::AbstractChunkIndex, positions::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() is used to re-align positions in case index is a view.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(
-    index::SubChunkIndex, pos::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() or tags() are used to re-align positions to the "parent" index.

source


# PromptingTools.Experimental.RAGTools.trigram_support!Method.
julia
trigram_support!(parent_node::AnnotatedNode,
+    next_token::Union{Nothing, AbstractString})

Joins the three tokens together. Useful to add boundary tokens (like spaces vs brackets) to the curr_token to improve the matched context (ie, separate partial matches from exact match)

source


# PromptingTools.Experimental.RAGTools.tokenizeMethod.
julia
tokenize(input::Union{String, SubString{String}})

Tokenizes provided input by spaces, special characters or Julia symbols (eg, =>).

Unlike other tokenizers, it aims to lossless - ie, keep both the separated text and the separators.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(index::AbstractChunkIndex, positions::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() is used to re-align positions in case index is a view.

source


# PromptingTools.Experimental.RAGTools.translate_positions_to_parentMethod.
julia
translate_positions_to_parent(
+    index::SubChunkIndex, pos::AbstractVector{<:Integer})

Translate positions to the parent index. Useful to convert between positions in a view and the original index.

Used whenever a chunkdata() or tags() are used to re-align positions to the "parent" index.

source


# PromptingTools.Experimental.RAGTools.trigram_support!Method.
julia
trigram_support!(parent_node::AnnotatedNode,
     context_trigrams::AbstractVector, trigram_func::F1 = trigrams, token_transform::F2 = identity;
     skip_trigrams::Bool = false, min_score::Float64 = 0.5,
     min_source_score::Float64 = 0.25,
@@ -492,7 +501,7 @@
 node = AnnotatedNode(content = "xyz")  trigram_support!(node, context_trigrams) # updates node.children! ```
 
 
-[source](https://github.com/svilupp/PromptingTools.jl/blob/c54c8d466f2a8b06af05f0879aa72a18956d99a3/src/Experimental/RAGTools/annotation.jl#L215-L244)
+[source](https://github.com/svilupp/PromptingTools.jl/blob/c137951a1939ad22b9dfe499418eafea739e0767/src/Experimental/RAGTools/annotation.jl#L215-L244)
 
 </div>
 <br>
@@ -503,12 +512,12 @@
 
 
 ```julia
-trigrams(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a vector of trigrams (combination of three consecutive characters found in the input_string).

If add_word is provided, it is added to the resulting array. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.Experimental.RAGTools.trigrams_hashedMethod.
julia
trigrams_hashed(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a Set of hashed trigrams (combination of three consecutive characters found in the input_string).

It is more efficient for lookups in large strings (eg, >100K characters).

If add_word is provided, it is added to the resulting array to hash. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.last_messageMethod.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source


# PromptingTools.last_outputMethod.

Extracts the last output (generated text answer) from the RAGResult.

source


# PromptingTools.pprintMethod.
julia
PromptingTools.pprint(
+trigrams(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a vector of trigrams (combination of three consecutive characters found in the input_string).

If add_word is provided, it is added to the resulting array. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.Experimental.RAGTools.trigrams_hashedMethod.
julia
trigrams_hashed(input_string::AbstractString; add_word::AbstractString = "")

Splits provided input_string into a Set of hashed trigrams (combination of three consecutive characters found in the input_string).

It is more efficient for lookups in large strings (eg, >100K characters).

If add_word is provided, it is added to the resulting array to hash. Useful to add the full word itself to the resulting array for exact match.

source


# PromptingTools.last_messageMethod.
julia
PT.last_message(result::RAGResult)

Extract the last message from the RAGResult. It looks for final_answer first, then answer fields in the conversations dictionary. Returns nothing if not found.

source


# PromptingTools.last_outputMethod.

Extracts the last output (generated text answer) from the RAGResult.

source


# PromptingTools.pprintMethod.
julia
PromptingTools.pprint(
     io::IO, node::AbstractAnnotatedNode;
-    text_width::Int = displaysize(io)[2], add_newline::Bool = true)

Pretty print the node to the io stream, including all its children

Supports only node.style::Styler for now.

source


# PromptingTools.pprintMethod.
julia
PT.pprint(
+    text_width::Int = displaysize(io)[2], add_newline::Bool = true)

Pretty print the node to the io stream, including all its children

Supports only node.style::Styler for now.

source


# PromptingTools.pprintMethod.
julia
PT.pprint(
     io::IO, r::AbstractRAGResult; add_context::Bool = false,
-    text_width::Int = displaysize(io)[2], annotater_kwargs...)

Pretty print the RAG result r to the given io stream.

If add_context is true, the context will be printed as well. The text_width parameter can be used to control the width of the output.

You can provide additional keyword arguments to the annotater, eg, add_sources, add_scores, min_score, etc. See annotate_support for more details.

source


- + text_width::Int = displaysize(io)[2], annotater_kwargs...)

Pretty print the RAG result r to the given io stream.

If add_context is true, the context will be printed as well. The text_width parameter can be used to control the width of the output.

You can provide additional keyword arguments to the annotater, eg, add_sources, add_scores, min_score, etc. See annotate_support for more details.

source


+ \ No newline at end of file