Skip to content

Commit

Permalink
Merge pull request #242 from Cloud-Code-AI/241-add-web-rag-system
Browse files Browse the repository at this point in the history
Web Rag System
  • Loading branch information
sauravpanda authored Dec 26, 2024
2 parents bd0ebc5 + 5057f7e commit 5278e0c
Show file tree
Hide file tree
Showing 28 changed files with 3,995 additions and 442 deletions.
18 changes: 17 additions & 1 deletion docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
/** @type {import('next').NextConfig} */
// import MillionLint from "@million/lint";
import path from 'path';
import { fileURLToPath } from 'url';

const __dirname = path.dirname(fileURLToPath(import.meta.url));

const nextConfig = {
webpack: (config) => {
config.module.rules.push({
test: /\.json$/,
type: 'json',
})
});

config.resolve.alias = {
...config.resolve.alias,
"sharp$": false,
"onnxruntime-node$": false,
}

config.resolve.alias['@huggingface/transformers'] = path.resolve(__dirname, 'node_modules/@huggingface/transformers');

return config
},
experimental: {
esmExternals: true // Enable ES modules
},
// i18n: {
// locales: ['en', 'es', 'fr', 'de'],
// defaultLocale: 'en',
Expand Down
Loading

0 comments on commit 5278e0c

Please sign in to comment.