diff --git a/docs/docs/core/flow_methods.mdx b/docs/docs/core/flow_methods.mdx index 589a69ce0..356821857 100644 --- a/docs/docs/core/flow_methods.mdx +++ b/docs/docs/core/flow_methods.mdx @@ -147,7 +147,7 @@ The `cocoindex update` subcommand creates/updates data in the target. Once it's done, the target data is fresh up to the moment when the command is called. ```sh -cocoindex update main.py +cocoindex update main ``` With a `--setup` option, it will also setup the flow first if needed. @@ -220,7 +220,7 @@ Change capture mechanisms enable CocoIndex to continuously capture changes from To perform live update, run the `cocoindex update` subcommand with `-L` option: ```sh -cocoindex update main.py -L +cocoindex update main -L ``` If there's at least one data source with change capture mechanism enabled, it will keep running until aborted (e.g. by `Ctrl-C`). diff --git a/examples/code_embedding/README.md b/examples/code_embedding/README.md index aff780a3d..74aa96b59 100644 --- a/examples/code_embedding/README.md +++ b/examples/code_embedding/README.md @@ -42,13 +42,13 @@ We will match against user-provided text by a SQL query, reusing the embedding o - Setup: ```bash - cocoindex setup main.py + cocoindex setup main ``` - Update index: ```bash - cocoindex update main.py + cocoindex update main ``` - Run: diff --git a/examples/docs_to_knowledge_graph/README.md b/examples/docs_to_knowledge_graph/README.md index 3a374ceba..a45dd4ad5 100644 --- a/examples/docs_to_knowledge_graph/README.md +++ b/examples/docs_to_knowledge_graph/README.md @@ -34,13 +34,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` ### Browse the knowledge graph diff --git a/examples/fastapi_server_docker/README.md b/examples/fastapi_server_docker/README.md index dd5659ea7..bf786db49 100644 --- a/examples/fastapi_server_docker/README.md +++ b/examples/fastapi_server_docker/README.md @@ -24,13 +24,13 @@ COCOINDEX_DATABASE_URL=postgres://cocoindex:cocoindex@localhost/cocoindex - Setup: ```bash - cocoindex setup main.py + cocoindex setup main ``` - Update index: ```bash - cocoindex update main.py + cocoindex update main ``` - Run: diff --git a/examples/fastapi_server_docker/dockerfile b/examples/fastapi_server_docker/dockerfile index 619d3af36..4e97bba95 100644 --- a/examples/fastapi_server_docker/dockerfile +++ b/examples/fastapi_server_docker/dockerfile @@ -16,4 +16,4 @@ COPY . . RUN cat .env -CMD ["sh", "-c", "echo yes | cocoindex setup main.py && cocoindex update main.py && python main.py"] +CMD ["sh", "-c", "echo yes | cocoindex setup main && cocoindex update main && python main.py"] diff --git a/examples/gdrive_text_embedding/README.md b/examples/gdrive_text_embedding/README.md index 5bd7684b3..6cb4cfa74 100644 --- a/examples/gdrive_text_embedding/README.md +++ b/examples/gdrive_text_embedding/README.md @@ -51,7 +51,7 @@ Before running the example, you need to: - Setup: ```sh - cocoindex setup main.py + cocoindex setup main ``` - Run: diff --git a/examples/live_updates/README.md b/examples/live_updates/README.md index 221a62400..0977043e8 100644 --- a/examples/live_updates/README.md +++ b/examples/live_updates/README.md @@ -42,7 +42,7 @@ The script then starts a `FlowLiveUpdater`, which runs in the background and con This method is useful for managing your indexes from the command line, through CocoIndex [CLI](https://cocoindex.io/docs/core/flow_methods#cli-2). ```bash - cocoindex update main.py -L --setup + cocoindex update main -L --setup ``` 4. **Test the live updates:** diff --git a/examples/manuals_llm_extraction/README.md b/examples/manuals_llm_extraction/README.md index b2878171c..7cfda64b3 100644 --- a/examples/manuals_llm_extraction/README.md +++ b/examples/manuals_llm_extraction/README.md @@ -32,13 +32,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` ### Query the index diff --git a/examples/multi_format_indexing/README.md b/examples/multi_format_indexing/README.md index 9d69b250a..e715cea45 100644 --- a/examples/multi_format_indexing/README.md +++ b/examples/multi_format_indexing/README.md @@ -42,13 +42,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` Run: diff --git a/examples/patient_intake_extraction/README.md b/examples/patient_intake_extraction/README.md index 99a3d87e0..b25fe281a 100644 --- a/examples/patient_intake_extraction/README.md +++ b/examples/patient_intake_extraction/README.md @@ -32,13 +32,13 @@ CocoIndex supports multiple [sources](https://cocoindex.io/docs/ops/sources) and Setup index: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` Run query: diff --git a/examples/pdf_embedding/README.md b/examples/pdf_embedding/README.md index 70c605eca..1fbd077cd 100644 --- a/examples/pdf_embedding/README.md +++ b/examples/pdf_embedding/README.md @@ -36,13 +36,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` Run: diff --git a/examples/product_recommendation/README.md b/examples/product_recommendation/README.md index 87dc7a079..c2e6e7f94 100644 --- a/examples/product_recommendation/README.md +++ b/examples/product_recommendation/README.md @@ -29,13 +29,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` ### Browse the knowledge graph diff --git a/examples/text_embedding/README.md b/examples/text_embedding/README.md index c73726c78..8ce374a11 100644 --- a/examples/text_embedding/README.md +++ b/examples/text_embedding/README.md @@ -35,13 +35,13 @@ pip install -e . Setup: ```bash -cocoindex setup main.py +cocoindex setup main ``` Update index: ```bash -cocoindex update main.py +cocoindex update main ``` Run: diff --git a/examples/text_embedding_qdrant/README.md b/examples/text_embedding_qdrant/README.md index c39eaec7d..be307232a 100644 --- a/examples/text_embedding_qdrant/README.md +++ b/examples/text_embedding_qdrant/README.md @@ -41,7 +41,7 @@ We use Qdrant client to query the index, and reuse the embedding operation in th - Setup: ```bash - cocoindex setup main.py + cocoindex setup main ``` It will automatically create a collection in Qdrant. @@ -50,7 +50,7 @@ We use Qdrant client to query the index, and reuse the embedding operation in th - Update index: ```bash - cocoindex update main.py + cocoindex update main ``` - Run: