Skip to content

Commit

Permalink
Merge pull request #2 from m1ckc3b/cloudflare-workers
Browse files Browse the repository at this point in the history
Cloudflare workers
  • Loading branch information
m1ckc3b authored Apr 26, 2024
2 parents 43aa5bc + 549cfa4 commit 654f2e8
Show file tree
Hide file tree
Showing 29 changed files with 368 additions and 438 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ dist
.idea

# Finder (MacOS) folder config
.DS_Store
.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ This project is an example of how to implements a RAG Architecture with LangChai
<img src="https://upload.wikimedia.org/wikipedia/commons/5/51/LangChain_logo.svg" width="60px" height="60px"/>&nbsp;
<img src="https://www.cdnlogo.com/logos/o/38/openai.svg" width="60px" height="60px"/>&nbsp;
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/supabase/supabase-original.svg" width="60px" height="60px"/>&nbsp;
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/cloudflareworkers/cloudflareworkers-original.svg" width="60px" height="60px"/>&nbsp;
</div>
Binary file modified bun.lockb
Binary file not shown.
Binary file modified image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion index.ts

This file was deleted.

27 changes: 11 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
{
"name": "nodejs-ai-assistant",
"module": "index.ts",
"type": "module",
"scripts": {
"start": "concurrently \"cd packages/api && bun run server\" \"cd packages/front && bun run start\""
},
"workspaces": [
"packages/api",
"packages/front"
],
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
"dev": "wrangler dev src/index.ts",
"deploy": "wrangler deploy --minify src/index.ts"
},
"dependencies": {
"concurrently": "^8.2.2"
"@supabase/supabase-js": "^2.42.7",
"hono": "^4.2.7",
"htmx.org": "^1.9.12",
"langchain": "^0.1.36"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240403.0",
"wrangler": "^3.47.0"
}
}
}
25 changes: 0 additions & 25 deletions packages/api/package.json

This file was deleted.

27 changes: 0 additions & 27 deletions packages/api/src/llm/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/api/src/llm/model.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/api/src/llm/prompt.ts

This file was deleted.

60 changes: 0 additions & 60 deletions packages/api/src/llm/supabase.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/api/src/server.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/api/src/tests.rest

This file was deleted.

4 changes: 0 additions & 4 deletions packages/api/src/types/documents.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/api/src/types/requestBody.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/front/package.json

This file was deleted.

34 changes: 0 additions & 34 deletions packages/front/src/index.html

This file was deleted.

47 changes: 0 additions & 47 deletions packages/front/src/index.js

This file was deleted.

Binary file removed packages/front/src/logo-64px.png
Binary file not shown.
Empty file.
Loading

0 comments on commit 654f2e8

Please sign in to comment.