Skip to content

Commit 86bb7c7

Browse files
authored
Langflow demo: next steps for using non-local files or a different vector store (#322)
1 parent 93fe5e5 commit 86bb7c7

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

examplecode/tools/langflow.mdx

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,73 @@ Also:
199199
</Step>
200200
</Steps>
201201

202+
## Next steps
203+
204+
Now that you have your pipeline set up, here are just a few ways that you could modify it to support different requirements,
205+
such as processing non-local files or using a different vector store.
206+
207+
### Process non-local files
208+
209+
In this demonstration, you pass to Unstructured a file or a directory of files that are stored locally. To pass
210+
non-local files to Unstructured instead, you can use the
211+
[Unstructured Platform](/platform/overview) or
212+
[Unstructured Ingest](/ingestion/overview) outside of Langflow.
213+
214+
To do this, you can:
215+
216+
- [Use the Unstructured Platform to create a workflow](/platform/quickstart) that relies on any available non-local
217+
[source connector](/platform/sources/overview) to connect to
218+
[Astra DB](/platform/destinations/astradb). Run this workflow outside of Langflow anytime you have new documents in that non-local source location that
219+
you want Unstructured to process and then insert the new processed data into Astra DB. Then, back in the Langflow project,
220+
use the **Playground** to ask additional questions, which will now include the new data when generating answers.
221+
222+
- [Use Unstructured Ingest to create a pipeline](/api-reference/ingest/overview) that relies on any available non-local
223+
[source connector](/api-reference/ingest/source-connectors/overview) to connect to
224+
[Astra DB](/api-reference/ingest/destination-connector/astradb). Run this pipeline outside of Langflow anytime you have new documents in that non-local source location that
225+
you want Unstructured to process and then insert the new processed data into Astra DB. Then, back in the Langflow project,
226+
use the **Playground** to ask additonal questions, which will now include the new data when generating answers.
227+
228+
### Use a different vector store
229+
230+
In this demonstration, you use Astra DB as the vector store. Langflow and Unstructured support several vector stores in addition to Astra DB.
231+
232+
To do this, you can:
233+
234+
[Use the Unstructured Platform to create a workflow](/platform/quickstart) that relies on any available
235+
[source connector](/platform/sources/overview) to connect to
236+
one of the following available vector stores that Langflow also supports:
237+
238+
- [Milvus](/platform/destinations/milvus)
239+
- [MongoDB](/platform/destinations/mongodb)
240+
- [Pinecone](/platform/destinations/pinecone)
241+
242+
Run this workflow outside of Langflow anytime you have new documents in the source location that
243+
you want Unstructured to process and then insert the new processed data into the vector store. Then, back in the Langflow project,
244+
swap out the **Astra DB RAG** component for the corresponding **Vector Stores** component that matches the new vector
245+
store's name. Configure the new component, and then
246+
use the **Playground** to ask additional questions, which will now use the new vector store when generating answers.
247+
248+
Or, [use Unstructured Ingest to create a pipeline](/api-reference/ingest/overview) that relies on any available
249+
[source connector](/api-reference/ingest/source-connectors/overview) to connect to
250+
one of the following available vector stores that Langflow also supports:
251+
252+
- [Chroma DB](/api-reference/ingest/destination-connector/chroma)
253+
- [Couchbase](/api-reference/ingest/destination-connector/couchbase)
254+
- [Elasticsearch](/api-reference/ingest/destination-connector/elasticsearch)
255+
- [Milvus](/api-reference/ingest/destination-connector/milvus)
256+
- [MongoDB](/api-reference/ingest/destination-connector/mongodb)
257+
- [OpenSearch](/api-reference/ingest/destination-connector/opensearch)
258+
- [Pinecone](/api-reference/ingest/destination-connector/pinecone)
259+
- [Qdrant](/api-reference/ingest/destination-connector/qdrant)
260+
- [Vectara](/api-reference/ingest/destination-connector/vectara)
261+
- [Weaviate](/api-reference/ingest/destination-connector/weaviate)
262+
263+
Run this pipeline outside of Langflow anytime you have new documents in the source location that
264+
you want Unstructured to process and then insert the new processed data into the vector store. Then, back in the Langflow project,
265+
swap out the **Astra DB RAG** component for the corresponding **Vector Stores** component that matches the new vector
266+
store's name. Configure the new component, and then
267+
use the **Playground** to ask additional questions, which will now use the new vector store when generating answers.
268+
202269
## Learn more
203270

204271
See the [Langflow documentation](https://docs.langflow.org/).

0 commit comments

Comments
 (0)