From 61b077d99518cf6605f1ec62a9714d20ed39a03b Mon Sep 17 00:00:00 2001 From: Amrit Krishnan Date: Tue, 19 Nov 2024 09:57:07 -0500 Subject: [PATCH] Add note to index.md, type ignores --- docs/source/index.md | 2 ++ eval/generate_dataset.py | 2 +- eval/generate_dataset_sc_mq.py | 2 +- eval/rag-evaluation-pipeline.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/source/index.md b/docs/source/index.md index 10a0bbf..4cd4858 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -139,6 +139,8 @@ docker run -it --network health-rec_app-network -v ` with the name of the collection you want to create. The default collection name specified in the `.env.development` file is `test`. + ```bash python3 health_rec/manage_data.py create --name OPENAI_API_KEY=$YOUR_OPENAI_API_KEY python3 health_rec/manage_data.py load --name --data_dir /data --load_embeddings diff --git a/eval/generate_dataset.py b/eval/generate_dataset.py index 14eacc2..2871e09 100644 --- a/eval/generate_dataset.py +++ b/eval/generate_dataset.py @@ -121,7 +121,7 @@ def create_synthetic_dataset( prompt = ChatPromptTemplate.from_template(query_generation_template) chain = ( - { + { # type: ignore "context": RunnablePassthrough(), "max_context_services": RunnablePassthrough(), "situation_instruction": RunnablePassthrough(), diff --git a/eval/generate_dataset_sc_mq.py b/eval/generate_dataset_sc_mq.py index fbcf990..2a1d381 100644 --- a/eval/generate_dataset_sc_mq.py +++ b/eval/generate_dataset_sc_mq.py @@ -103,7 +103,7 @@ def create_synthetic_dataset( prompt = ChatPromptTemplate.from_template(query_generation_template) chain = ( - { + { # type: ignore "context": RunnablePassthrough(), "max_context_services": RunnablePassthrough(), "situation_instruction": RunnablePassthrough(), diff --git a/eval/rag-evaluation-pipeline.py b/eval/rag-evaluation-pipeline.py index ffa6821..8701866 100644 --- a/eval/rag-evaluation-pipeline.py +++ b/eval/rag-evaluation-pipeline.py @@ -96,7 +96,7 @@ def create_synthetic_dataset( prompt = ChatPromptTemplate.from_template(query_generation_template) chain = ( - { + { # type: ignore "context": RunnablePassthrough(), "max_context_services": RunnablePassthrough(), "format_instructions": lambda _: output_parser.get_format_instructions(),