Skip to content

Commit

Permalink
add comment about json serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanSara committed Sep 28, 2023
1 parent ed48ccb commit 56c569d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2e/preview/pipelines/test_extractive_qa_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test_extractive_qa_pipeline(tmp_path):

qa_pipeline.draw(tmp_path / "test_extractive_qa_pipeline.png")

# TODO write to JSON to make sure it's actually serializable
serialized_pipeline = qa_pipeline.to_dict()
qa_pipeline = Pipeline.from_dict(serialized_pipeline)

Expand Down
2 changes: 2 additions & 0 deletions e2e/preview/pipelines/test_rag_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def test_bm25_rag_pipeline(tmp_path):

rag_pipeline.draw(tmp_path / "test_bm25_rag_pipeline.png")

# TODO write to JSON to make sure it's actually serializable
serialized_pipeline = rag_pipeline.to_dict()
rag_pipeline = Pipeline.from_dict(serialized_pipeline)

Expand Down Expand Up @@ -122,6 +123,7 @@ def test_embedding_retrieval_rag_pipeline(tmp_path):

rag_pipeline.draw(tmp_path / "test_embedding_rag_pipeline.png")

# TODO write to JSON to make sure it's actually serializable
serialized_pipeline = rag_pipeline.to_dict()
rag_pipeline = Pipeline.from_dict(serialized_pipeline)

Expand Down

0 comments on commit 56c569d

Please sign in to comment.