generated from nhcarrigan/template
fix: maybe this?
This commit is contained in:
+13
-7
@@ -64,15 +64,21 @@ export const ai = async(
|
|||||||
if (queryString !== null) {
|
if (queryString !== null) {
|
||||||
const database = new PrismaClient();
|
const database = new PrismaClient();
|
||||||
const data = await database.$runCommandRaw({
|
const data = await database.$runCommandRaw({
|
||||||
$search: {
|
aggregate: "Documentation",
|
||||||
index: "docs",
|
cursor: {},
|
||||||
text: {
|
pipeline: [
|
||||||
path: {
|
{
|
||||||
wildcard: "*",
|
$search: {
|
||||||
|
index: "searchProducts",
|
||||||
|
text: {
|
||||||
|
path: {
|
||||||
|
wildcard: "*",
|
||||||
|
},
|
||||||
|
query: queryString,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
query: queryString,
|
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
});
|
});
|
||||||
parsedPrompt = parsedPrompt.replace(
|
parsedPrompt = parsedPrompt.replace(
|
||||||
"{{context}}",
|
"{{context}}",
|
||||||
|
|||||||
Reference in New Issue
Block a user