Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/api/tools/commonTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export async function fetchDocumentation({

console.log(`Checking static paths for llms.txt in ${owner}/${repo}`);
const possibleLocations = [
"docs/content/docs/llms.txt", // New directory
"docs/docs/llms.txt", // Current default
"llms.txt", // Root directory
"docs/llms.txt", // Common docs folder
Expand Down Expand Up @@ -422,15 +423,15 @@ export async function searchRepositoryDocumentationAutoRag({
score_threshold: 0.4,
},
filters: {
type: "and",
type: "and" as const,
filters: [
{
type: "gte",
type: "gte" as const,
key: "folder",
value: `${repoPrefix}`,
},
{
type: "lte",
type: "lte" as const,
key: "folder",
value: `${repoPrefix}~`,
},
Expand Down
Loading