Automation library · Documents and files

Index legal documents for hybrid search with Qdrant and OpenAI

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. 30 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

30 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 1Logic 18Service 11

The steps in the order they run, from what starts it.

  1. 1Index Dataset from HuggingFaceManual triggerStarts it
  2. 2Check Collection Exists1QdrantService
  3. 3Get Dataset SplitsHttp RequestService
  4. 4Check Collection ExistsQdrantService
  5. 5If1IfLogic
  6. 6Split Them All OutSplit OutLogic
  7. 7IfIfLogic
  8. 8Create Collection1QdrantService
  9. 9Get Dataset Rows (Pagination)Http RequestService
  10. 10Create CollectionQdrantService
  11. 11Divide Per RowSplit OutLogic
  12. 12Restructure for DeduplicatingSetLogic
  13. 13Deduplicate TextsSummarizeService
  14. 14Restructure for BatchingSetLogic
  15. 15LimitLimitLogic
  16. 16MergeMergeLogic
  17. 17Calculate #words in Each TextSetLogic
  18. 18Loop Over BatchesSplit In BatchesLogic
  19. 19Loop Over Batches1Split In BatchesLogic
  20. 20Sum them UpSummarizeService
  21. 21Aggregate a BatchAggregateLogic
  22. 22Edit FieldsSetLogic
  23. 23Merge1MergeLogic
  24. 24Aggregate a Batch to EmbedAggregateLogic
  25. 25Get the Average Text LengthSetLogic
  26. 26Upsert PointsQdrantService
  27. 27Aggregate a Batch to UpsertAggregateLogic
  28. 28Get OpenAI embeddingsHttp RequestService
  29. 29Upsert Points1QdrantService
  30. 30Split OutSplit OutLogic

How it's built

Starts on
An event in a connected app
Steps
30, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 30 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 30 steps before you point it at anything that matters.