You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
New versions of Mermaid and mermaid.ink have been released.
This broke our Pipeline rendering. Also, we cannot pin an older version of Mermaid, since we are using an external service.
My impression is that the Mermaid code we are producing is not compatible with the new version (see code below).
To Reproduce
fromhaystackimportPipelinefromhaystack.document_stores.in_memoryimportInMemoryDocumentStorefromhaystack.components.retrievers.in_memoryimportInMemoryBM25Retrieverfromhaystack.components.generatorsimportOpenAIGeneratorfromhaystack.components.builders.prompt_builderimportPromptBuilderprompt_template="""Given these documents, answer the question.Documents:{% for doc in documents %} {{ doc.content }}{% endfor %}Question: {{question}}Answer:"""retriever=InMemoryBM25Retriever(document_store=InMemoryDocumentStore())
prompt_builder=PromptBuilder(template=prompt_template)
llm=OpenAIGenerator()
rag_pipeline=Pipeline()
rag_pipeline.add_component("retriever", retriever)
rag_pipeline.add_component("prompt_builder", prompt_builder)
rag_pipeline.add_component("llm", llm)
rag_pipeline.connect("retriever", "prompt_builder.documents")
rag_pipeline.connect("prompt_builder", "llm")
rag_pipeline.draw("pipeline.png")
@TuanaCelik you are right.
If this is a problem, we can see if it makes sense/it is safe to update DLAI to 2.5.1 or otherwise release a 2.2.5 version with this fix and update DLAI to that.
Or otherwise do nothing.
Describe the bug
New versions of Mermaid and mermaid.ink have been released.
This broke our Pipeline rendering. Also, we cannot pin an older version of Mermaid, since we are using an external service.
My impression is that the Mermaid code we are producing is not compatible with the new version (see code below).
To Reproduce
Rendering
Mermaid code
The text was updated successfully, but these errors were encountered: