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) {
|
||||
const database = new PrismaClient();
|
||||
const data = await database.$runCommandRaw({
|
||||
$search: {
|
||||
index: "docs",
|
||||
text: {
|
||||
path: {
|
||||
wildcard: "*",
|
||||
aggregate: "Documentation",
|
||||
cursor: {},
|
||||
pipeline: [
|
||||
{
|
||||
$search: {
|
||||
index: "searchProducts",
|
||||
text: {
|
||||
path: {
|
||||
wildcard: "*",
|
||||
},
|
||||
query: queryString,
|
||||
},
|
||||
},
|
||||
query: queryString,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
parsedPrompt = parsedPrompt.replace(
|
||||
"{{context}}",
|
||||
|
||||
Reference in New Issue
Block a user