Skip to content

Commit

Permalink
Merge pull request #1 from thorwebdev/webgpu
Browse files Browse the repository at this point in the history
feat: use webgpu.
  • Loading branch information
thorwebdev authored Aug 15, 2024
2 parents dba160b + 605fdb0 commit 147c66e
Show file tree
Hide file tree
Showing 6 changed files with 1,058 additions and 510 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# In-Browser Semantic Search with Transformers.js and pglite + pgvector

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
100% in-browser Semantic Search with [Transformers.js](https://huggingface.co/docs/transformers.js), [PGlite](https://github.com/electric-sql/pglite) + [pgvector](https://github.com/pgvector/pgvector)!

## Getting Started

Expand All @@ -15,22 +15,3 @@ pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
9 changes: 0 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ const nextConfig = {

// Override the default webpack configuration
webpack: (config) => {
// Important for pglite:
config.resolve = {
...config.resolve,
fallback: {
fs: false,
module: false,
'stream/promises': false,
},
};
// Ignore node-specific modules when bundling for the browser
// See https://webpack.js.org/configuration/resolve/#resolvealias
config.resolve.alias = {
Expand Down
Loading

0 comments on commit 147c66e

Please sign in to comment.