only_ever_generator 8.2.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -61
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// import { database, setUp } from "./helper/mongo_helper";
|
|
7
|
-
// // import { LocalConsolidation } from "./embedding_generation/consolidation/local_consolidation";
|
|
8
|
-
// // import { embeddingsResp } from "./typology-parsed-response";
|
|
9
|
-
// // import { GlobalConsolidation } from "./embedding_generation/consolidation/global_consolidation";
|
|
10
|
-
// // import { ParseEmbeddingResponse } from "./embedding_generation/parse_embedding_response";
|
|
11
|
-
// // import { OpenAIHelper } from "./helper/openai_helper";
|
|
12
|
-
// // import { GenerateTypology } from "./typology_gen/generate_typology";
|
|
13
|
-
// // import { OpenAiService } from "./services/open_ai_service";
|
|
14
|
-
// // import { GenerateConceptFacts } from "./typology_gen/generate_concept_facts";
|
|
15
|
-
// // import { BaseParamType } from "./types/base_param_type";
|
|
16
|
-
// // import dotenv from "dotenv";
|
|
17
|
-
// import express from "express";
|
|
18
|
-
// const app = express();
|
|
19
|
-
// const port = 3000;
|
|
20
|
-
// // // import { OnlyEverGenerator } from "./bootstrap/app";
|
|
21
|
-
// // import { database, ObjectId, setUp } from "./helper/mongo_helper";
|
|
22
|
-
// // import { getPrompts } from "./services/get_prompts";
|
|
23
|
-
// // // import { BaseParamType } from "./types/base_param_type";
|
|
24
|
-
// // import { ParseCardResponse } from "./parse/parse_card_response";
|
|
25
|
-
// // import { RawTestCardResponseType } from "./types/raw_card_response_types/generated_card_response_type";
|
|
26
|
-
// export { OnlyEverGenerator };
|
|
27
|
-
// // dotenv.config();
|
|
28
|
-
// app.listen(port, () => {
|
|
29
|
-
// console.log(`Server is running on port ${port}`);
|
|
30
|
-
// });
|
|
31
|
-
// app.get("/summarize", async (req, res) => {
|
|
32
|
-
// setUp();
|
|
33
|
-
// const promptIdForSummaryCards =
|
|
34
|
-
// "pmpt_6902c30a973481968395935cc6dfa78605f50d2b01d4afbd";
|
|
35
|
-
// const sourceId = "68b114dac849a25097ed1778";
|
|
36
|
-
// const source = await database
|
|
37
|
-
// .collection("_source")
|
|
38
|
-
// .findOne({ _id: new ObjectId(sourceId) });
|
|
39
|
-
// const content = {
|
|
40
|
-
// title: source?.title,
|
|
41
|
-
// h1_headings: source?.headings,
|
|
42
|
-
// content: source?.content,
|
|
43
|
-
// };
|
|
44
|
-
// const openAiService = new OpenAiService(
|
|
45
|
-
// process.env.OPEN_AI_KEY || "",
|
|
46
|
-
// "gpt-5-mini"
|
|
47
|
-
// );
|
|
48
|
-
// const summarize = new GenerateSummaryCards(
|
|
49
|
-
// openAiService,
|
|
50
|
-
// sourceId,
|
|
51
|
-
// content,
|
|
52
|
-
// "text",
|
|
53
|
-
// promptIdForSummaryCards,
|
|
54
|
-
// false
|
|
55
|
-
// );
|
|
56
|
-
// const summaryCards = await summarize.generate();
|
|
57
|
-
// console.log(summaryCards);
|
|
58
|
-
// res.json(summaryCards);
|
|
59
|
-
// });
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnlyEverGenerator = void 0;
|
|
4
|
+
const app_1 = require("./bootstrap/app");
|
|
5
|
+
Object.defineProperty(exports, "OnlyEverGenerator", { enumerable: true, get: function () { return app_1.OnlyEverGenerator; } });
|
|
60
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;AAE3C,kGAFA,uBAAiB,OAEA"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
// import { OnlyEverGenerator } from "./bootstrap/app";
|
|
3
|
-
// import { OpenAiService } from "./services/open_ai_service";
|
|
4
|
-
// import { GenerateSummaryCards } from "./typology_gen/summarize";
|
|
5
|
-
// import { database, setUp } from "./helper/mongo_helper";
|
|
6
|
-
// // import { LocalConsolidation } from "./embedding_generation/consolidation/local_consolidation";
|
|
7
|
-
// // import { embeddingsResp } from "./typology-parsed-response";
|
|
8
|
-
// // import { GlobalConsolidation } from "./embedding_generation/consolidation/global_consolidation";
|
|
9
|
-
// // import { ParseEmbeddingResponse } from "./embedding_generation/parse_embedding_response";
|
|
10
|
-
// // import { OpenAIHelper } from "./helper/openai_helper";
|
|
11
|
-
// // import { GenerateTypology } from "./typology_gen/generate_typology";
|
|
12
|
-
// // import { OpenAiService } from "./services/open_ai_service";
|
|
13
|
-
// // import { GenerateConceptFacts } from "./typology_gen/generate_concept_facts";
|
|
14
|
-
// // import { BaseParamType } from "./types/base_param_type";
|
|
15
|
-
// // import dotenv from "dotenv";
|
|
16
|
-
// import express from "express";
|
|
17
|
-
// const app = express();
|
|
18
|
-
// const port = 3000;
|
|
1
|
+
import { OnlyEverGenerator } from "./bootstrap/app";
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
// // import { database, ObjectId, setUp } from "./helper/mongo_helper";
|
|
22
|
-
// // import { getPrompts } from "./services/get_prompts";
|
|
23
|
-
// // // import { BaseParamType } from "./types/base_param_type";
|
|
24
|
-
// // import { ParseCardResponse } from "./parse/parse_card_response";
|
|
25
|
-
// // import { RawTestCardResponseType } from "./types/raw_card_response_types/generated_card_response_type";
|
|
26
|
-
|
|
27
|
-
// export { OnlyEverGenerator };
|
|
28
|
-
// // dotenv.config();
|
|
29
|
-
|
|
30
|
-
// app.listen(port, () => {
|
|
31
|
-
// console.log(`Server is running on port ${port}`);
|
|
32
|
-
// });
|
|
33
|
-
|
|
34
|
-
// app.get("/summarize", async (req, res) => {
|
|
35
|
-
// setUp();
|
|
36
|
-
// const promptIdForSummaryCards =
|
|
37
|
-
// "pmpt_6902c30a973481968395935cc6dfa78605f50d2b01d4afbd";
|
|
38
|
-
// const sourceId = "68b114dac849a25097ed1778";
|
|
39
|
-
// const source = await database
|
|
40
|
-
// .collection("_source")
|
|
41
|
-
// .findOne({ _id: new ObjectId(sourceId) });
|
|
42
|
-
// const content = {
|
|
43
|
-
// title: source?.title,
|
|
44
|
-
// h1_headings: source?.headings,
|
|
45
|
-
// content: source?.content,
|
|
46
|
-
// };
|
|
47
|
-
// const openAiService = new OpenAiService(
|
|
48
|
-
// process.env.OPEN_AI_KEY || "",
|
|
49
|
-
// "gpt-5-mini"
|
|
50
|
-
// );
|
|
51
|
-
// const summarize = new GenerateSummaryCards(
|
|
52
|
-
// openAiService,
|
|
53
|
-
// sourceId,
|
|
54
|
-
// content,
|
|
55
|
-
// "text",
|
|
56
|
-
// promptIdForSummaryCards,
|
|
57
|
-
// false
|
|
58
|
-
// );
|
|
59
|
-
// const summaryCards = await summarize.generate();
|
|
60
|
-
// console.log(summaryCards);
|
|
61
|
-
// res.json(summaryCards);
|
|
62
|
-
// });
|
|
3
|
+
export { OnlyEverGenerator };
|