Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyunjun committed Feb 17, 2024
1 parent 5e9185b commit 793211a
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ __pycache__

# test file
test.py
*.md
*.pdf

git_*
Expand Down
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fseohyunjun%2Fpaper-translator&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)

# paper-translator
1. This is a paper translator(`korean`) using Langchain.
2. It automatically translates addresses or files in the form of PDF files.



### version history

#### v0.1.7 2023/12/16
- Vectorstore using pinecone

#### v0.1.6 2023/11/27
- add GPT4-Vision API

#### v0.1.5 2023/7/25
- add Youtube Script translator(using youtube-dl)

<details>
<summary>version history</summary>

#### v0.1.4 2023/7/9
- use langchain schema

#### v0.1.3 2023/6/23
- URL -> markdown
- require `brew install libmagic`

#### v0.1.2 2023/6/15
- ChatGPT API Update : gpt-3.5-turbo-16k
- token 4k -> 16k (about 3 pages cover per 1 request)

#### v0.1.1 2023/6/6
- ConstitutionalChain(test) : if output format is wrong, fix it.

#### v0.1.0 2023/6/4
- paper translator using Langchain
- preprocessing for paper (ex, split Reference)

</details>


## Usage guide
Since Langchain's llm model uses OpenAI, an OpenAI API Key is required.

```shell
# OPENAI API key
OPENAI_API_KEY="..."

# Pinecone API key
PINECONE_API_KEY="..."
PINECONE_ENVIRONEMENT="..."
```

### Install guide

```shell
git clone https://github.com/seohyunjun/paper-translator
cd paper-tanslator
python -m pip install -r ./requirements.txt
```

### Example

```commandline
python main.py --pdf https://arxiv.org/pdf/2304.06035v1.pdf --verbose 1 --outputfile ChooseYourWeapon.md
```

69 changes: 69 additions & 0 deletions utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fseohyunjun%2Fpaper-translator&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)

# paper-translator
1. This is a paper translator(`korean`) using Langchain.
2. It automatically translates addresses or files in the form of PDF files.



### version history

#### v0.1.7 2023/12/16
- Vectorstore using pinecone

#### v0.1.6 2023/11/27
- add GPT4-Vision API

#### v0.1.5 2023/7/25
- add Youtube Script translator(using youtube-dl)

<details>
<summary>version history</summary>

#### v0.1.4 2023/7/9
- use langchain schema

#### v0.1.3 2023/6/23
- URL -> markdown
- require `brew install libmagic`

#### v0.1.2 2023/6/15
- ChatGPT API Update : gpt-3.5-turbo-16k
- token 4k -> 16k (about 3 pages cover per 1 request)

#### v0.1.1 2023/6/6
- ConstitutionalChain(test) : if output format is wrong, fix it.

#### v0.1.0 2023/6/4
- paper translator using Langchain
- preprocessing for paper (ex, split Reference)

</details>


## Usage guide
Since Langchain's llm model uses OpenAI, an OpenAI API Key is required.

```shell
# OPENAI API key
OPENAI_API_KEY="..."

# Pinecone API key
PINECONE_API_KEY="..."
PINECONE_ENVIRONEMENT="..."
```

### Install guide

```shell
git clone https://github.com/seohyunjun/paper-translator
cd paper-tanslator
python -m pip install -r ./requirements.txt
```

### Example

```commandline
python main.py --pdf https://arxiv.org/pdf/2304.06035v1.pdf --verbose 1 --outputfile ChooseYourWeapon.md
```

0 comments on commit 793211a

Please sign in to comment.