def METHOD_NAME(docs):
    document_store = InMemoryDocumentStore(embedding_dim=768, similarity="dot_product", use_bm25=True)
    document_store.write_documents(documents=docs)
    bm25 = BM25Retriever(document_store=document_store)
    dpr = DensePassageRetriever(
        document_store=document_store,
        query_embedding_model="facebook/dpr-question_encoder-single-nq-base",
        passage_embedding_model="facebook/dpr-ctx_encoder-single-nq-base",
        use_gpu=False,
    )
    document_store.update_embeddings(dpr)
    query = "Where does Carla live?"
    join_node = JoinDocuments(join_mode="merge")
    p = Pipeline()
    p.add_node(component=bm25, name="R1", inputs=["Query"])
    p.add_node(component=dpr, name="R2", inputs=["Query"])
    p.add_node(component=join_node, name="Join", inputs=["R1", "R2"])
    results = p.run(query=query)
    assert len(results["documents"]) == 5