Skip to content

Commit

Permalink
Add note to index.md, type ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit110 committed Nov 19, 2024
1 parent a54c225 commit 61b077d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ docker run -it --network health-rec_app-network -v <path_to_data_dir_with_json_f

Then we can run the following commands to upload the data to the vector database:

**Note**: Replace `<collection_name>` 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 <collection_name>
OPENAI_API_KEY=$YOUR_OPENAI_API_KEY python3 health_rec/manage_data.py load --name <collection_name> --data_dir /data --load_embeddings
Expand Down
2 changes: 1 addition & 1 deletion eval/generate_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion eval/generate_dataset_sc_mq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion eval/rag-evaluation-pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 61b077d

Please sign in to comment.