Rerank Pinecone knowledge search results with Cohere

Return the top three matching knowledge passages after a Pinecone vector search and a Cohere relevance check.

9 stepsProductivity

Free to start, no card required.

How it works

  1. When this happens

    Run an internal knowledge search

    Manual Trigger

  2. Step 1 · Code

    Set the question and text field

  3. Step 2 · Cohere

    Embed the search question

  4. Step 3 · Code

    Verify the query vector

  5. Step 4 · Pinecone

    Retrieve matching knowledge passages

  6. Step 5 · Code

    Prepare the retrieved passages

  7. Step 6

    Check for passages to rank

    Follows the first path that matches

    • Passages found

      1. Step 7 · Cohere

        Rerank the passages

      2. Step 8 · Code

        Return the ranked source passages

    • Otherwise

      Nothing happens

Before you start

Enter the search question and the metadata key containing the passage text. Select a Pinecone index and namespace built with Cohere embed-v4.0 using 1536 dimensions. Run the flow on demand and read the ranked passages in its final step.

Accounts to connect

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