Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miararoy committed Sep 10, 2023
1 parent 0a05477 commit 579e96b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ OPENAI_API_KEY="<OPENAI_API_KEY>"
INDEX_NAME_SUFFIX="test-index-1"
```

or set them in your shell

```bash
export PINECONE_API_KEY="<PINECONE_API_KEY>"
export PINECONE_ENVIRONMENT="<PINECONE_ENVIRONMENT>"
export OPENAI_API_KEY="<OPENAI_API_KEY>"
export INDEX_NAME_SUFFIX="test-index-1"
```

> NOTE -- the INDEX_NAME_SUFFIX and the index name you use in the CLI operaions should match (i.e. if you use `context-engine new test-index-1` in the CLI, then the INDEX_NAME_SUFFIX should be `test-index-1`). AGAIN THIS IS TEMPORARY AND WILL BECOME OBSOLETE SOON!
3. install the dependencies
Expand Down
2 changes: 1 addition & 1 deletion context_engine/service/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def cli():


@cli.command()
@click.argument('index-name-suffix', nargs=1)
@click.argument('index-name-suffix', nargs=1, envvar="INDEX_NAME_SUFFIX", type=str, required=True)
@click.option('--tokenizer-model', default="gpt-3.5-turbo", help='Tokenizer model')
def new(index_name_suffix, tokenizer_model):
click.echo(f"Context Engine is going to create a new index: {INDEX_NAME_PREFIX}{index_name_suffix}")
Expand Down

0 comments on commit 579e96b

Please sign in to comment.