File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
ai-assistant/src/core/services Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ export class Neo4j implements IDB {
3333 // password: string
3434 ) {
3535 this . http = http ;
36- // this.baseUrl = "http://neo4j:7474";
37- // this.username = "neo4j";
38- // this.password = "strongpasswordsafe123";
39- this . baseUrl = "http://44.192.104.170:7474" ;
36+ this . baseUrl = "http://neo4j:7474" ;
4037 this . username = "neo4j" ;
41- this . password = "individuals-societies-wools" ;
38+ this . password = "strongpasswordsafe123" ;
39+ // this.baseUrl = "http://44.192.104.170:7474";
40+ // this.username = "neo4j";
41+ // this.password = "individuals-societies-wools";
4242 }
4343
4444 /**
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class MiniLML6 implements IEmbeddingModel {
4545 * @returns A promise that resolves to an array of numbers representing the embeddings for the text, or null if the generation fails.
4646 */
4747 async generate ( text : string ) : Promise < number [ ] | null > {
48- return await this . fromHuggingFace ( text ) ;
48+ // return await this.fromHuggingFace(text);
4949
5050 const res = await this . http . post ( this . baseURL , {
5151 headers : {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class Llama3_70B implements ILLMModel {
4343 * @returns {Promise<string | null> } A promise that resolves with the response string or null if no response is available.
4444 */
4545 async ask ( prompt : Prompt ) : Promise < string | null > {
46- return await this . fromHuggingFace ( prompt ) ;
46+ // return await this.fromHuggingFace(prompt);
4747
4848 const url = `${ this . baseURL } /chat/completions` ;
4949 const res = await this . http . post ( url , {
You can’t perform that action at this time.
0 commit comments