-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e9185b
commit 793211a
Showing
3 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ __pycache__ | |
|
||
# test file | ||
test.py | ||
*.md | ||
|
||
git_* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[](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 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[](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 | ||
``` | ||
|