Skip to content

Commit

Permalink
bump: version 1.4.1 → 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
namuan committed Jan 29, 2023
1 parent b72cd50 commit dd34db2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.5.0 (2023-01-29)

### Feat

- Allow user to specify a different LLM instead of OpenAI

## 1.4.1 (2023-01-14)

### Fix
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Here I'm using a PDF file generated from this page [Parable of a Monetary Econom

Before running this, you need to set up your OpenAI API key. You can get it from [OpenAI](https://beta.openai.com/account/api-keys).

> From version 1.5.0, you can skip OpenAI and use HuggingFace models to generate embeddings and answers.
```shell
export OPENAI_API_KEY=<your-openai-api-key>
```
Expand All @@ -51,6 +53,12 @@ The run the following command to start the training process:
dr-doc-search --train -i ~/Downloads/parable-of-a-monetary-economy-heteconomist.pdf
```

Use `huggingface` for generating embeddings:

```shell
dr-doc-search --train -i ~/Downloads/parable-of-a-monetary-economy-heteconomist.pdf --embedding huggingface
```

The training process generates some temporary files in the `OutputDir/dr-doc-search/<pdf-name>` folder under your home directory.
Here is what it looks like:

Expand Down Expand Up @@ -89,6 +97,12 @@ Or You can open up a web interface (on port :5006) to ask questions:
dr-doc-search --web-app -i ~/Downloads/parable-of-a-monetary-economy-heteconomist.pdf
```

To use `huggingface` model, provide the `--llm` argument:

```shell
dr-doc-search --web-app -i ~/Downloads/parable-of-a-monetary-economy-heteconomist.pdf --llm huggingface
```

There are more options for choose the start and end pages for the PDF file.
See the help for more details:

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dr-doc-search"
version = "1.4.1"
version = "1.5.0"
description = "Search through a document using a chat interface"
authors = [
"namuan <[email protected]>",
Expand Down Expand Up @@ -71,7 +71,7 @@ mkdocstrings-python = "^0.8.3"

[tool.commitizen]
name = "cz_conventional_commits"
version = "1.4.1"
version = "1.5.0"
tag_format = "$version"
version_files = [
"pyproject.toml:version",
Expand Down

0 comments on commit dd34db2

Please sign in to comment.