Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/core/flow_methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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`).
Expand Down
4 changes: 2 additions & 2 deletions examples/code_embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/docs_to_knowledge_graph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/fastapi_server_docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/fastapi_server_docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion examples/gdrive_text_embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Before running the example, you need to:
- Setup:

```sh
cocoindex setup main.py
cocoindex setup main
```

- Run:
Expand Down
2 changes: 1 addition & 1 deletion examples/live_updates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand Down
4 changes: 2 additions & 2 deletions examples/manuals_llm_extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/multi_format_indexing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/patient_intake_extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/pdf_embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/product_recommendation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/text_embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/text_embedding_qdrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down