mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 04:23:35 +00:00
✨ feat(GraphRAG): enhance GraphRAG by graph community summary (#1801)
Co-authored-by: Florian <fanzhidongyzby@163.com> Co-authored-by: KingSkyLi <15566300566@163.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: yvonneyx <zhuyuxin0627@gmail.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
const path = require('path');
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
|
||||
const path = require("path");
|
||||
const nextConfig = {
|
||||
experimental: {
|
||||
esmExternals: 'loose',
|
||||
esmExternals: "loose",
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
@@ -27,30 +27,35 @@ const nextConfig = {
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: path.join(__dirname, 'node_modules/@oceanbase-odc/monaco-plugin-ob/worker-dist/'),
|
||||
to: 'static/ob-workers',
|
||||
from: path.join(
|
||||
__dirname,
|
||||
"node_modules/@oceanbase-odc/monaco-plugin-ob/worker-dist/"
|
||||
),
|
||||
to: "static/ob-workers",
|
||||
},
|
||||
],
|
||||
}),
|
||||
})
|
||||
);
|
||||
// 添加 monaco-editor-webpack-plugin 插件
|
||||
config.plugins.push(
|
||||
new MonacoWebpackPlugin({
|
||||
// 你可以在这里配置插件的选项,例如:
|
||||
languages: ['sql'],
|
||||
filename: 'static/[name].worker.js',
|
||||
}),
|
||||
languages: ["sql"],
|
||||
filename: "static/[name].worker.js",
|
||||
})
|
||||
);
|
||||
}
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
const withTM = require('next-transpile-modules')([
|
||||
'@berryv/g2-react',
|
||||
'@antv/g2',
|
||||
'react-syntax-highlighter',
|
||||
'@antv/gpt-vis',
|
||||
const withTM = require("next-transpile-modules")([
|
||||
"@berryv/g2-react",
|
||||
"@antv/g2",
|
||||
"react-syntax-highlighter",
|
||||
"@antv/g6",
|
||||
"@antv/graphin",
|
||||
"@antv/gpt-vis",
|
||||
]);
|
||||
|
||||
module.exports = withTM({
|
||||
|
Reference in New Issue
Block a user