Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(langchain): add langchain application chat pdf #10575

Merged
merged 1 commit into from
Aug 22, 2023
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fluent-bit/write-dummy-log-to-kafka/data
grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
# hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/.static-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
poetry run poe static-type-check-python -- --package=hm-airflow
poetry run poe static-type-check-python -- --package=hm-kubeflow.pipelines.calculate
poetry run poe static-type-check-python -- --package=hm-kubeflow.pipelines.classify-mnist
poetry run poe static-type-check-python -- --package=hm-langchain.applications.chat-pdf
poetry run poe static-type-check-python -- --package=hm-locust
poetry run poe static-type-check-python -- --package=hm-mlflow.experiments.classify-mnist
poetry run poe static-type-check-python -- --package=hm-mlflow.experiments.predict-diabetes
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fluent-bit/write-dummy-log-to-kafka/data
# grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down Expand Up @@ -120,4 +121,3 @@ web/coverage
web/public/sitemap.xml
web/storybook-static
web/tmp

1 change: 1 addition & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"grafana/hm-panel-plugin/.config",
"graph-neural-network/dataset",
"graph-neural-network/wandb",
"hm-langchain/applications/*/data",
"hm-keydb/dump.rdb",
"hm-keydb/modules",
"hm-mlflow/experiments/*/data",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fluent-bit/write-dummy-log-to-kafka/data
grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ AllCops:
- 'grafana/hm-panel-plugin/.config/**/*'
- 'graph-neural-network/dataset/**/*'
- 'graph-neural-network/wandb/**/*'
- 'hm-langchain/applications/*/data/**/*'
- 'hm-keydb/dump.rdb'
- 'hm-keydb/modules/**/*'
- 'hm-mlflow/experiments/*/data/**/*'
Expand Down
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ exclude = [
"grafana/hm-panel-plugin/.config",
"graph-neural-network/dataset",
"graph-neural-network/wandb",
"hm-langchain/applications/*/data",
"hm-keydb/dump.rdb",
"hm-keydb/modules",
"hm-mlflow/experiments/*/data",
Expand Down
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fluent-bit/write-dummy-log-to-kafka/data
grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ fluent-bit/write-dummy-log-to-kafka/data
grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down
1 change: 1 addition & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ ignore: |
grafana/hm-panel-plugin/.config
graph-neural-network/dataset
graph-neural-network/wandb
hm-langchain/applications/*/data
hm-keydb/dump.rdb
hm-keydb/modules
hm-mlflow/experiments/*/data
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ static-type-check-python:
poetry run poe static-type-check-python -- --package=hm-airflow
poetry run poe static-type-check-python -- --package=hm-kubeflow.pipelines.calculate
poetry run poe static-type-check-python -- --package=hm-kubeflow.pipelines.classify-mnist
poetry run poe static-type-check-python -- --package=hm-langchain.applications.chat-pdf
poetry run poe static-type-check-python -- --package=hm-locust
poetry run poe static-type-check-python -- --package=hm-mlflow.experiments.classify-mnist
poetry run poe static-type-check-python -- --package=hm-mlflow.experiments.predict-diabetes
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The diagram illustrates the repository's architecture, which is considered overl

(The diagram here may take a moment to load. Please wait patiently.)

![Architecture](https://github.com/hongbo-miao/hongbomiao.com/assets/3375461/6954cd1e-af89-4c91-83bb-c9f6409dd6ad)
![Architecture](https://github.com/hongbo-miao/hongbomiao.com/assets/3375461/1992a3c5-3c30-491b-9c52-4f84135b4b32)

## 📦 Setup

Expand Down Expand Up @@ -157,6 +157,7 @@ make kubernetes-clean
- **Tenacity** - General-purpose retrying library
- **pytest** - Unit testing
- **pydantic** - Data validation
- **pypdf** - PDF library
- **Poetry** - Python package management
- **Poe the Poet** - Poetry task runner

Expand Down Expand Up @@ -213,6 +214,7 @@ make kubernetes-clean
- **Prometheus** - Time-series database
- **Apache Cassandra** - Distributed wide-column NoSQL database
- **Qdrant** - Distributed vector database
- **Chroma** - Distributed vector database
- **Dgraph** - Distributed graph database
- **Elasticsearch** - Distributed document-oriented search engine
- **Kibana** - Elasticsearch visualization
Expand Down Expand Up @@ -270,6 +272,8 @@ make kubernetes-clean
- **Metabase** - Data visualization
- **PyTorch** - Machine learning framework
- **PyTorch Geometric** - PyTorch geometric deep learning extension
- **LangChang** - Large language model (LLM) framework
- **GPT4All** - Large language models
- **OGB** - Open graph benchmark
- **Rasa** - Machine learning framework for automated text and voice-based conversations
- **CML** - Continuous machine learning
Expand Down
13 changes: 13 additions & 0 deletions hm-langchain/applications/chat-pdf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
poetry-env-use:
poetry env use 3.11
poetry-update-lock-file:
poetry lock --no-update
poetry-install:
poetry install --no-root
poetry-add:
poetry add xxx
poetry-add-dev:
poetry add xxx --group=dev

poetry-run-dev:
poetry run poe dev
Empty file.
Loading