Index released PDF manuals from Amazon S3 in Qdrant

Turn each released manual into searchable passages using Doctly and LocalAI, with the file revision recorded on every result.

30 stepsOperationsProduct and engineering

Free to start, no card required.

How it works

  1. When this happens

    Amazon S3 detects a released manual

    Amazon S3

  2. Step 1 · Code

    Identify the manual edition

  3. Step 2

    Check the public manual prefix

    Follows the first path that matches

    • Released PDF

      1. Step 3 · Storage

        Check the edition index receipt

      2. Step 4

        Check whether this revision is indexed

        Follows the first path that matches

        • New edition

          1. Step 5 · Storage

            Check for a previous conversion job

          2. Step 6

            Check whether the PDF needs conversion

            Follows the first path that matches

            • Start a conversion

              1. Step 7 · Amazon S3

                Download the released PDF

              2. Step 8 · Doctly AI

                Extract the manual as Markdown

              3. Step 9 · Code

                Verify the conversion job reference

              4. Step 10 · Storage

                Keep the conversion ID for retries

            • Otherwise

              Nothing happens

          3. Step 11 · Storage

            Read the saved conversion ID

          4. Step 12

            Poll until the PDF is converted

            1. Step 13 · Storage

              Check whether conversion finished

            2. Step 14

              Check whether a status read is needed

              Follows the first path that matches

              • Conversion pending

                1. Step 15 · Doctly AI

                  Read the conversion status

                2. Step 16 · Code

                  Inspect the current document state

                3. Step 17

                  Check whether Markdown is available

                  Follows the first path that matches

                  • Text ready

                    1. Step 18 · Storage

                      Mark the converted edition as ready

                  • Otherwise

                    1. Step 19 · Delay

                      Wait before checking again

              • Otherwise

                Nothing happens

            Repeats for every item

          5. Step 20 · Doctly AI

            Read the converted manual

          6. Step 21 · Amazon S3

            Recheck the published file revision

          7. Step 22 · Qdrant

            Read the target vector dimensions

          8. Step 23 · Code

            Split the verified manual into passages

          9. Step 24

            Check that the edition still matches

            Follows the first path that matches

            • Edition unchanged

              1. Step 25 · LocalAI

                Embed the passages with LocalAI

              2. Step 26 · Code

                Build passage records with citations

              3. Step 27 · Qdrant

                Upsert the entire manual edition

              4. Step 28 · Code

                Verify that Qdrant finished the write

              5. Step 29 · Storage

                Save the completed edition receipt

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Choose the same Amazon S3 release prefix in the trigger and setup, and use a new file key for every public PDF edition up to 8 MB and 80,000 text characters. Connect Doctly and enter the bucket name, LocalAI embedding model and Qdrant collection in setup. Use a collection dedicated to this model with one unnamed cosine vector.

Accounts to connect

See all 419 in Operations

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template