File tree Expand file tree Collapse file tree 25 files changed +63
-53
lines changed
Expand file tree Collapse file tree 25 files changed +63
-53
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ import {
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
1010
11- import { Neo4j } from "../core/db/neo4j" ;
12- import { MiniLML6 } from "../core/embeddings/minilml6" ;
13- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1411import { PromptFactory } from "../core/prompt.factory" ;
1512import { Query } from "../core/query" ;
13+ import { Neo4j } from "../core/services/db/neo4j" ;
14+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
15+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1616import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1717
1818export class AskCodeCommand implements ISlashCommand {
Original file line number Diff line number Diff line change 88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
1010
11- import { Neo4j } from "../core/db/neo4j" ;
12- import { MiniLML6 } from "../core/embeddings/minilml6" ;
13- import { Llama3_70B } from "../core/llm/llama3_70B" ;
11+ import { Neo4j } from "../core/services/ db/neo4j" ;
12+ import { MiniLML6 } from "../core/services/ embeddings/minilml6" ;
13+ import { Llama3_70B } from "../core/services/ llm/llama3_70B" ;
1414import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1515
1616export class AskDocsCommand implements ISlashCommand {
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import {
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
1010
11- import { Neo4j } from "../core/db/neo4j" ;
11+ import { Neo4j } from "../core/services/ db/neo4j" ;
1212// import { renderDiagramToBase64URI } from "../core/diagram";
13- import { MiniLML6 } from "../core/embeddings/minilml6" ;
14- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1513import { PromptFactory } from "../core/prompt.factory" ;
1614import { Query } from "../core/query" ;
15+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
16+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1717import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1818
1919export class DiagramCommand implements ISlashCommand {
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import {
77 ISlashCommand ,
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
10- import { Neo4j } from "../core/db/neo4j" ;
11- import { MiniLML6 } from "../core/embeddings/minilml6" ;
12- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1310import { PromptFactory } from "../core/prompt.factory" ;
1411import { Query } from "../core/query" ;
12+ import { Neo4j } from "../core/services/db/neo4j" ;
13+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
14+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1515import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1616
1717export class DocumentCommand implements ISlashCommand {
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import {
77 ISlashCommand ,
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
10- import { DBNode } from "../core/db/db" ;
11- import { IDB } from "../core/db/db.types" ;
12- import { Neo4j } from "../core/db/neo4j" ;
13- import { MiniLML6 } from "../core/embeddings/minilml6" ;
1410import { Query } from "../core/query" ;
11+ import { DBNode } from "../core/services/db/db" ;
12+ import { IDB } from "../core/services/db/db.types" ;
13+ import { Neo4j } from "../core/services/db/neo4j" ;
14+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
1515import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1616
1717export class ImportanceCommand implements ISlashCommand {
Original file line number Diff line number Diff line change 88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
1010
11- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1211import { Prompt } from "../core/prompt" ;
12+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1313import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1414
1515export class TestCommand implements ISlashCommand {
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import {
77 ISlashCommand ,
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
10- import { Neo4j } from "../core/db/neo4j" ;
11- import { MiniLML6 } from "../core/embeddings/minilml6" ;
12- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1310import { PromptFactory } from "../core/prompt.factory" ;
1411import { Query } from "../core/query" ;
12+ import { Neo4j } from "../core/services/db/neo4j" ;
13+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
14+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1515import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1616
1717export class TranslateCommand implements ISlashCommand {
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import {
88 SlashCommandContext ,
99} from "@rocket.chat/apps-engine/definition/slashcommands" ;
1010import { writeFileSync } from "fs" ;
11- import { Neo4j } from "../core/db/neo4j" ;
11+ import { Neo4j } from "../core/services/ db/neo4j" ;
1212// import { renderDiagramToBase64URI } from "../core/diagram";
13- import { MiniLML6 } from "../core/embeddings/minilml6" ;
14- import { Llama3_70B } from "../core/llm/llama3_70B" ;
1513import { PromptFactory } from "../core/prompt.factory" ;
1614import { Query } from "../core/query" ;
15+ import { MiniLML6 } from "../core/services/embeddings/minilml6" ;
16+ import { Llama3_70B } from "../core/services/llm/llama3_70B" ;
1717import { handleCommandResponse } from "../utils/handleCommandResponse" ;
1818
1919export class WhyUsedCommand implements ISlashCommand {
Original file line number Diff line number Diff line change 1- import { DBNode } from "./db/db" ;
2- import { IDB } from "./db/db.types" ;
3- import { IEmbeddingModel } from "./embeddings/embeddings.types" ;
4- import { ILLMModel } from "./llm/llm.types" ;
51import { PromptFactory } from "./prompt.factory" ;
2+ import { DBNode } from "./services/db/db" ;
3+ import { IDB } from "./services/db/db.types" ;
4+ import { IEmbeddingModel } from "./services/embeddings/embeddings.types" ;
5+ import { ILLMModel } from "./services/llm/llm.types" ;
66
77export namespace Query {
88 export async function getDBNodesFromVectorQuery (
File renamed without changes.
You can’t perform that action at this time.
0 commit comments