Step-by-step guide to installing and setting up Mira Flows SDK for your project
Datasets in Mira Flows support Retrieval-Augmented Generation (RAG) to enhance flows with specific knowledge. This capability allows flows to leverage custom knowledge bases for improved accuracy and contextual awareness in their responses. 🤖📈
# Add URL to your datasetclient.dataset.add_source("author/dataset_name", url="example.com")# Add file to your datasetclient.dataset.add_source("author/dataset_name", file_path="path/to/my/file.csv")
Linking Dataset with Flow
Add the following configuration to your flow.yaml file:
.yaml
dataset: source: "author/dataset_name"
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"mira","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/mira_favicon.svg","logo":{"light":"https://mintcdn.com/miranetwork/5mT6EZF6-vJmzASD/logo/logo-on-light.svg?fit=max\u0026auto=format\u0026n=5mT6EZF6-vJmzASD\u0026q=85\u0026s=e9d9f5a70be9921061f36021fd12ada6","dark":"https://mintcdn.com/miranetwork/5mT6EZF6-vJmzASD/logo/logo-on-dark.svg?fit=max\u0026auto=format\u0026n=5mT6EZF6-vJmzASD\u0026q=85\u0026s=be067706d7c5f51df09ba6467372eb71","href":"https://flow-docs.mira.network/documentation/get-started/introduction"},"background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://console.mira.network"}},"search":{"prompt":"Search documentation..."},"footer":{"socials":{"x":"https://x.com/Mira_Network","github":"https://github.com/Aroha-Labs/flow-docs","linkedin":"https://www.linkedin.com/company/mira-aroha-labs"}},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.com/invite/mira-network","icon":"discord"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"miranetwork","hasAudioNarration":false,"actualSubdomain":"miranetwork","customDomains":["flow-docs.mira.network"],"gitSource":{"type":"github","owner":"aroha-labs","repo":"flow-docs","deployBranch":"transitioning-docs","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true},"entitlements":{},"buildId":"6ae923b364072a14c672d444:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"How To Guides","count":6},{"language":"default","tag":"Examples","count":4},{"language":"default","tag":"Core Concepts","count":3},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Changelog","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"documentation/core-concepts/datasets-and-rag","slug":"/documentation/core-concepts/datasets-and-rag","pageMetadata":{"title":"Datasets and RAG","description":"Step-by-step guide to installing and setting up Mira Flows SDK for your project","icon":"database","iconType":"light","href":"/documentation/core-concepts/datasets-and-rag"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Step-by-step guide to installing and setting up Mira Flows SDK for your project\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Datasets in `,_jsx(_components.strong,{children:`Mira Flows`}),` support `,_jsx(_components.strong,{children:`Retrieval-Augmented Generation (RAG)`}),` to enhance flows with specific knowledge. This capability allows flows to leverage custom knowledge bases for improved accuracy and contextual awareness in their responses. 🤖📈`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`dataset-attributes`,children:`Dataset Attributes`}),`\n`,_jsx(`br`,{}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.strong,{children:`Component`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`Description`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`Required`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`Example`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Name`})}),_jsx(_components.td,{children:`Unique identifier for dataset`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"author/dataset_name\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Description`})}),_jsx(_components.td,{children:`Purpose and content overview`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"Optional description\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Source Type`})}),_jsx(_components.td,{children:`Type of data being added`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"url\"`}),` or `,_jsx(_components.code,{children:`\"file_path\"`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Source Path`})}),_jsx(_components.td,{children:`Location of source data`}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\"example.com\"`}),` or `,_jsx(_components.code,{children:`\"path/to/file\"`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Author`})}),_jsx(_components.td,{children:`Creator’s username`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"your-username\"`})})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`supported-file-formats`,children:`Supported File Formats`}),`\n`,_jsx(`br`,{}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.strong,{children:`Format`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`Description`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`Processing Method`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`PDF (.pdf)`})}),_jsx(_components.td,{children:`Document files`}),_jsx(_components.td,{children:`Text extraction from document`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Markdown (.md)`})}),_jsx(_components.td,{children:`Formatted text`}),_jsx(_components.td,{children:`Text extraction from document`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`URL`})}),_jsx(_components.td,{children:`Web content`}),_jsx(_components.td,{children:`Web content scraping`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`CSV (.csv)`})}),_jsx(_components.td,{children:`URL listings`}),_jsx(_components.td,{children:`URL extraction and content scraping`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Text (.txt)`})}),_jsx(_components.td,{children:`Plain text`}),_jsx(_components.td,{children:`Direct text extraction`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`creating-and-configuring-datasets`,children:`Creating and Configuring Datasets`}),`\n`,_jsx(Heading,{level:`3`,id:`creating-a-dataset`,children:`Creating a Dataset`}),`\n`,_jsx(CodeBlock,{filename:`Python`,numberOfLines:`6`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mira_sdk `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MiraClient`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MiraClient(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create dataset`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client.dataset.create(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"author/dataset_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Optional description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`adding-data-sources`,children:`Adding Data Sources`}),`\n`,_jsx(CodeBlock,{filename:`Python`,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Add URL to your dataset`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client.dataset.add_source(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"author/dataset_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Add file to your dataset`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client.dataset.add_source(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"author/dataset_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`file_path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"path/to/my/file.csv\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`linking-dataset-with-flow`,children:`Linking Dataset with Flow`}),`\n`,_jsxs(_components.p,{children:[`Add the following configuration to your `,_jsx(_components.code,{children:`flow.yaml`}),` file:`]}),`\n`,_jsx(CodeBlock,{filename:`.yaml`,numberOfLines:`2`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dataset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"author/dataset_name\"`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Datasets and RAG","description":"Step-by-step guide to installing and setting up Mira Flows SDK for your project","icon":"database","iconType":"light","href":"/documentation/core-concepts/datasets-and-rag"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Dataset Attributes","slug":"dataset-attributes","depth":2,"children":[]},{"title":"Supported File Formats","slug":"supported-file-formats","depth":2,"children":[]},{"title":"Creating and Configuring Datasets","slug":"creating-and-configuring-datasets","depth":2,"children":[{"title":"Creating a Dataset","slug":"creating-a-dataset","depth":3,"children":[]},{"title":"Adding Data Sources","slug":"adding-data-sources","depth":3,"children":[]},{"title":"Linking Dataset with Flow","slug":"linking-dataset-with-flow","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"miranetwork","siteName":"mira","title":"Datasets and RAG - mira","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T04:59:14.642Z","originalFileLocation":"documentation/core-concepts/datasets-and-rag.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Step-by-step guide to installing and setting up Mira Flows SDK for your project\">\u003cmeta data-mint-head name=\"application-name\" content=\"mira\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Datasets and RAG - mira\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step-by-step guide to installing and setting up Mira Flows SDK for your project\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"mira\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://miranetwork.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Datasets+and+RAG\u0026amp;description=Step-by-step+guide+to+installing+and+setting+up+Mira+Flows+SDK+for+your+project\u0026amp;theme=055d8121b493c60e7732aade\u0026amp;signature=8276d157a37cbf5bbda1756a44b98643802477b394c29afa8bc404b45e1e5099\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Datasets and RAG - mira\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step-by-step guide to installing and setting up Mira Flows SDK for your project\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://miranetwork.mintlify.site/_mintlify/api/og/v2?division=Core+Concepts\u0026amp;title=Datasets+and+RAG\u0026amp;description=Step-by-step+guide+to+installing+and+setting+up+Mira+Flows+SDK+for+your+project\u0026amp;theme=055d8121b493c60e7732aade\u0026amp;signature=8276d157a37cbf5bbda1756a44b98643802477b394c29afa8bc404b45e1e5099\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/miranetwork/1zpJjrLnueHD-zls/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"mira\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/core-concepts/datasets-and-rag.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://flow-docs.mira.network/#organization\",\"name\":\"mira\",\"url\":\"https://flow-docs.mira.network\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/miranetwork/5mT6EZF6-vJmzASD/logo/logo-on-light.svg?fit=max\u0026auto=format\u0026n=5mT6EZF6-vJmzASD\u0026q=85\u0026s=e9d9f5a70be9921061f36021fd12ada6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://flow-docs.mira.network#website\",\"name\":\"mira\",\"url\":\"https://flow-docs.mira.network\",\"publisher\":{\"@id\":\"https://flow-docs.mira.network/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag#webpage\",\"url\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag\",\"name\":\"Datasets and RAG\",\"description\":\"Step-by-step guide to installing and setting up Mira Flows SDK for your project\",\"dateModified\":\"2026-01-07T04:59:14.642Z\",\"isPartOf\":{\"@id\":\"https://flow-docs.mira.network#website\"},\"breadcrumb\":{\"@id\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Concepts\",\"item\":\"https://flow-docs.mira.network/documentation/core-concepts/elemental-flows\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Datasets and RAG\",\"item\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag#article\",\"headline\":\"Datasets and RAG\",\"name\":\"Datasets and RAG\",\"description\":\"Step-by-step guide to installing and setting up Mira Flows SDK for your project\",\"url\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag\",\"mainEntityOfPage\":{\"@id\":\"https://flow-docs.mira.network/documentation/core-concepts/datasets-and-rag#webpage\"},\"dateModified\":\"2026-01-07T04:59:14.642Z\",\"publisher\":{\"@id\":\"https://flow-docs.mira.network/#organization\"},\"isPartOf\":{\"@id\":\"https://flow-docs.mira.network#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"mira\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"mira\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/documentation/core-concepts/datasets-and-rag.md","siteName":"mira","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.com/invite/mira-network","icon":"discord"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","icon":"house","iconType":"light","href":"/documentation/get-started/introduction"},{"title":"Installation","icon":"download","iconType":"light","href":"/documentation/get-started/installation"},{"title":"Models","icon":"cube","iconType":"light","href":"/documentation/get-started/models"}]},{"group":"Core Concepts","pages":[{"title":"Elemental Flows ","icon":"atom","iconType":"light","href":"/documentation/core-concepts/elemental-flows"},{"title":"Compound Flows ","description":"Step-by-step guide to installing and setting up Mira Flows SDK for your project","icon":"diagram-project","iconType":"light","href":"/documentation/core-concepts/compound-flows"},{"title":"Datasets and RAG","icon":"database","iconType":"light","href":"/documentation/core-concepts/datasets-and-rag"}]},{"group":"How To Guides","pages":[{"title":"Use Marketplace Flows","description":"Learn how to discover, integrate, and customize pre-built flows from the Mira Flows Marketplace","icon":"store","iconType":"light","href":"/documentation/how-to-guides/using-marketplace-flows"},{"title":"Build Elemental Flows","icon":"puzzle-piece","iconType":"light","href":"/documentation/how-to-guides/building-elemental-flows"},{"title":"Build Compound Flows","icon":"layer-group","iconType":"light","href":"/documentation/how-to-guides/building-compound-flows"},{"title":"Implement RAG Capabilities","icon":"magnifying-glass","iconType":"light","href":"/documentation/how-to-guides/implementing-rag-capabilities"},{"title":"Save and Customize Marketplace Flows","icon":"floppy-disk","iconType":"light","href":"/documentation/how-to-guides/saving-\u0026-customising-marketplace-flows"},{"title":"Turn flows into Actionable Agents","icon":"bolt","iconType":"light","href":"/documentation/how-to-guides/empowering-flows-with-actions"}]}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples/examples"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/product-updates"}]}]},"basePath":"","title":"Datasets and RAG - mira","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}