mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 05:16:40 +08:00
466 lines
134 KiB
HTML
466 lines
134 KiB
HTML
<!doctype html>
|
||
<html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-Components/components-vector-stores" data-has-hydrated="false">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="generator" content="Docusaurus v3.8.1">
|
||
<title data-rh="true">Vector Stores | Langflow Documentation</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://docs.langflow.org/components-vector-stores"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Vector Stores | Langflow Documentation"><meta data-rh="true" name="description" content="Langflow's Vector Store components are used to read and write vector data, including embedding storage, vector search, Graph RAG traversals, and specialized provider-specific search, such as OpenSearch, Elasticsearch, and Vectara."><meta data-rh="true" property="og:description" content="Langflow's Vector Store components are used to read and write vector data, including embedding storage, vector search, Graph RAG traversals, and specialized provider-specific search, such as OpenSearch, Elasticsearch, and Vectara."><link data-rh="true" rel="icon" href="/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://docs.langflow.org/components-vector-stores"><link data-rh="true" rel="alternate" href="https://docs.langflow.org/components-vector-stores" hreflang="en"><link data-rh="true" rel="alternate" href="https://docs.langflow.org/components-vector-stores" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://UZK6BDPCVY-dsn.algolia.net" crossorigin="anonymous"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Vector Stores","item":"https://docs.langflow.org/components-vector-stores"}]}</script><link rel="preconnect" href="https://www.google-analytics.com">
|
||
<link rel="preconnect" href="https://www.googletagmanager.com">
|
||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SLQFLQ3KPT"></script>
|
||
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-SLQFLQ3KPT",{})</script>
|
||
|
||
|
||
|
||
|
||
|
||
<link rel="search" type="application/opensearchdescription+xml" title="Langflow Documentation" href="/opensearch.xml">
|
||
|
||
|
||
|
||
<script>!function(){var e="analytics",t=window[e]=window[e]||[];if(!t.initialize)if(t.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{t.invoked=!0,t.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],t.factory=function(n){return function(){if(window[e].initialized)return window[e][n].apply(window[e],arguments);var r=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(n)>-1){var i=document.querySelector("link[rel='canonical']");r.push({__t:"bpc",c:i&&i.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}return r.unshift(n),t.push(r),t}};for(var n=0;n<t.methods.length;n++){var r=t.methods[n];t[r]=t.factory(r)}t.load=function(n,r){var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.setAttribute("data-global-segment-analytics-key",e),i.src="https://cdn.segment.com/analytics.js/v1/"+n+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a),t._loadOptions=r},t._writeKey="60AfGDrVxy8nAGJngo3fCYWG4LvhMAlG",t.SNIPPET_VERSION="5.2.0",t.load("60AfGDrVxy8nAGJngo3fCYWG4LvhMAlG"),t.page()}}()</script>
|
||
<script>window.__SCROLL_TRACKING_CONFIG__={selectors:[{selector:"h1, h2, h3, h4, h5, h6",eventName:"Docs.langflow.org - Heading Viewed",properties:{element_type:"heading"}},{selector:".ch-codeblock",eventName:"Docs.langflow.org - Codeblock Viewed",properties:{element_type:"code",language:"helper:codeLanguage"}}]}</script>
|
||
|
||
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@550;600&display=swap">
|
||
<script>!function(){window.semaphore=window.semaphore||[],window.ketch=function(){window.semaphore.push(arguments)};var e=document.createElement("script");e.type="text/javascript",e.src="https://global.ketchcdn.com/web/v3/config/datastax/langflow_org_web/boot.js",e.defer=e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}()</script>
|
||
<script defer="true">!function(){const e=e=>{if(window.gtag&&e.purposes&&"analytics"in e.purposes&&"targeted_advertising"in e.purposes){const n=!0===e.purposes.analytics?"granted":"denied",t=!0===e.purposes.targeted_advertising?"granted":"denied",a={analytics_storage:n,ad_personalization:t,ad_storage:t,ad_user_data:t};window.gtag("consent","update",a)}};window.ketch&&window.ketch("on","consent",e)}()</script><link rel="stylesheet" href="/assets/css/styles.9488e50d.css">
|
||
<script src="/assets/js/runtime~main.57fbaa8d.js" defer="defer"></script>
|
||
<script src="/assets/js/main.14a877c9.js" defer="defer"></script>
|
||
</head>
|
||
<body class="navigation-with-keyboard">
|
||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><defs>
|
||
<symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol>
|
||
</defs></svg>
|
||
<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),document.documentElement.setAttribute("data-theme-choice",t||"system")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="theme-layout-navbar navbar navbar--fixed-top navbarHideable_m1mJ"><div class="navbar__inner"><div class="theme-layout-navbar-left navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/lf-docs-light.svg" alt="Langflow" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/lf-docs-dark.svg" alt="Langflow" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div></a></div><div class="theme-layout-navbar-right navbar__items navbar__items--right"><a href="https://github.com/langflow-ai/langflow" target="_blank" class="navbar__item navbar__link header-github-link" data-event="Docs.langflow.org - Social Clicked" data-platform="github"></a><a href="https://twitter.com/langflow_ai" target="_blank" class="navbar__item navbar__link header-twitter-link" data-event="Docs.langflow.org - Social Clicked" data-platform="x"></a><a href="https://discord.gg/EqksyE2EX9" target="_blank" class="navbar__item navbar__link header-discord-link" data-event="Docs.langflow.org - Social Clicked" data-platform="discord"></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="system mode" aria-label="Switch between dark and light mode (currently system mode)"><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP systemToggleIcon_QzmC"><path fill="currentColor" d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"></path></svg></button></div><div class="navbarSearchContainer_Bca1"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search (Command+K)"><span class="DocSearch-Button-Container"><svg width="20" height="20" class="DocSearch-Search-Icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"></span></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="theme-layout-main main-wrapper mainWrapper_z2l0"><div class="docsWrapper_hBAB"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_UBD9"><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class="sidebarViewport_aRkj"><div class="sidebar_njMd sidebarWithHideableNavbar_wUlq"><a tabindex="-1" class="sidebarLogo_isFc" href="/"><img src="/img/lf-docs-light.svg" alt="Langflow" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/img/lf-docs-dark.svg" alt="Langflow" class="themedComponent_mlkZ themedComponent--dark_xIcU"></a><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/">Welcome to Langflow</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/about-langflow">Get started</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/concepts-overview">Flows</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/agents">Agents</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/mcp-client">Model Context Protocol (MCP)</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/api-keys-and-authentication">Develop</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/deployment-overview">Deploy</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" role="button" aria-expanded="true" href="/concepts-components">Components reference</a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/concepts-components">Components overview</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" role="button" aria-expanded="true" tabindex="0" href="/components-io">Core components</a></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-io">Input / Output</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-agents">Agents</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" tabindex="0" href="/components-models">Models</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-data">Data</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/components-vector-stores">Vector Stores</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" tabindex="0" href="/components-processing">Processing</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-logic">Logic</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-helpers">Helpers</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-tools">Tools</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/components-memories">Memories</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" tabindex="0" href="/components-bundle-components">Bundles</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/components-custom-components">Create custom Python components</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/api-reference-api-examples">API reference</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/contributing-community">Contribute</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/release-notes">Release notes</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" role="button" aria-expanded="false" href="/troubleshoot">Support</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 sidebar-ad">
|
||
<a href="https://www.langflow.org/desktop" target="_blank" class="menu__link">
|
||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
<g clip-path="url(#clip0_1645_37)">
|
||
<path d="M12 17H20C21.1046 17 22 16.1046 22 15V13M12 17H4C2.89543 17 2 16.1046 2 15V5C2 3.89543 2.89543 3 4 3H10M12 17V21M8 21H12M12 21H16M11.75 10.2917H13.2083L16.125 7.375H17.5833L20.5 4.45833H21.9583M16.125 11.75H17.5833L20.5 8.83333H21.9583M11.75 5.91667H13.2083L16.125 3H17.5833" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||
</g>
|
||
<defs>
|
||
<clipPath id="clip0_1645_37">
|
||
<rect width="24" height="24" fill="white"/>
|
||
</clipPath>
|
||
</defs>
|
||
</svg>
|
||
<div class="sidebar-ad-text-container">
|
||
<span class="sidebar-ad-text">Get started in minutes</span>
|
||
<span class="sidebar-ad-text sidebar-ad-text-gradient">Download Langflow Desktop</span>
|
||
</div>
|
||
</a>
|
||
</li></ul></nav></div></div></aside><main class="docMainContainer_TBSr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="Breadcrumbs"><ul class="breadcrumbs"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">Components reference</span></li><li class="breadcrumbs__item"><span class="breadcrumbs__link">Core components</span></li><li class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link">Vector Stores</span></li></ul></nav><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Vector Stores</h1></header><style>[data-ch-theme="github-dark"] { --ch-t-colorScheme: dark;--ch-t-foreground: #c9d1d9;--ch-t-background: #0d1117;--ch-t-lighter-inlineBackground: #0d1117e6;--ch-t-editor-background: #0d1117;--ch-t-editor-foreground: #c9d1d9;--ch-t-editor-lineHighlightBackground: #6e76811a;--ch-t-editor-rangeHighlightBackground: #ffffff0b;--ch-t-editor-infoForeground: #3794FF;--ch-t-editor-selectionBackground: #264F78;--ch-t-focusBorder: #1f6feb;--ch-t-tab-activeBackground: #0d1117;--ch-t-tab-activeForeground: #c9d1d9;--ch-t-tab-inactiveBackground: #010409;--ch-t-tab-inactiveForeground: #8b949e;--ch-t-tab-border: #30363d;--ch-t-tab-activeBorder: #0d1117;--ch-t-editorGroup-border: #30363d;--ch-t-editorGroupHeader-tabsBackground: #010409;--ch-t-editorLineNumber-foreground: #6e7681;--ch-t-input-background: #0d1117;--ch-t-input-foreground: #c9d1d9;--ch-t-input-border: #30363d;--ch-t-icon-foreground: #8b949e;--ch-t-sideBar-background: #010409;--ch-t-sideBar-foreground: #c9d1d9;--ch-t-sideBar-border: #30363d;--ch-t-list-activeSelectionBackground: #6e768166;--ch-t-list-activeSelectionForeground: #c9d1d9;--ch-t-list-hoverBackground: #6e76811a;--ch-t-list-hoverForeground: #c9d1d9; }</style>
|
||
<!-- -->
|
||
<p>Langflow's <strong>Vector Store</strong> components are used to read and write vector data, including embedding storage, vector search, Graph RAG traversals, and specialized provider-specific search, such as OpenSearch, Elasticsearch, and Vectara.</p>
|
||
<p>These components are critical for vector search applications, such as Retrieval Augmented Generation (RAG) chatbots that need to retrieve relevant context from large datasets.</p>
|
||
<p>Most of these components connect to a specific vector database provider, but some components support multiple providers or platforms.
|
||
For example, the <strong>Cassandra</strong> vector store component can connect to self-managed Apache Cassandra-based clusters as well as Astra DB, which is a managed Cassandra DBaaS.</p>
|
||
<p>Other types of storage, like traditional structured databases and chat memory, are handled through other components like the <a href="/components-data#sql-database"><strong>SQL Database</strong> component</a> or the <a href="/components-helpers#message-history"><strong>Message History</strong> component</a>.</p>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="use-vector-store-components-in-a-flow">Use Vector Store components in a flow<a href="#use-vector-store-components-in-a-flow" class="hash-link" aria-label="Direct link to Use Vector Store components in a flow" title="Direct link to Use Vector Store components in a flow"></a></h2>
|
||
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>For a tutorial using <strong>Vector Store</strong> components in a flow, see <a href="/chat-with-rag">Create a vector RAG chatbot</a>.</p></div></div>
|
||
<p>The following steps introduce the use of <strong>Vector Store</strong> components in a flow, including configuration details, how the components work when you run a flow, why you might need multiple <strong>Vector Store</strong> components in one flow, and useful supporting components, such as <strong>Embedding Model</strong> and <strong>Parser</strong> components.</p>
|
||
<ol>
|
||
<li>
|
||
<p>Create a flow with the <strong>Vector Store RAG</strong> template.</p>
|
||
<p>This template has two subflows.
|
||
The <strong>Load Data</strong> subflow loads embeddings and content into a vector database, and the <strong>Retriever</strong> subflow runs a vector search to retrieve relevant context based on a user's query.</p>
|
||
</li>
|
||
<li>
|
||
<p>Configure the database connection for both <a href="#astra-db"><strong>Astra DB</strong> components</a>, or replace them with another pair of <strong>Vector Store</strong> components of your choice.
|
||
Make sure the components connect to the same vector store, and that the component in the <strong>Retriever</strong> subflow is able to run a similarity search.</p>
|
||
<p>The parameters you set in each <strong>Vector Store</strong> component depend on the component's role in your flow.
|
||
In this example, the <strong>Load Data</strong> subflow <em>writes</em> to the vector store, whereas the <strong>Retriever</strong> subflow <em>reads</em> from the vector store.
|
||
Therefore, search-related parameters are only relevant to the <strong>Vector Search</strong> component in the <strong>Retriever</strong> subflow.</p>
|
||
<p>For information about specific configuration parameters, see the section of this page for your chosen <strong>Vector Store</strong> component and <a href="#hidden-parameters">Hidden parameters</a>.</p>
|
||
</li>
|
||
<li>
|
||
<p>To configure the embedding model, do one of the following:</p>
|
||
<ul>
|
||
<li>
|
||
<p><strong>Use an OpenAI model</strong>: In both <strong>OpenAI Embeddings</strong> components, enter your OpenAI API key.
|
||
You can use the default model or select a different OpenAI embedding model.</p>
|
||
</li>
|
||
<li>
|
||
<p><strong>Use another provider</strong>: Replace the <strong>OpenAI Embeddings</strong> components with another pair of <a href="/components-embedding-models"><strong>Embedding Model</strong> component</a> of your choice, and then configure the parameters and credentials accordingly.</p>
|
||
</li>
|
||
<li>
|
||
<p><strong>Use Astra DB vectorize</strong>: If you are using an Astra DB vector store that has a vectorize integration, you can remove both <strong>OpenAI Embeddings</strong> components.
|
||
If you do this, the vectorize integration automatically generates embeddings from the <strong>Ingest Data</strong> (in the <strong>Load Data</strong> subflow) and <strong>Search Query</strong> (in the <strong>Retriever</strong> subflow).</p>
|
||
</li>
|
||
</ul>
|
||
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>If your vector store already contains embeddings, make sure your <strong>Embedding Model</strong> components use the same model as your previous embeddings.
|
||
Mixing embedding models in the same vector store can produce inaccurate search results.</p></div></div>
|
||
</li>
|
||
<li>
|
||
<p>Recommended: In the <a href="/components-processing#split-text"><strong>Split Text</strong> component</a>, optimize the chunking settings for your embedding model.
|
||
For example, if your embedding model has a token limit of 512, then the <strong>Chunk Size</strong> parameter must not exceed that limit.</p>
|
||
<p>Additionally, because the <strong>Retriever</strong> subflow passes the chat input directly to the <strong>Vector Store</strong> component for vector search, make sure that your chat input string doesn't exceed your embedding model's limits.
|
||
For this example, you can enter a query that is within the limits; however, in a production environment, you might need to implement additional checks or preprocessing steps to ensure compliance.
|
||
For example, use additional components to prepare the chat input before running the vector search, or enforce chat input limits in your application code.</p>
|
||
</li>
|
||
<li>
|
||
<p>In the <strong>Language Model</strong> component, enter your OpenAI API key, or select a different provider and model to use for the chat portion of the flow.</p>
|
||
</li>
|
||
<li>
|
||
<p>Run the <strong>Load Data</strong> subflow to populate your vector store.
|
||
In the <strong>File</strong> component, select one or more files, and then click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-play" aria-hidden="True"><polygon points="6 3 20 12 6 21 6 3"></polygon></svg> <strong>Run component</strong> on the <strong>Vector Store</strong> component in the <strong>Load Data</strong> subflow.</p>
|
||
<p>The <strong>Load Data</strong> subflow loads files from your local machine, chunks them, generates embeddings for the chunks, and then stores the chunks and their embeddings in the vector database.</p>
|
||
<p><img decoding="async" loading="lazy" alt="Embedding data into a vector store" src="/assets/images/vector-store-document-ingestion-6157311fb4d16e7f944d55254f0cc0e2.png" width="4000" height="2512" class="img_ev3q"></p>
|
||
<p>The <strong>Load Data</strong> subflow is separate from the <strong>Retriever</strong> subflow because you probably won't run it every time you use the chat.
|
||
You can run the <strong>Load Data</strong> subflow as needed to preload or update the data in your vector store.
|
||
Then, your chat interactions only use the components that are necessary for chat.</p>
|
||
<p>If your vector store already contains data that you want to use for vector search, then you don't need to run the <strong>Load Data</strong> subflow.</p>
|
||
</li>
|
||
<li>
|
||
<p>Open the <strong>Playground</strong> and start chatting to run the <strong>Retriever</strong> subflow.</p>
|
||
<p>The <strong>Retriever</strong> subflow generates an embedding from chat input, runs a vector search to retrieve similar content from your vector store, parses the search results into supplemental context for the LLM, and then uses the LLM to generate a natural language response to your query.
|
||
The LLM uses the vector search results along with its internal training data and tools, such as basic web search and datetime information, to produce the response.</p>
|
||
<p><img decoding="async" loading="lazy" alt="Retrieval from a vector store" src="/assets/images/vector-store-retrieval-af7257d77ff0259ab1a0980641d464ce.png" width="4000" height="1324" class="img_ev3q"></p>
|
||
<p>To avoid passing the entire block of raw search results to the LLM, the <strong>Parser</strong> component extracts <code>text</code> strings from the search results <code>Data</code> object, and then passes them to the <strong>Prompt Template</strong> component in <code>Message</code> format.
|
||
From there, the strings and other template content are compiled into natural language instructions for the LLM.</p>
|
||
<p>You can use other components for this transformation, such as the <strong>Data Operations</strong> component, depending on how you want to use the search results.</p>
|
||
<p>To view the raw search results, click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-search" aria-hidden="True"><path d="M21 6H3"></path><path d="M10 12H3"></path><path d="M10 18H3"></path><circle cx="17" cy="15" r="3"></circle><path d="m21 19-1.9-1.9"></path></svg> <strong>Inspect output</strong> on the <strong>Vector Store</strong> component after running the <strong>Retriever</strong> subflow.</p>
|
||
</li>
|
||
</ol>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="hidden-parameters">Hidden parameters<a href="#hidden-parameters" class="hash-link" aria-label="Direct link to Hidden parameters" title="Direct link to Hidden parameters"></a></h3>
|
||
<p>You can inspect a <strong>Vector Store</strong> component's parameters to learn more about the inputs it accepts, the features it supports, and how to configure it.</p>
|
||
<p>Many input parameters for <strong>Vector Store</strong> components are hidden by default in the visual editor.
|
||
You can toggle parameters through the <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sliders-horizontal" aria-hidden="true"><line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line></svg> <strong>Controls</strong> in each <a href="/concepts-components#component-menus">component's header menu</a>.</p>
|
||
<p>Some parameters are conditional, and they are only available after you set other parameters or select specific options for other parameters.
|
||
Conditional parameters may not be visible on the <strong>Controls</strong> pane until you set the required dependencies.
|
||
However, all parameters are always listed in a <a href="/concepts-components#component-code">component's code</a>.</p>
|
||
<p>For information about a specific component's parameters, see the provider's documentation and the component details.</p>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="search-results-output">Search results output<a href="#search-results-output" class="hash-link" aria-label="Direct link to Search results output" title="Direct link to Search results output"></a></h3>
|
||
<p>If you use a <strong>Vector Store</strong> component to query your vector store, it produces search results that you can pass to downstream components in your flow as a list of <a href="/data-types#data"><code>Data</code></a> objects or a tabular <a href="/data-types#dataframe"><code>DataFrame</code></a>.
|
||
If both types are supported, you can set the format near the component's output port in the visual editor.</p>
|
||
<p>The exception to this pattern is the <strong>Vectara RAG</strong> component, which outputs only an <code>answer</code> string in <a href="/data-types#message"><code>Message</code></a> format.</p>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="vector-store-instances">Vector store instances<a href="#vector-store-instances" class="hash-link" aria-label="Direct link to Vector store instances" title="Direct link to Vector store instances"></a></h3>
|
||
<p>Because Langflow is based on LangChain, <strong>Vector Store</strong> components use an instance of <a href="https://python.langchain.com/docs/integrations/vectorstores/" target="_blank" rel="noopener noreferrer">LangChain vector store</a> to drive the underlying vector search functions.
|
||
In the component code, this is often instantiated as <code>vector_store</code>, but some components use a different name, such as the provider name.</p>
|
||
<p>For the <strong>Cassandra Graph</strong> and <strong>Astra DB Graph</strong> components, <code>vector_store</code> is an instance of <a href="https://python.langchain.com/api_reference/community/graph_vectorstores.html" target="_blank" rel="noopener noreferrer">LangChain graph vector store</a>.</p>
|
||
<p>These instances are provider-specific and configured according to the component's parameters.
|
||
For example, the <strong>Redis</strong> component creates an instance of <a href="https://python.langchain.com/docs/integrations/vectorstores/redis/" target="_blank" rel="noopener noreferrer"><code>RedisVectorStore</code></a> based on the component's parameters, such as the connection string, index name, and schema.</p>
|
||
<p>Some LangChain classes don't expose all possible options as component parameters.
|
||
Depending on the provider, these options might use default values or allow modification through environment variables, if they are supported in Langflow.
|
||
For information about specific options, see the LangChain API reference and provider documentation.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Vector Store Connection ports</summary><div><div class="collapsibleContent_i85q"><p>The <strong>Astra DB</strong> and <strong>OpenSearch</strong> components have an additional <strong>Vector Store Connection</strong> output.
|
||
This output can only connect to a <code>VectorStore</code> input port, and it was intended for use with dedicated Graph RAG components.</p><p>The only non-legacy component that supports this input is the <strong>Graph RAG</strong> component, which was meant as a Graph RAG extension to the <strong>Astra DB</strong> component.
|
||
Instead, you can use the <strong>Astra DB Graph</strong> component that includes both the vector store connection and Graph RAG functionality.
|
||
OpenSearch instances support Graph traversal through built-in RAG functionality and plugins.</p></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="apache-cassandra">Apache Cassandra<a href="#apache-cassandra" class="hash-link" aria-label="Direct link to Apache Cassandra" title="Direct link to Apache Cassandra"></a></h2>
|
||
<p>The <strong>Cassandra</strong> and <strong>Cassandra Graph</strong> components can be used with Cassandra clusters that support vector search, including Astra DB.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://cassandra.apache.org/doc/latest/cassandra/vector-search/overview.html" target="_blank" rel="noopener noreferrer">Vector search in Cassandra</a></li>
|
||
</ul>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="cassandra">Cassandra<a href="#cassandra" class="hash-link" aria-label="Direct link to Cassandra" title="Direct link to Cassandra"></a></h3>
|
||
<p>Use the <strong>Cassandra</strong> component to read or write to a Cassandra vector store using a <code>CassandraVectorStore</code> instance.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Cassandra parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>database_ref</td><td>String</td><td>Input parameter. Contact points for the database or an Astra database ID.</td></tr><tr><td>username</td><td>String</td><td>Input parameter. Username for the database. Leave empty for Astra DB.</td></tr><tr><td>token</td><td>SecretString</td><td>Input parameter. User password for the database or an Astra application token.</td></tr><tr><td>keyspace</td><td>String</td><td>Input parameter. The name of the keyspace containing the vector store specified in <strong>Table Name</strong> (<code>table_name</code>).</td></tr><tr><td>table_name</td><td>String</td><td>Input parameter. The name of the table or collection that is the vector store.</td></tr><tr><td>ttl_seconds</td><td>Integer</td><td>Input parameter. Time-to-live for added texts, if supported by the cluster. Only relevant for writes.</td></tr><tr><td>batch_size</td><td>Integer</td><td>Input parameter. Amount of records to process in a single batch.</td></tr><tr><td>setup_mode</td><td>String</td><td>Input parameter. Configuration mode for setting up a Cassandra table.</td></tr><tr><td>cluster_kwargs</td><td>Dict</td><td>Input parameter. Additional keyword arguments for a Cassandra cluster.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. Query string for similarity search. Only relevant for reads.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. Data to be loaded into the vector store as raw chunks and embeddings. Only relevant for writes.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. Embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Number of results to return in search. Only relevant for reads.</td></tr><tr><td>search_type</td><td>String</td><td>Input parameter. Type of search to perform. Only relevant for reads.</td></tr><tr><td>search_score_threshold</td><td>Float</td><td>Input parameter. Minimum similarity score for search results. Only relevant for reads.</td></tr><tr><td>search_filter</td><td>Dict</td><td>Input parameter. An optional dictionary of metadata search filters to apply in addition to vector search. Only relevant for reads.</td></tr><tr><td>body_search</td><td>String</td><td>Input parameter. Document textual search terms. Only relevant for reads.</td></tr><tr><td>enable_body_search</td><td>Boolean</td><td>Input parameter. Flag to enable body search. Only relevant for reads.</td></tr></tbody></table></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="cassandra-graph">Cassandra Graph<a href="#cassandra-graph" class="hash-link" aria-label="Direct link to Cassandra Graph" title="Direct link to Cassandra Graph"></a></h3>
|
||
<p>The <strong>Cassandra Graph</strong> component uses a <code>CassandraGraphVectorStore</code> instance for graph traversal and graph-based document retrieval in a compatible Cassandra cluster.
|
||
It also supports writing to the vector store.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Cassandra Graph parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>database_ref</td><td>Contact Points / Astra Database ID</td><td>Input parameter. The contact points for the database or an Astra database ID. Required.</td></tr><tr><td>username</td><td>Username</td><td>Input parameter. The username for the database. Leave empty for Astra DB.</td></tr><tr><td>token</td><td>Password / Astra DB Token</td><td>Input parameter. The user password for the database or an Astra application token. Required.</td></tr><tr><td>keyspace</td><td>Keyspace</td><td>Input parameter. The name of the keyspace containing the vector store specified in <strong>Table Name</strong> (<code>table_name</code>). Required.</td></tr><tr><td>table_name</td><td>Table Name</td><td>Input parameter. The name of the table or collection that is the vector store. Required.</td></tr><tr><td>setup_mode</td><td>Setup Mode</td><td>Input parameter. The configuration mode for setting up the Cassandra table. The options are <code>Sync</code> (default) or <code>Off</code>.</td></tr><tr><td>cluster_kwargs</td><td>Cluster arguments</td><td>Input parameter. An optional dictionary of additional keyword arguments for the Cassandra cluster.</td></tr><tr><td>search_query</td><td>Search Query</td><td>Input parameter. The query string for similarity search. Only relevant for reads.</td></tr><tr><td>ingest_data</td><td>Ingest Data</td><td>Input parameter. Data to be loaded into the vector store as raw chunks and embeddings. Only relevant for writes.</td></tr><tr><td>embedding</td><td>Embedding</td><td>Input parameter. The embedding model to use.</td></tr><tr><td>number_of_results</td><td>Number of Results</td><td>Input parameter. The number of results to return in similarity search. Only relevant for reads. Default: 4.</td></tr><tr><td>search_type</td><td>Search Type</td><td>Input parameter. The search type to use. The options are <code>Traversal</code> (default), <code>MMR Traversal</code>, <code>Similarity</code>, <code>Similarity with score threshold</code>, or <code>MMR (Max Marginal Relevance)</code>.</td></tr><tr><td>depth</td><td>Depth of traversal</td><td>Input parameter. The maximum depth of edges to traverse. Only relevant if <strong>Search Type</strong> (<code>search_type</code>) is <code>Traversal</code> or <code>MMR Traversal</code>. Default: 1.</td></tr><tr><td>search_score_threshold</td><td>Search Score Threshold</td><td>Input parameter. The minimum similarity score threshold for search results. Only relevant for reads using the <code>Similarity with score threshold</code> search type.</td></tr><tr><td>search_filter</td><td>Search Metadata Filter</td><td>Input parameter. An optional dictionary of metadata search filters to apply in addition to graph traversal and similarity search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="chroma">Chroma<a href="#chroma" class="hash-link" aria-label="Direct link to Chroma" title="Direct link to Chroma"></a></h2>
|
||
<p>The <strong>Chroma DB</strong> and <strong>Local DB</strong> components read and write to Chroma vector stores using an instance of <code>Chroma</code> vector store.
|
||
Includes support for remote or in-memory instances with or without persistence.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://docs.trychroma.com/" target="_blank" rel="noopener noreferrer">Chroma documentation</a></li>
|
||
</ul>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="chroma-db">Chroma DB<a href="#chroma-db" class="hash-link" aria-label="Direct link to Chroma DB" title="Direct link to Chroma DB"></a></h3>
|
||
<p>You can use the <strong>Chroma DB</strong> component to read and write to a Chroma database in local storage or a remote Chroma server with options for persistence and caching.
|
||
When writing, the component can create a new database or collection at the specified location.</p>
|
||
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>An ephemeral (non-persistent) local Chroma vector store is helpful for testing vector search flows where you don't need to retain the database.</p></div></div>
|
||
<p>The following example flow uses one <strong>Chroma DB</strong> component for both reads and writes:</p>
|
||
<ul>
|
||
<li>
|
||
<p>When writing, it splits <code>Data</code> from a <a href="/components-data#url"><strong>URL</strong> component</a> into chunks, computes embeddings with attached <strong>Embedding Model</strong> component, and then loads the chunks and embeddings into the Chroma vector store.
|
||
To trigger writes, click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-play" aria-hidden="true"><polygon points="6 3 20 12 6 21 6 3"></polygon></svg> <strong>Run component</strong> on the <strong>Chroma DB</strong> component.</p>
|
||
</li>
|
||
<li>
|
||
<p>When reading, it uses chat input to perform a similarity search on the vector store, and then print the search results to the chat.
|
||
To trigger reads, open the <strong>Playground</strong> and enter a chat message.</p>
|
||
</li>
|
||
</ul>
|
||
<p>After running the flow once, you can click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-search" aria-hidden="true"><path d="M21 6H3"></path><path d="M10 12H3"></path><path d="M10 18H3"></path><circle cx="17" cy="15" r="3"></circle><path d="m21 19-1.9-1.9"></path></svg> <strong>Inspect Output</strong> on each component to understand how the data transformed as it passed from component to component.</p>
|
||
<p><img decoding="async" loading="lazy" alt="ChromaDB receiving split text" src="/assets/images/component-chroma-db-b69a08e861be3451fe6f2992e203f516.png" width="4000" height="2694" class="img_ev3q"></p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Chroma DB parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Collection Name</strong> (<code>collection_name</code>)</td><td>String</td><td>Input parameter. The name of your Chroma vector store collection. Default: <code>langflow</code>.</td></tr><tr><td><strong>Persist Directory</strong> (<code>persist_directory</code>)</td><td>String</td><td>Input parameter. To persist the Chroma database, enter a relative or absolute path to a directory to store the <code>chroma.sqlite3</code> file. Leave empty for an ephemeral database. When reading or writing to an existing persistent database, specify the path to the persistent directory.</td></tr><tr><td><strong>Ingest Data</strong> (<code>ingest_data</code>)</td><td>Data or DataFrame</td><td>Input parameter. <code>Data</code> or <code>DataFrame</code> input containing the records to write to the vector store. Only relevant for writes.</td></tr><tr><td><strong>Search Query</strong> (<code>search_query</code>)</td><td>String</td><td>Input parameter. The query to use for vector search. Only relevant for reads.</td></tr><tr><td><strong>Cache Vector Store</strong> (<code>cache_vector_store</code>)</td><td>Boolean</td><td>Input parameter. If true, the component caches the vector store in memory for faster reads. Default: Enabled (true).</td></tr><tr><td><strong>Embedding</strong> (<code>embedding</code>)</td><td>Embeddings</td><td>Input parameter. The embedding function to use for the vector store. By default, Chroma DB uses its built-in embeddings model, or you can attach an <strong>Embedding Model</strong> component to use a different provider or model.</td></tr><tr><td><strong>CORS Allow Origins</strong> (<code>chroma_server_cors_allow_origins</code>)</td><td>String</td><td>Input parameter. The CORS allow origins for the Chroma server.</td></tr><tr><td><strong>Chroma Server Host</strong> (<code>chroma_server_host</code>)</td><td>String</td><td>Input parameter. The host for the Chroma server.</td></tr><tr><td><strong>Chroma Server HTTP Port</strong> (<code>chroma_server_http_port</code>)</td><td>Integer</td><td>Input parameter. The HTTP port for the Chroma server.</td></tr><tr><td><strong>Chroma Server gRPC Port</strong> (<code>chroma_server_grpc_port</code>)</td><td>Integer</td><td>Input parameter. The gRPC port for the Chroma server.</td></tr><tr><td><strong>Chroma Server SSL Enabled</strong> (<code>chroma_server_ssl_enabled</code>)</td><td>Boolean</td><td>Input parameter. Enable SSL for the Chroma server.</td></tr><tr><td><strong>Allow Duplicates</strong> (<code>allow_duplicates</code>)</td><td>Boolean</td><td>Input parameter. If true (default), writes don't check for existing duplicates in the collection, allowing you to store multiple copies of the same content. If false, writes won't add documents that match existing documents already present in the collection. If false, it can strictly enforce deduplication by searching the entire collection or only search the number of records, specified in <code>limit</code>. Only relevant for writes.</td></tr><tr><td><strong>Search Type</strong> (<code>search_type</code>)</td><td>String</td><td>Input parameter. The type of search to perform, either <code>Similarity</code> or <code>MMR</code>. Only relevant for reads.</td></tr><tr><td><strong>Number of Results</strong> (<code>number_of_results</code>)</td><td>Integer</td><td>Input parameter. The number of search results to return. Default: <code>10</code>. Only relevant for reads.</td></tr><tr><td><strong>Limit</strong> (<code>limit</code>)</td><td>Integer</td><td>Input parameter. Limit the number of records to compare when <strong>Allow Duplicates</strong> is false. This can help improve performance when writing to large collections, but it can result in some duplicate records. Only relevant for writes.</td></tr></tbody></table></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="local-db">Local DB<a href="#local-db" class="hash-link" aria-label="Direct link to Local DB" title="Direct link to Local DB"></a></h3>
|
||
<p>The <strong>Local DB</strong> component reads and writes to a persistent, in-memory Chroma DB instance intended for use with Langflow.
|
||
It has separate modes for reads and writes, automatic collection management, and default persistence in your Langflow cache directory.</p>
|
||
<p><img decoding="async" loading="lazy" alt="A basic flow with a Local DB component in Retrieve mode." src="/assets/images/component-local-db-5ba34611640c3e325d9dd3cdcb591d1f.png" width="4000" height="2188" class="img_ev3q"></p>
|
||
<p>Set the <strong>Mode</strong> parameter to reflect the operation you want the component to perform, and the configure the other parameters accordingly.
|
||
Some parameters are only available for one mode.</p>
|
||
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">Ingest</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Retrieve</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p>To create or write to your local Chroma vector store, use <strong>Ingest</strong> mode.</p><p>The following parameters are available in <strong>Ingest</strong> mode:</p><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name Your Collection</strong> (<code>collection_name</code>)</td><td>String</td><td>Input parameter. The name for your Chroma vector store collection. Default: <code>langflow</code>. Only available in <strong>Ingest</strong> mode.</td></tr><tr><td><strong>Persist Directory</strong> (<code>persist_directory</code>)</td><td>String</td><td>Input parameter. The base directory where you want to create and persist the vector store. If you use the <strong>Local DB</strong> component in multiple flows or to create multiple collections, collections are stored at <code>$PERSISTENT_DIRECTORY/vector_stores/$COLLECTION_NAME</code>. If not specified, the default location is your Langflow cache directory (<code>LANGFLOW_CONFIG_DIR</code>). For more information, see <a href="/memory">Memory management options</a>.</td></tr><tr><td><strong>Embedding</strong> (<code>embedding</code>)</td><td>Embeddings</td><td>Input parameter. The embedding function to use for the vector store.</td></tr><tr><td><strong>Allow Duplicates</strong> (<code>allow_duplicates</code>)</td><td>Boolean</td><td>Input parameter. If true (default), writes don't check for existing duplicates in the collection, allowing you to store multiple copies of the same content. If false, writes won't add documents that match existing documents already present in the collection. If false, it can strictly enforce deduplication by searching the entire collection or only search the number of records, specified in <code>limit</code>. Only available in <strong>Ingest</strong> mode.</td></tr><tr><td><strong>Ingest Data</strong> (<code>ingest_data</code>)</td><td>Data or DataFrame</td><td>Input parameter. The records to write to the collection. Records are embedded and indexed for semantic search. Only available in <strong>Ingest</strong> mode.</td></tr><tr><td><strong>Limit</strong> (<code>limit</code>)</td><td>Integer</td><td>Input parameter. Limit the number of records to compare when <strong>Allow Duplicates</strong> is false. This can help improve performance when writing to large collections, but it can result in some duplicate records. Only available in <strong>Ingest</strong> mode.</td></tr></tbody></table></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p>To read from your local Chroma vector store, use <strong>Retrieve</strong> mode.</p><p>The following parameters are available in <strong>Retrieve</strong> mode:</p><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Persist Directory</strong> (<code>persist_directory</code>)</td><td>String</td><td>Input parameter. The base directory where you want to create and persist the vector store. If you use the <strong>Local DB</strong> component in multiple flows or to create multiple collections, collections are stored at <code>$PERSISTENT_DIRECTORY/vector_stores/$COLLECTION_NAME</code>. If not specified, the default location is your Langflow cache directory (<code>LANGFLOW_CONFIG_DIR</code>). For more information, see <a href="/memory">Memory management options</a>.</td></tr><tr><td><strong>Existing Collections</strong> (<code>existing_collections</code>)</td><td>String</td><td>Input parameter. Select a previously-created collection to search. Only available in <strong>Retrieve</strong> mode.</td></tr><tr><td><strong>Embedding</strong> (<code>embedding</code>)</td><td>Embeddings</td><td>Input parameter. The embedding function to use for the vector store.</td></tr><tr><td><strong>Search Type</strong> (<code>search_type</code>)</td><td>String</td><td>Input parameter. The type of search to perform, either <code>Similarity</code> or <code>MMR</code>. Only available in <strong>Retrieve</strong> mode.</td></tr><tr><td><strong>Search Query</strong> (<code>search_query</code>)</td><td>String</td><td>Input parameter. Enter a query for similarity search. Only available in <strong>Retrieve</strong> mode.</td></tr><tr><td><strong>Number of Results</strong> (<code>number_of_results</code>)</td><td>Integer</td><td>Input parameter. Number of search results to return. Default: 10. Only available in <strong>Retrieve</strong> mode.</td></tr></tbody></table></div></div></div>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="clickhouse">Clickhouse<a href="#clickhouse" class="hash-link" aria-label="Direct link to Clickhouse" title="Direct link to Clickhouse"></a></h2>
|
||
<p>The <strong>Clickhouse</strong> component reads and writes to a Clickhouse vector store using an instance of <code>Clickhouse</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://clickhouse.com/docs/en/intro" target="_blank" rel="noopener noreferrer">Clickhouse Documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Clickhouse parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>host</td><td>hostname</td><td>Input parameter. The Clickhouse server hostname. Required. Default: <code>localhost</code>.</td></tr><tr><td>port</td><td>port</td><td>Input parameter. The Clickhouse server port. Required. Default: <code>8123</code>.</td></tr><tr><td>database</td><td>database</td><td>Input parameter. The Clickhouse database name. Required.</td></tr><tr><td>table</td><td>Table name</td><td>Input parameter. The Clickhouse table name. Required.</td></tr><tr><td>username</td><td>Username</td><td>Input parameter. Clickhouse username for authentication. Required.</td></tr><tr><td>password</td><td>Password</td><td>Input parameter. Clickhouse password for authentication. Required.</td></tr><tr><td>index_type</td><td>index_type</td><td>Input parameter. Type of the index, either <code>annoy</code> (default) or <code>vector_similarity</code>.</td></tr><tr><td>metric</td><td>metric</td><td>Input parameter. Metric to compute distance for similarity search. The options are <code>angular</code> (default), <code>euclidean</code>, <code>manhattan</code>, <code>hamming</code>, <code>dot</code>.</td></tr><tr><td>secure</td><td>Use HTTPS/TLS</td><td>Input parameter. If true, enables HTTPS/TLS for the Clickhouse server and overrides inferred values for interface or port arguments. Default: false.</td></tr><tr><td>index_param</td><td>Param of the index</td><td>Input parameter. Index parameters. Default: <code>100,'L2Distance'</code>.</td></tr><tr><td>index_query_params</td><td>index query params</td><td>Input parameter. Additional index query parameters.</td></tr><tr><td>search_query</td><td>Search Query</td><td>Input parameter. The query string for similarity search. Only relevant for reads.</td></tr><tr><td>ingest_data</td><td>Ingest Data</td><td>Input parameter. The records to load into the vector store.</td></tr><tr><td>cache_vector_store</td><td>Cache Vector Store</td><td>Input parameter. If true, the component caches the vector store in memory for faster reads. Default: Enabled (true).</td></tr><tr><td>embedding</td><td>Embedding</td><td>Input parameter. The embedding model to use.</td></tr><tr><td>number_of_results</td><td>Number of Results</td><td>Input parameter. The number of search results to return. Default: <code>4</code>. Only relevant for reads.</td></tr><tr><td>score_threshold</td><td>Score threshold</td><td>Input parameter. The threshold for similarity score comparison. Default: Unset (no threshold). Only relevant for reads.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="couchbase">Couchbase<a href="#couchbase" class="hash-link" aria-label="Direct link to Couchbase" title="Direct link to Couchbase"></a></h2>
|
||
<p>The <strong>Couchbase</strong> component reads and writes to a Couchbase vector store using an instance of <code>CouchbaseSearchVectorStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://docs.couchbase.com/home/index.html" target="_blank" rel="noopener noreferrer">Couchbase documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Couchbase parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>couchbase_connection_string</td><td>SecretString</td><td>Input parameter. Couchbase Cluster connection string. Required.</td></tr><tr><td>couchbase_username</td><td>String</td><td>Input parameter. Couchbase username for authentication. Required.</td></tr><tr><td>couchbase_password</td><td>SecretString</td><td>Input parameter. Couchbase password for authentication. Required.</td></tr><tr><td>bucket_name</td><td>String</td><td>Input parameter. Name of the Couchbase bucket. Required.</td></tr><tr><td>scope_name</td><td>String</td><td>Input parameter. Name of the Couchbase scope. Required.</td></tr><tr><td>collection_name</td><td>String</td><td>Input parameter. Name of the Couchbase collection. Required.</td></tr><tr><td>index_name</td><td>String</td><td>Input parameter. Name of the Couchbase index. Required.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The records to load into the vector store. Only relevant for writes.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query string for vector search. Only relevant for reads.</td></tr><tr><td>cache_vector_store</td><td>Boolean</td><td>Input parameter. If true, the component caches the vector store in memory for faster reads. Default: Enabled (true).</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use for the vector store.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Maximum number of search results to return. Default: 4. Only relevant for reads.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="datastax">DataStax<a href="#datastax" class="hash-link" aria-label="Direct link to DataStax" title="Direct link to DataStax"></a></h2>
|
||
<p>The following components support DataStax vector stores.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://docs.datastax.com/en/astra-db-serverless/index.html" target="_blank" rel="noopener noreferrer">Astra DB Serverless documentation</a></li>
|
||
<li><a href="https://docs.datastax.com/en/hyper-converged-database/1.2/get-started/get-started-hcd.html" target="_blank" rel="noopener noreferrer">Hyper-Converged Database (HCD) documentation</a></li>
|
||
</ul>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="astra-db">Astra DB<a href="#astra-db" class="hash-link" aria-label="Direct link to Astra DB" title="Direct link to Astra DB"></a></h3>
|
||
<p>The <strong>Astra DB</strong> component read and writes to Astra DB Serverless databases, using an instance of <code>AstraDBVectorStore</code> to call the Data API and DevOps API.</p>
|
||
<div class="theme-admonition theme-admonition-important admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>important</div><div class="admonitionContent_BuS1"><p>It is recommend that you create any databases, keyspaces, and collections you need before configuring the <strong>Astra DB</strong> component.</p><p>You can create new databases and collections through this component, but this is only possible in the Langflow visual editor, not at runtime, and you must wait while the database or collection initializes before proceeding with flow configuration.
|
||
Additionally, not all database and collection configuration options are available through the <strong>Astra DB</strong> component, such as hybrid search options, PCU groups, vectorize integration management, and multi-region deployments.</p></div></div>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Astra DB parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>token</td><td>Astra DB Application Token</td><td>Input parameter. An Astra application token with permission to access your vector database. Once the connection is verified, additional fields are populated with your existing databases and collections. If you want to create a database through this component, the application token must have Organization Administrator permissions.</td></tr><tr><td>environment</td><td>Environment</td><td>Input parameter. The environment for the Astra DB API endpoint. Always use <code>prod</code>.</td></tr><tr><td>database_name</td><td>Database</td><td>Input parameter. The name of the database that you want this component to connect to. Or, you can select <strong>New Database</strong> to create a new database, and then wait for the database to initialize.</td></tr><tr><td>keyspace</td><td>Keyspace</td><td>Input parameter. The keyspace in your database that contains the collection specified in <code>collection_name</code>. Default: <code>default_keyspace</code>.</td></tr><tr><td>collection_name</td><td>Collection</td><td>Input parameter. The name of the collection that you want to use with this flow. Or, select <strong>New Collection</strong> to create a new collection with limited configuration options. To ensure your collection is configured with the correct embedding provider and search capabilities, it is recommended to create the collection in the Astra Portal or with the Data API <em>before</em> configuring this component. For more information, see <a href="https://docs.datastax.com/en/astra-db-serverless/databases/manage-collections.html" target="_blank" rel="noopener noreferrer">Manage collections in Astra DB Serverless</a>.</td></tr><tr><td>embedding_model</td><td>Embedding Model</td><td>Input parameter. Attach an <a href="/components-embedding-models"><strong>Embedding Model</strong> component</a> to generate embeddings. Only available if the specified collection doesn't have a <a href="https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html" target="_blank" rel="noopener noreferrer">vectorize integration</a>. If a vectorize integration exists, the component automatically uses the collection's integrated model.</td></tr><tr><td>ingest_data</td><td>Ingest Data</td><td>Input parameter. The documents to load into the specified collection.</td></tr><tr><td>search_query</td><td>Search Query</td><td>Input parameter. The query string for vector search.</td></tr><tr><td>cache_vector_store</td><td>Cache Vector Store</td><td>Input parameter. Whether to cache the vector store in Langflow memory for faster reads. Default: Enabled (true).</td></tr><tr><td>search_method</td><td>Search Method</td><td>Input parameter. The search methods to use, either <code>Hybrid Search</code> or <code>Vector Search</code>. Your collection must be configured to support the chosen option, and the default depends on what your collection supports. All collections in Astra DB Serverless (Vector) databases support vector search, but hybrid search requires that you set specific collection settings when creating the collection. These options are only available when creating a collection programmatically. For more information, see <a href="https://docs.datastax.com/en/astra-db-serverless/databases/about-search.html" target="_blank" rel="noopener noreferrer">Ways to find data in Astra DB Serverless</a> and <a href="https://docs.datastax.com/en/astra-db-serverless/api-reference/collection-methods/create-collection.html#example-hybrid" target="_blank" rel="noopener noreferrer">Create a collection that supports hybrid search</a>.</td></tr><tr><td>reranker</td><td>Reranker</td><td>Input parameter. The re-ranker model to use for hybrid search, depending on the collection configuration. <strong>This parameter shows the default reranker even if the selected collection doesn't support hybrid search.</strong> To verify if a collection supports hybrid search, <a href="https://docs.datastax.com/en/astra-db-serverless/api-reference/collection-methods/list-collection-metadata.html" target="_blank" rel="noopener noreferrer">get collection metadata</a>, and then check that <code>lexical</code> and <code>rerank</code> both have <code>"enabled": true</code>.</td></tr><tr><td>lexical_terms</td><td>Lexical Terms</td><td>Input parameter. A space-separated string of keywords for hybrid search, like <code>features, data, attributes, characteristics</code>. This parameter is only available if the collection supports hybrid search. For more information, see the following <strong>Hybrid search example</strong>.</td></tr><tr><td>number_of_results</td><td>Number of Search Results</td><td>Input parameter. The number of search results to return. Default: 4.</td></tr><tr><td>search_type</td><td>Search Type</td><td>Input parameter. The search type to use, either <code>Similarity</code> (default), <code>Similarity with score threshold</code>, and <code>MMR (Max Marginal Relevance)</code>.</td></tr><tr><td>search_score_threshold</td><td>Search Score Threshold</td><td>Input parameter. The minimum similarity score threshold for vector search results with the <code>Similarity with score threshold</code> search type. Default: 0.</td></tr><tr><td>advanced_search_filter</td><td>Search Metadata Filter</td><td>Input parameter. An optional dictionary of metadata filters to apply in addition to vector or hybrid search.</td></tr><tr><td>autodetect_collection</td><td>Autodetect Collection</td><td>Input parameter. Whether to automatically fetch a list of available collections after providing an application token and API endpoint.</td></tr><tr><td>content_field</td><td>Content Field</td><td>Input parameter. For writes, this parameter specifies the name of the field in the documents that contains text strings for which you want to generate embeddings.</td></tr><tr><td>deletion_field</td><td>Deletion Based On Field</td><td>Input parameter. When provided, documents in the target collection with metadata field values matching the input metadata field value are deleted before new records are loaded. Use this setting for writes with upserts (overwrites).</td></tr><tr><td>ignore_invalid_documents</td><td>Ignore Invalid Documents</td><td>Input parameter. Whether to ignore invalid documents during writes. If disabled (false), then an error is raised for invalid documents. Default: Enabled (true).</td></tr><tr><td>astradb_vectorstore_kwargs</td><td>AstraDBVectorStore Parameters</td><td>Input parameter. An optional dictionary of additional parameters for the <code>AstraDBVectorStore</code> instance. For more information, see <a href="#vector-store-instances">Vector store instances</a>.</td></tr></tbody></table></div></div></details>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Hybrid search example</summary><div><div class="collapsibleContent_i85q"><p>The <strong>Astra DB</strong> component supports the Data API's <a href="https://docs.datastax.com/en/astra-db-serverless/databases/hybrid-search.html" target="_blank" rel="noopener noreferrer">hybrid search</a> feature.
|
||
Hybrid search performs a vector similarity search and a lexical search, compares the results of both searches, and then returns the most relevant results overall.</p><p>To use hybrid search through the <strong>Astra DB</strong> component, do the following:</p><ol>
|
||
<li>
|
||
<p>Use the Data API to <a href="https://docs.datastax.com/en/astra-db-serverless/api-reference/collection-methods/create-collection.html#example-hybrid" target="_blank" rel="noopener noreferrer">create a collection that supports hybrid search</a> if you haven't already created one.</p>
|
||
<p>Although you can create a collection through the <strong>Astra DB</strong> component, you have more control and insight into the collection settings when using the Data API for this operation.</p>
|
||
</li>
|
||
<li>
|
||
<p>Create a flow based on the <strong>Hybrid Search RAG</strong> template, which includes an <strong>Astra DB</strong> component that is pre-configured for hybrid search.</p>
|
||
</li>
|
||
<li>
|
||
<p>In the <strong>Language Model</strong> components, add your OpenAI API key.</p>
|
||
</li>
|
||
<li>
|
||
<p>Delete the <strong>Language Model</strong> component that is connected to the <strong>Structured Output</strong> component's <strong>Input Message</strong> port, and then connect the <strong>Chat Input</strong> component to that port.</p>
|
||
</li>
|
||
<li>
|
||
<p>Configure the <strong>Astra DB</strong> vector store component:</p>
|
||
<ol>
|
||
<li>
|
||
<p>Enter your Astra DB application token.</p>
|
||
</li>
|
||
<li>
|
||
<p>In the <strong>Database</strong> field, select your database.</p>
|
||
</li>
|
||
<li>
|
||
<p>In the <strong>Collection</strong> field, select your collection with hybrid search enabled.</p>
|
||
<p>Once you select a collection that supports hybrid search, the other parameters automatically update to allow hybrid search options.</p>
|
||
</li>
|
||
</ol>
|
||
</li>
|
||
<li>
|
||
<p>In the <a href="/concepts-components#component-menus">component's header menu</a>, click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sliders-horizontal" aria-hidden="true"><line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line></svg> <strong>Controls</strong>, find the <strong>Lexical Terms</strong> field, enable the <strong>Show</strong> toggle, and then click <strong>Close</strong>.</p>
|
||
</li>
|
||
<li>
|
||
<p>Connect the first <strong>Parser</strong> component's <strong>Parsed Text</strong> output to the <strong>Astra DB</strong> component's <strong>Lexical Terms</strong> input.
|
||
This input only appears after connecting a collection that support hybrid search with reranking.</p>
|
||
</li>
|
||
<li>
|
||
<p>Click the <strong>Structured Output</strong> component to expose the <a href="/concepts-components#component-menus">component's header menu</a>, click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sliders-horizontal" aria-hidden="true"><line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line></svg> <strong>Controls</strong>, find the <strong>Format Instructions</strong> row, click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-expand" aria-hidden="true"><path d="m21 21-6-6m6 6v-4.8m0 4.8h-4.8"></path><path d="M3 16.2V21m0 0h4.8M3 21l6-6"></path><path d="M21 7.8V3m0 0h-4.8M21 3l-6 6"></path><path d="M3 7.8V3m0 0h4.8M3 3l6 6"></path></svg> <strong>Expand</strong>, and then replace the prompt with the following text:</p>
|
||
<div class="ch-codeblock not-prose" data-ch-theme="github-dark"><div class="ch-code-wrapper ch-code" data-ch-measured="false"><code class="ch-code-scroll-parent"><br><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>You are a database query planner that takes a user's requests, and then converts to a search against the subject matter in question.</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>You should convert the query into:</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>1. A list of keywords to use against a Lucene text analyzer index, no more than 4. Strictly unigrams.</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>2. A question to use as the basis for a QA embedding engine.</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>Avoid common keywords associated with the user's subject matter.</span></div></div><br></code></div></div>
|
||
</li>
|
||
<li>
|
||
<p>Click <strong>Finish Editing</strong>, and then click <strong>Close</strong> to save your changes to the component.</p>
|
||
</li>
|
||
<li>
|
||
<p>Open the <strong>Playground</strong>, and then enter a natural language question that you would ask about your database.</p>
|
||
<p>In this example, your input is sent to both the <strong>Astra DB</strong> and <strong>Structured Output</strong> components:</p>
|
||
<ul>
|
||
<li>
|
||
<p>The input sent directly to the <strong>Astra DB</strong> component's <strong>Search Query</strong> port is used as a string for similarity search.
|
||
An embedding is generated from the query string using the collection's Astra DB vectorize integration.</p>
|
||
</li>
|
||
<li>
|
||
<p>The input sent to the <strong>Structured Output</strong> component is processed by the <strong>Structured Output</strong>, <strong>Language Model</strong>, and <strong>Parser</strong> components to extract space-separated <code>keywords</code> used for the lexical search portion of the hybrid search.</p>
|
||
</li>
|
||
</ul>
|
||
<p>The complete hybrid search query is executed against your database using the Data API's <code>find_and_rerank</code> command.
|
||
The API's response is output as a <code>DataFrame</code> that is transformed into a text string <code>Message</code> by another <strong>Parser</strong> component.
|
||
Finally, the <strong>Chat Output</strong> component prints the <code>Message</code> response to the <strong>Playground</strong>.</p>
|
||
</li>
|
||
<li>
|
||
<p>Optional: Exit the <strong>Playground</strong>, and then click <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-search" aria-hidden="true"><path d="M21 6H3"></path><path d="M10 12H3"></path><path d="M10 18H3"></path><circle cx="17" cy="15" r="3"></circle><path d="m21 19-1.9-1.9"></path></svg> <strong>Inspect Output</strong> on each individual component to understand how lexical keywords were constructed and view the raw response from the Data API.
|
||
This is helpful for debugging flows where a certain component isn't receiving input as expected from another component.</p>
|
||
<ul>
|
||
<li>
|
||
<p><strong>Structured Output component</strong>: The output is the <code>Data</code> object produced by applying the output schema to the LLM's response to the input message and format instructions.
|
||
The following example is based on the aforementioned instructions for keyword extraction:</p>
|
||
<div class="ch-codeblock not-prose" data-ch-theme="github-dark"><div class="ch-code-wrapper ch-code" data-ch-measured="false"><code class="ch-code-scroll-parent"><br><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>1. Keywords: features, data, attributes, characteristics</span></div></div><div><span class="ch-code-line-number">_<!-- -->10</span><div style="display:inline-block;margin-left:16px"><span>2. Question: What characteristics can be identified in my data?</span></div></div><br></code></div></div>
|
||
</li>
|
||
<li>
|
||
<p><strong>Parser component</strong>: The output is the string of keywords extracted from the structured output <code>Data</code>, and then used as lexical terms for the hybrid search.</p>
|
||
</li>
|
||
<li>
|
||
<p><strong>Astra DB component</strong>: The output is the <code>DataFrame</code> containing the results of the hybrid search as returned by the Data API.</p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ol></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="astra-db-graph">Astra DB Graph<a href="#astra-db-graph" class="hash-link" aria-label="Direct link to Astra DB Graph" title="Direct link to Astra DB Graph"></a></h3>
|
||
<p>The <strong>Astra DB Graph</strong> component uses a <code>AstraDBGraphVectorStore</code> instance for graph traversal and graph-based document retrieval in an Astra DB collection. It also supports writing to the vector store.
|
||
For more information, see <a href="https://docs.datastax.com/en/astra-db-serverless/tutorials/graph-rag.html" target="_blank" rel="noopener noreferrer">Build a Graph RAG system with LangChain and GraphRetriever</a>.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Astra DB Graph parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>token</td><td>Astra DB Application Token</td><td>Input parameter. An Astra application token with permission to access your vector database. Once the connection is verified, additional fields are populated with your existing databases and collections. If you want to create a database through this component, the application token must have Organization Administrator permissions.</td></tr><tr><td>api_endpoint</td><td>API Endpoint</td><td>Input parameter. Your database's API endpoint.</td></tr><tr><td>keyspace</td><td>Keyspace</td><td>Input parameter. The keyspace in your database that contains the collection specified in <code>collection_name</code>. Default: <code>default_keyspace</code>.</td></tr><tr><td>collection_name</td><td>Collection</td><td>Input parameter. The name of the collection that you want to use with this flow. For write operations, if a matching collection doesn't exist, a new one is created.</td></tr><tr><td>metadata_incoming_links_key</td><td>Metadata Incoming Links Key</td><td>Input parameter. The metadata key for the incoming links in the vector store.</td></tr><tr><td>ingest_data</td><td>Ingest Data</td><td>Input parameter. Records to load into the vector store. Only relevant for writes.</td></tr><tr><td>search_input</td><td>Search Query</td><td>Input parameter. Query string for similarity search. Only relevant for reads.</td></tr><tr><td>cache_vector_store</td><td>Cache Vector Store</td><td>Input parameter. Whether to cache the vector store in Langflow memory for faster reads. Default: Enabled (true).</td></tr><tr><td>embedding_model</td><td>Embedding Model</td><td>Input parameter. Attach an <a href="/components-embedding-models"><strong>Embedding Model</strong> component</a> to generate embeddings. If the collection has a <a href="https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html" target="_blank" rel="noopener noreferrer">vectorize integration</a>, don't attach an <strong>Embedding Model</strong> component.</td></tr><tr><td>metric</td><td>Metric</td><td>Input parameter. The metrics to use for similarity search calculations, either <code>cosine</code> (default), <code>dot_product</code>, or <code>euclidean</code>. This is a collection setting.</td></tr><tr><td>batch_size</td><td>Batch Size</td><td>Input parameter. Optional number of records to process in a single batch.</td></tr><tr><td>bulk_insert_batch_concurrency</td><td>Bulk Insert Batch Concurrency</td><td>Input parameter. Optional concurrency level for bulk write operations.</td></tr><tr><td>bulk_insert_overwrite_concurrency</td><td>Bulk Insert Overwrite Concurrency</td><td>Input parameter. Optional concurrency level for bulk write operations that allow upserts (overwriting existing records).</td></tr><tr><td>bulk_delete_concurrency</td><td>Bulk Delete Concurrency</td><td>Input parameter. Optional concurrency level for bulk delete operations.</td></tr><tr><td>setup_mode</td><td>Setup Mode</td><td>Input parameter. Configuration mode for setting up the vector store, either <code>Sync</code> (default) or <code>Off</code>.</td></tr><tr><td>pre_delete_collection</td><td>Pre Delete Collection</td><td>Input parameter. Whether to delete the collection before creating a new one. Default: Disabled (false).</td></tr><tr><td>metadata_indexing_include</td><td>Metadata Indexing Include</td><td>Input parameter. An list of metadata fields to index if you want to enable <a href="https://docs.datastax.com/en/astra-db-serverless/api-reference/collection-indexes.html" target="_blank" rel="noopener noreferrer">selective indexing</a> <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing).</td></tr><tr><td>metadata_indexing_exclude</td><td>Metadata Indexing Exclude</td><td>Input parameter. An list of metadata fields to exclude from indexing if you want to enable selective indexing <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing).</td></tr><tr><td>collection_indexing_policy</td><td>Collection Indexing Policy</td><td>Input parameter. A dictionary to define the indexing policy if you want to enable selective indexing <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing). The <code>collection_indexing_policy</code> dictionary is used when you need to set indexing on subfields or a complex indexing definition that isn't compatible as a list.</td></tr><tr><td>number_of_results</td><td>Number of Results</td><td>Input parameter. Number of search results to return. Default: 4. Only relevant to reads.</td></tr><tr><td>search_type</td><td>Search Type</td><td>Input parameter. Search type to use, either <code>Similarity</code>, <code>Similarity with score threshold</code>, or <code>MMR (Max Marginal Relevance)</code>, <code>Graph Traversal</code>, or <code>MMR (Max Marginal Relevance) Graph Traversal</code> (default). Only relevant to reads.</td></tr><tr><td>search_score_threshold</td><td>Search Score Threshold</td><td>Input parameter. Minimum similarity score threshold for search results if the <code>search_type</code> is <code>Similarity with score threshold</code>. Default: 0.</td></tr><tr><td>search_filter</td><td>Search Metadata Filter</td><td>Input parameter. Optional dictionary of metadata filters to apply in addition to vector search.</td></tr></tbody></table></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="graph-rag">Graph RAG<a href="#graph-rag" class="hash-link" aria-label="Direct link to Graph RAG" title="Direct link to Graph RAG"></a></h3>
|
||
<p>The <strong>Graph RAG</strong> component uses an instance of <a href="https://datastax.github.io/graph-rag/reference/langchain_graph_retriever/" target="_blank" rel="noopener noreferrer"><code>GraphRetriever</code></a> for Graph RAG traversal enabling graph-based document retrieval in an Astra DB vector store.
|
||
For more information, see the <a href="https://datastax.github.io/graph-rag/" target="_blank" rel="noopener noreferrer">DataStax Graph RAG documentation</a>.</p>
|
||
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>This component was meant as a Graph RAG extension for the <strong>Astra DB</strong> vector store component.
|
||
However, the <strong>Astra DB Graph</strong> component includes both the vector store connection and Graph RAG functionality.</p></div></div>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Graph RAG parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>embedding_model</td><td>Embedding Model</td><td>Input parameter. Specify the embedding model to use. Not required if the connected vector store has an <a href="https://docs.datastax.com/en/astra-db-serverless/databases/embedding-generation.html" target="_blank" rel="noopener noreferrer">vectorize integration</a>.</td></tr><tr><td>vector_store</td><td>Vector Store Connection</td><td>Input parameter. A <a href="#vector-store-instances"><code>vector_store</code></a> instance inherited from an <strong>Astra DB</strong> component's <strong>Vector Store Connection</strong> output.</td></tr><tr><td>edge_definition</td><td>Edge Definition</td><td>Input parameter. <a href="https://datastax.github.io/graph-rag/reference/graph_retriever/edges/" target="_blank" rel="noopener noreferrer">Edge definition</a> for the graph traversal.</td></tr><tr><td>strategy</td><td>Traversal Strategies</td><td>Input parameter. The strategy to use for graph traversal. Strategy options are dynamically loaded from available strategies.</td></tr><tr><td>search_query</td><td>Search Query</td><td>Input parameter. The query to search for in the vector store.</td></tr><tr><td>graphrag_strategy_kwargs</td><td>Strategy Parameters</td><td>Input parameter. Optional dictionary of additional parameters for the <a href="https://datastax.github.io/graph-rag/reference/graph_retriever/strategies/" target="_blank" rel="noopener noreferrer">retrieval strategy</a>.</td></tr><tr><td>search_results</td><td><strong>Search Results</strong> or <strong>DataFrame</strong></td><td>Output parameter. The results of the graph-based document retrieval as a list of <a href="/data-types#data"><code>Data</code></a> objects or as a tabular <a href="/data-types#dataframe"><code>DataFrame</code></a>. You can set the desired output type near the component's output port.</td></tr></tbody></table></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="hyper-converged-database-hcd">Hyper-Converged Database (HCD)<a href="#hyper-converged-database-hcd" class="hash-link" aria-label="Direct link to Hyper-Converged Database (HCD)" title="Direct link to Hyper-Converged Database (HCD)"></a></h3>
|
||
<p>The <strong>Hyper-Converged Database (HCD)</strong> component uses your cluster's the Data API server to read and write to an HCD vector store.
|
||
Because the underlying functions call the Data API, which originated from Astra DB, the component uses an instance of <code>AstraDBVectorStore</code>.</p>
|
||
<p><img decoding="async" loading="lazy" alt="A flow using the HCD component to load vector data." src="/assets/images/component-hcd-example-flow-b82057600ce5e9e4a0f7ea0a61dcbf7f.png" width="2294" height="1684" class="img_ev3q"></p>
|
||
<p>For more information about using the Data API with an HCD deployment, see <a href="https://docs.datastax.com/en/hyper-converged-database/1.2/api-reference/dataapiclient.html" target="_blank" rel="noopener noreferrer">Get started with the Data API in HCD 1.2</a>.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>HCD parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Display Name</th><th>Info</th></tr></thead><tbody><tr><td>collection_name</td><td>Collection Name</td><td>Input parameter. The name of a vector store collection in HCD. For write operations, if the collection doesn't exist, then a new one is created. Required.</td></tr><tr><td>username</td><td>HCD Username</td><td>Input parameter. Username for authenticating to your HCD deployment. Default: <code>hcd-superuser</code>. Required.</td></tr><tr><td>password</td><td>HCD Password</td><td>Input parameter. Password for authenticating to your HCD deployment. Required.</td></tr><tr><td>api_endpoint</td><td>HCD API Endpoint</td><td>Input parameter. Your deployment's HCD Data API endpoint, formatted as <code>http[s]://**CLUSTER_HOST**:**GATEWAY_PORT</code> where <code>CLUSTER_HOST</code> is the IP address of any node in your cluster and <code>GATEWAY_PORT</code> is the port number ofr your API gateway service. For example, <code>http://192.0.2.250:8181</code>. Required.</td></tr><tr><td>ingest_data</td><td>Ingest Data</td><td>Input parameter. Records to load into the vector store. Only relevant for writes.</td></tr><tr><td>search_input</td><td>Search Input</td><td>Input parameter. Query string for similarity search. Only relevant for reads.</td></tr><tr><td>namespace</td><td>Namespace</td><td>Input parameter. The namespace in HCD that contains or will contain the collection specified in <code>collection_name</code>. Default: <code>default_namespace</code>.</td></tr><tr><td>ca_certificate</td><td>CA Certificate</td><td>Input parameter. Optional CA certificate for TLS connections to HCD.</td></tr><tr><td>metric</td><td>Metric</td><td>Input parameter. The metrics to use for similarity search calculations, either <code>cosine</code>, <code>dot_product</code>, or <code>euclidean</code>. This is a collection setting. If calling an existing collection, leave unset to use the collection's metric. If a write operation creates a new collection, specify the desired similarity metric setting.</td></tr><tr><td>batch_size</td><td>Batch Size</td><td>Input parameter. Optional number of records to process in a single batch.</td></tr><tr><td>bulk_insert_batch_concurrency</td><td>Bulk Insert Batch Concurrency</td><td>Input parameter. Optional concurrency level for bulk write operations.</td></tr><tr><td>bulk_insert_overwrite_concurrency</td><td>Bulk Insert Overwrite Concurrency</td><td>Input parameter. Optional concurrency level for bulk write operations that allow upserts (overwriting existing records).</td></tr><tr><td>bulk_delete_concurrency</td><td>Bulk Delete Concurrency</td><td>Input parameter. Optional concurrency level for bulk delete operations.</td></tr><tr><td>setup_mode</td><td>Setup Mode</td><td>Input parameter. Configuration mode for setting up the vector store, either <code>Sync</code> (default), <code>Async</code>, or <code>Off</code>.</td></tr><tr><td>pre_delete_collection</td><td>Pre Delete Collection</td><td>Input parameter. Whether to delete the collection before creating a new one.</td></tr><tr><td>metadata_indexing_include</td><td>Metadata Indexing Include</td><td>Input parameter. An list of metadata fields to index if you want to enable <a href="https://docs.datastax.com/en/hyper-converged-database/1.2/api-reference/collection-indexes.html" target="_blank" rel="noopener noreferrer">selective indexing</a> <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing).</td></tr><tr><td>metadata_indexing_exclude</td><td>Metadata Indexing Exclude</td><td>Input parameter. An list of metadata fields to exclude from indexing if you want to enable selective indexing <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing).</td></tr><tr><td>collection_indexing_policy</td><td>Collection Indexing Policy</td><td>Input parameter. A dictionary to define the indexing policy if you want to enable selective indexing <em>only</em> when creating a collection. Doesn't apply to existing collections. Only one <code>*_indexing_*</code> parameter can be set per collection. If all <code>*_indexing_*</code> parameters are unset, then all fields are indexed (default indexing). The <code>collection_indexing_policy</code> dictionary is used when you need to set indexing on subfields or a complex indexing definition that isn't compatible as a list.</td></tr><tr><td>embedding</td><td>Embedding or Astra Vectorize</td><td>Input parameter. The embedding model to use by attaching an <strong>Embedding Model</strong> component. This component doesn't support additional vectorize authentication headers, so it isn't possible to use a vectorize integration with this component, even if you have enabled one on an existing HCD collection.</td></tr><tr><td>number_of_results</td><td>Number of Results</td><td>Input parameter. Number of search results to return. Default: 4. Only relevant to reads.</td></tr><tr><td>search_type</td><td>Search Type</td><td>Input parameter. Search type to use, either <code>Similarity</code> (default), <code>Similarity with score threshold</code>, or <code>MMR (Max Marginal Relevance)</code>. Only relevant to reads.</td></tr><tr><td>search_score_threshold</td><td>Search Score Threshold</td><td>Input parameter. Minimum similarity score threshold for search results if the <code>search_type</code> is <code>Similarity with score threshold</code>. Default: 0.</td></tr><tr><td>search_filter</td><td>Search Metadata Filter</td><td>Input parameter. Optional dictionary of metadata filters to apply in addition to vector search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="elasticsearch">Elasticsearch<a href="#elasticsearch" class="hash-link" aria-label="Direct link to Elasticsearch" title="Direct link to Elasticsearch"></a></h2>
|
||
<p>The <strong>Elasticsearch</strong> component reads and writes to an Elasticsearch instance using <code>ElasticsearchStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/dense-vector.html" target="_blank" rel="noopener noreferrer">Elasticsearch documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Elasticsearch parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>es_url</td><td>String</td><td>Input parameter. Elasticsearch server URL.</td></tr><tr><td>es_user</td><td>String</td><td>Input parameter. Username for Elasticsearch authentication.</td></tr><tr><td>es_password</td><td>SecretString</td><td>Input parameter. Password for Elasticsearch authentication.</td></tr><tr><td>index_name</td><td>String</td><td>Input parameter. Name of the Elasticsearch index.</td></tr><tr><td>strategy</td><td>String</td><td>Input parameter. Strategy for vector search, either <code>approximate_k_nearest_neighbors</code> or <code>script_scoring</code>.</td></tr><tr><td>distance_strategy</td><td>String</td><td>Input parameter. Strategy for distance calculation, either <code>COSINE</code>, <code>EUCLIDEAN_DISTANCE</code>, or <code>DOT_PRODUCT</code>.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. Query string for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. Records to load into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding model to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Number of search results to return. Default: 4.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="faiss">FAISS<a href="#faiss" class="hash-link" aria-label="Direct link to FAISS" title="Direct link to FAISS"></a></h2>
|
||
<p>The <strong>FAISS</strong> component providese access to the Facebook AI Similarity Search (FAISS) library through an instance of <code>FAISS</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://faiss.ai/index.html" target="_blank" rel="noopener noreferrer">FAISS documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>FAISS parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>index_name</td><td>String</td><td>Input parameter. The name of the FAISS index. Default: "langflow_index".</td></tr><tr><td>persist_directory</td><td>String</td><td>Input parameter. Path to save the FAISS index. It is relative to where Langflow is running.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query to search for in the vector store.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The list of data to ingest into the vector store.</td></tr><tr><td>allow_dangerous_deserialization</td><td>Boolean</td><td>Input parameter. Set to True to allow loading pickle files from untrusted sources. Default: True.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use for the vector store.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Number of results to return from the search. Default: 4.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="milvus">Milvus<a href="#milvus" class="hash-link" aria-label="Direct link to Milvus" title="Direct link to Milvus"></a></h2>
|
||
<p>The <strong>Milvus</strong> component reads and writes to Milvus vector stores using an instance of <code>Milvus</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://milvus.io/docs" target="_blank" rel="noopener noreferrer">Milvus documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Milvus parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>collection_name</td><td>String</td><td>Input parameter. Name of the Milvus collection.</td></tr><tr><td>collection_description</td><td>String</td><td>Input parameter. Description of the Milvus collection.</td></tr><tr><td>uri</td><td>String</td><td>Input parameter. Connection URI for Milvus.</td></tr><tr><td>password</td><td>SecretString</td><td>Input parameter. Password for Milvus.</td></tr><tr><td>username</td><td>SecretString</td><td>Input parameter. Username for Milvus.</td></tr><tr><td>batch_size</td><td>Integer</td><td>Input parameter. Number of data to process in a single batch.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. Query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. Data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. Embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Number of results to return in search.</td></tr><tr><td>search_type</td><td>String</td><td>Input parameter. Type of search to perform.</td></tr><tr><td>search_score_threshold</td><td>Float</td><td>Input parameter. Minimum similarity score for search results.</td></tr><tr><td>search_filter</td><td>Dict</td><td>Input parameter. Metadata filters for search query.</td></tr><tr><td>setup_mode</td><td>String</td><td>Input parameter. Configuration mode for setting up the vector store.</td></tr><tr><td>vector_dimensions</td><td>Integer</td><td>Input parameter. Number of dimensions of the vectors.</td></tr><tr><td>pre_delete_collection</td><td>Boolean</td><td>Input parameter. Whether to delete the collection before creating a new one.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="mongodb-atlas">MongoDB Atlas<a href="#mongodb-atlas" class="hash-link" aria-label="Direct link to MongoDB Atlas" title="Direct link to MongoDB Atlas"></a></h2>
|
||
<p>The <strong>MongoDB Atlas</strong> component reads and writes to MongoDB Atlas vector stores using an instance of <code>MongoDBAtlasVectorSearch</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://www.mongodb.com/docs/atlas/atlas-vector-search/tutorials/vector-search-quick-start/" target="_blank" rel="noopener noreferrer">MongoDB Atlas documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>MongoDB Atlas parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>mongodb_atlas_cluster_uri</td><td>SecretString</td><td>Input parameter. The connection URI for your MongoDB Atlas cluster. Required.</td></tr><tr><td>enable_mtls</td><td>Boolean</td><td>Input parameter. Enable mutual TLS authentication. Default: false.</td></tr><tr><td>mongodb_atlas_client_cert</td><td>SecretString</td><td>Input parameter. Client certificate combined with private key for mTLS authentication. Required if mTLS is enabled.</td></tr><tr><td>db_name</td><td>String</td><td>Input parameter. The name of the database to use. Required.</td></tr><tr><td>collection_name</td><td>String</td><td>Input parameter. The name of the collection to use. Required.</td></tr><tr><td>index_name</td><td>String</td><td>Input parameter. The name of the Atlas Search index, it should be a Vector Search. Required.</td></tr><tr><td>insert_mode</td><td>String</td><td>Input parameter. How to insert new documents into the collection. The options are "append" or "overwrite". Default: "append".</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding model to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. Number of results to return in similarity search. Default: 4.</td></tr><tr><td>index_field</td><td>String</td><td>Input parameter. The field to index. Default: "embedding".</td></tr><tr><td>filter_field</td><td>String</td><td>Input parameter. The field to filter the index.</td></tr><tr><td>number_dimensions</td><td>Integer</td><td>Input parameter. Embedding context length. Default: 1536.</td></tr><tr><td>similarity</td><td>String</td><td>Input parameter. The method used to measure similarity between vectors. The options are "cosine", "euclidean", or "dotProduct". Default: "cosine".</td></tr><tr><td>quantization</td><td>String</td><td>Input parameter. Quantization reduces memory costs by converting 32-bit floats to smaller data types. The options are "scalar" or "binary".</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="opensearch">OpenSearch<a href="#opensearch" class="hash-link" aria-label="Direct link to OpenSearch" title="Direct link to OpenSearch"></a></h2>
|
||
<p>The <strong>OpenSearch</strong> component reads and writes to OpenSearch instances using <code>OpenSearchVectorSearch</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://opensearch.org/platform/search/vector-database.html" target="_blank" rel="noopener noreferrer">OpenSearch documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>OpenSearch parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>opensearch_url</td><td>String</td><td>Input parameter. URL for OpenSearch cluster, such as <code>https://192.168.1.1:9200</code>.</td></tr><tr><td>index_name</td><td>String</td><td>Input parameter. The index name where the vectors are stored in OpenSearch cluster.</td></tr><tr><td>search_input</td><td>String</td><td>Input parameter. Enter a search query. Leave empty to retrieve all documents or if hybrid search is being used.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>search_type</td><td>String</td><td>Input parameter. The options are "similarity", "similarity_score_threshold", "mmr".</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr><tr><td>search_score_threshold</td><td>Float</td><td>Input parameter. The minimum similarity score threshold for search results.</td></tr><tr><td>username</td><td>String</td><td>Input parameter. The username for the opensource cluster.</td></tr><tr><td>password</td><td>SecretString</td><td>Input parameter. The password for the opensource cluster.</td></tr><tr><td>use_ssl</td><td>Boolean</td><td>Input parameter. Use SSL.</td></tr><tr><td>verify_certs</td><td>Boolean</td><td>Input parameter. Verify certificates.</td></tr><tr><td>hybrid_search_query</td><td>String</td><td>Input parameter. Provide a custom hybrid search query in JSON format. This allows you to combine vector similarity and keyword matching.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="pgvector">PGVector<a href="#pgvector" class="hash-link" aria-label="Direct link to PGVector" title="Direct link to PGVector"></a></h2>
|
||
<p>The <strong>PGVector</strong> component reads and writes to PostgreSQL vector stores using an instance of <code>PGVector</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://github.com/pgvector/pgvector" target="_blank" rel="noopener noreferrer">PGVector documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>PGVector parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>pg_server_url</td><td>SecretString</td><td>Input parameter. The PostgreSQL server connection string.</td></tr><tr><td>collection_name</td><td>String</td><td>Input parameter. The table name for the vector store.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="pinecone">Pinecone<a href="#pinecone" class="hash-link" aria-label="Direct link to Pinecone" title="Direct link to Pinecone"></a></h2>
|
||
<p>The <strong>Pinecone</strong> component reads and writes to Pinecone vector stores using an instance of <code>PineconeVectorStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://docs.pinecone.io/home" target="_blank" rel="noopener noreferrer">Pinecone documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Pinecone parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>index_name</td><td>String</td><td>Input parameter. The name of the Pinecone index.</td></tr><tr><td>namespace</td><td>String</td><td>Input parameter. The namespace for the index.</td></tr><tr><td>distance_strategy</td><td>String</td><td>Input parameter. The strategy for calculating distance between vectors.</td></tr><tr><td>pinecone_api_key</td><td>SecretString</td><td>Input parameter. The API key for Pinecone.</td></tr><tr><td>text_key</td><td>String</td><td>Input parameter. The key in the record to use as text.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="qdrant">Qdrant<a href="#qdrant" class="hash-link" aria-label="Direct link to Qdrant" title="Direct link to Qdrant"></a></h2>
|
||
<p>The <strong>Qdrant</strong> component reads and writes to Qdrant vector stores using an instance of <code>QdrantVectorStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://qdrant.tech/documentation/" target="_blank" rel="noopener noreferrer">Qdrant documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Qdrant parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>collection_name</td><td>String</td><td>Input parameter. The name of the Qdrant collection.</td></tr><tr><td>host</td><td>String</td><td>Input parameter. The Qdrant server host.</td></tr><tr><td>port</td><td>Integer</td><td>Input parameter. The Qdrant server port.</td></tr><tr><td>grpc_port</td><td>Integer</td><td>Input parameter. The Qdrant gRPC port.</td></tr><tr><td>api_key</td><td>SecretString</td><td>Input parameter. The API key for Qdrant.</td></tr><tr><td>prefix</td><td>String</td><td>Input parameter. The prefix for Qdrant.</td></tr><tr><td>timeout</td><td>Integer</td><td>Input parameter. The timeout for Qdrant operations.</td></tr><tr><td>path</td><td>String</td><td>Input parameter. The path for Qdrant.</td></tr><tr><td>url</td><td>String</td><td>Input parameter. The URL for Qdrant.</td></tr><tr><td>distance_func</td><td>String</td><td>Input parameter. The distance function for vector similarity.</td></tr><tr><td>content_payload_key</td><td>String</td><td>Input parameter. The content payload key.</td></tr><tr><td>metadata_payload_key</td><td>String</td><td>Input parameter. The metadata payload key.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="redis">Redis<a href="#redis" class="hash-link" aria-label="Direct link to Redis" title="Direct link to Redis"></a></h2>
|
||
<p>The <strong>Redis</strong> component reads and writes to Redis vector stores using an instance of <code>Redis</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/vectors/" target="_blank" rel="noopener noreferrer">Redis documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Redis parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>redis_server_url</td><td>SecretString</td><td>Input parameter. The Redis server connection string.</td></tr><tr><td>redis_index_name</td><td>String</td><td>Input parameter. The name of the Redis index.</td></tr><tr><td>code</td><td>String</td><td>Input parameter. The custom code for Redis (advanced).</td></tr><tr><td>schema</td><td>String</td><td>Input parameter. The schema for Redis index.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="supabase">Supabase<a href="#supabase" class="hash-link" aria-label="Direct link to Supabase" title="Direct link to Supabase"></a></h2>
|
||
<p>The <strong>Supabase</strong> component reads and writes to Supabase vector stores using an instance of <code>SupabaseVectorStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://supabase.com/docs/guides/ai" target="_blank" rel="noopener noreferrer">Supabase documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Supabase parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>supabase_url</td><td>String</td><td>Input parameter. The URL of the Supabase instance.</td></tr><tr><td>supabase_service_key</td><td>SecretString</td><td>Input parameter. The service key for Supabase authentication.</td></tr><tr><td>table_name</td><td>String</td><td>Input parameter. The name of the table in Supabase.</td></tr><tr><td>query_name</td><td>String</td><td>Input parameter. The name of the query to use.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="upstash">Upstash<a href="#upstash" class="hash-link" aria-label="Direct link to Upstash" title="Direct link to Upstash"></a></h2>
|
||
<p>The <strong>Upstash</strong> component reads and writes to Upstash vector stores using an instance of <code>UpstashVectorStore</code>.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://upstash.com/docs/introduction" target="_blank" rel="noopener noreferrer">Upstash documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Upstash parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>index_url</td><td>String</td><td>Input parameter. The URL of the Upstash index.</td></tr><tr><td>index_token</td><td>SecretString</td><td>Input parameter. The token for the Upstash index.</td></tr><tr><td>text_key</td><td>String</td><td>Input parameter. The key in the record to use as text.</td></tr><tr><td>namespace</td><td>String</td><td>Input parameter. The namespace for the index.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>metadata_filter</td><td>String</td><td>Input parameter. Filter documents by metadata.</td></tr><tr><td>ingest_data</td><td>Data</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="vectara-platform">Vectara Platform<a href="#vectara-platform" class="hash-link" aria-label="Direct link to Vectara Platform" title="Direct link to Vectara Platform"></a></h2>
|
||
<p>The <strong>Vectara</strong> and <strong>Vectara RAG</strong> components support Vectara vector store, search, and RAG functionality using instances of <code>Vectara</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://docs.vectara.com/docs/" target="_blank" rel="noopener noreferrer">Vectara documentation</a></li>
|
||
</ul>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="vectara">Vectara<a href="#vectara" class="hash-link" aria-label="Direct link to Vectara" title="Direct link to Vectara"></a></h3>
|
||
<p>The <strong>Vectara</strong> component reads and writes to Vectara vector stores, and then produces <a href="#search-results-output">search results output</a>.</p>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Vectara parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>vectara_customer_id</td><td>String</td><td>Input parameter. The Vectara customer ID.</td></tr><tr><td>vectara_corpus_id</td><td>String</td><td>Input parameter. The Vectara corpus ID.</td></tr><tr><td>vectara_api_key</td><td>SecretString</td><td>Input parameter. The Vectara API key.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding function to use (optional).</td></tr><tr><td>ingest_data</td><td>List[Document/Data]</td><td>Input parameter. The data to be ingested into the vector store.</td></tr><tr><td>search_query</td><td>String</td><td>Input parameter. The query for similarity search.</td></tr><tr><td>number_of_results</td><td>Integer</td><td>Input parameter. The number of results to return in search.</td></tr></tbody></table></div></div></details>
|
||
<h3 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="vectara-rag">Vectara RAG<a href="#vectara-rag" class="hash-link" aria-label="Direct link to Vectara RAG" title="Direct link to Vectara RAG"></a></h3>
|
||
<p>This component enables Vectara's full end-to-end RAG capabilities with reranking options.</p>
|
||
<p>This component uses a <code>Vectara</code> vector store to execute the vector search and reranking functions, and then outputs an <strong>Answer</strong> string in <a href="/data-types#message"><code>Message</code></a> format.</p>
|
||
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="weaviate">Weaviate<a href="#weaviate" class="hash-link" aria-label="Direct link to Weaviate" title="Direct link to Weaviate"></a></h2>
|
||
<p>The <strong>Weaviate</strong> component reads and writes to Weaviate vector stores using an instance of <code>Weaviate</code> vector store.</p>
|
||
<p>For more information, see the following:</p>
|
||
<ul>
|
||
<li><a href="#hidden-parameters">Hidden parameters</a></li>
|
||
<li><a href="#search-results-output">Search results output</a></li>
|
||
<li><a href="#vector-store-instances">Vector store instances</a></li>
|
||
<li><a href="https://weaviate.io/developers/weaviate" target="_blank" rel="noopener noreferrer">Weaviate Documentation</a></li>
|
||
</ul>
|
||
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Weaviate parameters</summary><div><div class="collapsibleContent_i85q"><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>weaviate_url</td><td>String</td><td>Input parameter. The default instance URL.</td></tr><tr><td>search_by_text</td><td>Boolean</td><td>Input parameter. Indicates whether to search by text.</td></tr><tr><td>api_key</td><td>SecretString</td><td>Input parameter. The optional API key for authentication.</td></tr><tr><td>index_name</td><td>String</td><td>Input parameter. The optional index name.</td></tr><tr><td>text_key</td><td>String</td><td>Input parameter. The default text extraction key.</td></tr><tr><td>input</td><td>Document</td><td>Input parameter. The document or record.</td></tr><tr><td>embedding</td><td>Embeddings</td><td>Input parameter. The embedding model used.</td></tr><tr><td>attributes</td><td>List[String]</td><td>Input parameter. Optional additional attributes.</td></tr></tbody></table></div></div></details></div></article><nav class="docusaurus-mt-lg pagination-nav" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/components-data"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Data</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/components-processing"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Processing components</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#use-vector-store-components-in-a-flow" class="table-of-contents__link toc-highlight">Use Vector Store components in a flow</a><ul><li><a href="#hidden-parameters" class="table-of-contents__link toc-highlight">Hidden parameters</a></li><li><a href="#search-results-output" class="table-of-contents__link toc-highlight">Search results output</a></li><li><a href="#vector-store-instances" class="table-of-contents__link toc-highlight">Vector store instances</a></li></ul></li><li><a href="#apache-cassandra" class="table-of-contents__link toc-highlight">Apache Cassandra</a><ul><li><a href="#cassandra" class="table-of-contents__link toc-highlight">Cassandra</a></li><li><a href="#cassandra-graph" class="table-of-contents__link toc-highlight">Cassandra Graph</a></li></ul></li><li><a href="#chroma" class="table-of-contents__link toc-highlight">Chroma</a><ul><li><a href="#chroma-db" class="table-of-contents__link toc-highlight">Chroma DB</a></li><li><a href="#local-db" class="table-of-contents__link toc-highlight">Local DB</a></li></ul></li><li><a href="#clickhouse" class="table-of-contents__link toc-highlight">Clickhouse</a></li><li><a href="#couchbase" class="table-of-contents__link toc-highlight">Couchbase</a></li><li><a href="#datastax" class="table-of-contents__link toc-highlight">DataStax</a><ul><li><a href="#astra-db" class="table-of-contents__link toc-highlight">Astra DB</a></li><li><a href="#astra-db-graph" class="table-of-contents__link toc-highlight">Astra DB Graph</a></li><li><a href="#graph-rag" class="table-of-contents__link toc-highlight">Graph RAG</a></li><li><a href="#hyper-converged-database-hcd" class="table-of-contents__link toc-highlight">Hyper-Converged Database (HCD)</a></li></ul></li><li><a href="#elasticsearch" class="table-of-contents__link toc-highlight">Elasticsearch</a></li><li><a href="#faiss" class="table-of-contents__link toc-highlight">FAISS</a></li><li><a href="#milvus" class="table-of-contents__link toc-highlight">Milvus</a></li><li><a href="#mongodb-atlas" class="table-of-contents__link toc-highlight">MongoDB Atlas</a></li><li><a href="#opensearch" class="table-of-contents__link toc-highlight">OpenSearch</a></li><li><a href="#pgvector" class="table-of-contents__link toc-highlight">PGVector</a></li><li><a href="#pinecone" class="table-of-contents__link toc-highlight">Pinecone</a></li><li><a href="#qdrant" class="table-of-contents__link toc-highlight">Qdrant</a></li><li><a href="#redis" class="table-of-contents__link toc-highlight">Redis</a></li><li><a href="#supabase" class="table-of-contents__link toc-highlight">Supabase</a></li><li><a href="#upstash" class="table-of-contents__link toc-highlight">Upstash</a></li><li><a href="#vectara-platform" class="table-of-contents__link toc-highlight">Vectara Platform</a><ul><li><a href="#vectara" class="table-of-contents__link toc-highlight">Vectara</a></li><li><a href="#vectara-rag" class="table-of-contents__link toc-highlight">Vectara RAG</a></li></ul></li><li><a href="#weaviate" class="table-of-contents__link toc-highlight">Weaviate</a></li></ul></div></div></div></div></main></div></div></div><footer class="theme-layout-footer footer"><div class="container container-fluid"><div class="row footer__links"><div class="theme-layout-footer-column col footer__col"><div class="footer__title"></div><ul class="footer__items clean-list"><li class="footer__item"><div class="footer-links">
|
||
<span>© 2025 Langflow</span>
|
||
<span id="preferenceCenterContainer"> · <a href="https://langflow.org/preferences">Manage Privacy Choices</a></span>
|
||
</div></li></ul></div></div></div></footer><div style="position:fixed;right:21px;bottom:21px;z-index:100;display:flex;align-items:center;gap:10px;cursor:pointer"><div style="background-color:#f6f6f6;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0,0,0,0.1)"><img src="/img/langflow-icon-black-transparent.svg" style="width:40px" alt="Search"></div></div></div>
|
||
</body>
|
||
</html> |