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(example): add an example of deploying langchain application integrated with llama2 #140

Merged
merged 6 commits into from
Feb 29, 2024
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
6 changes: 6 additions & 0 deletions .changeset/beige-shoes-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@plutolang/pluto-infra": patch
"@plutolang/pluto": patch
---

feat(sdk): add a captured property `url` to resource type `function`
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"chat-bot",
"daily-joke-slack",
"quickstart",
"gpt2-hf-sagemaker"
"gpt2-hf-sagemaker",
"langchain-llama2-sagemaker"
]
}
Binary file added assets/langchain-llama2-sagemaker-arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/langchain-llama2-sagemaker-chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/langchain-llama2-sagemaker-deployment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/langchain-llama2-sagemaker-qa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/deducers/static/src/visit-fn-res.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function detectFnAccessConst(
const type = checker.getTypeOfSymbol(symbol);
if (!type.isLiteral()) {
throw new Error(
"Currently, Pluto only supports accessing constant variables with literal values that are outside the scope of a function."
`The constant variable '${symbol.name}' is not a literal. Currently, Pluto only supports accessing constant variables with literal values that are outside the scope of a function.`
);
}

Expand Down
39 changes: 39 additions & 0 deletions examples/langchain-llama2-sagemaker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

# vercel
.vercel

# compilation result
**/dist/

# pluto
**/compiled/
.pluto/**/*
!.pluto/pluto.yml
7 changes: 7 additions & 0 deletions examples/langchain-llama2-sagemaker/.pluto/pluto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
current: dev
stacks:
- configs: {}
deployed: false
name: dev
platformType: AWS
provisionType: Pulumi
Loading
Loading