Feat: 实现知识图谱数据库的检索方法,并对外提供接口

This commit is contained in:
2026-04-13 15:21:54 +08:00
parent 6764095ed1
commit 258e5d21f9
8 changed files with 339 additions and 277 deletions
+4 -1
View File
@@ -40,7 +40,10 @@ type Config struct {
}
func Load() (*Config, error) {
if err := godotenv.Load("../config/.env"); err != nil {
var err error
err = godotenv.Load("../config/.env")
err = godotenv.Load("./config/.env")
if err != nil {
return nil, fmt.Errorf("error loading .env file: %w", err)
}