MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getDocuments

Method getDocuments

packages/llm/src/langchain.ts:219–225  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

217 }
218
219 private static async getDocuments(url: string) {
220 const dir = `.db/crawl/${StringUtils.clean(url)}`;
221 const files = await FileStore.read({ dir });
222 return files.map(({ content }) => {
223 return new Document(JSON.parse(content));
224 });
225 }
226
227 @measure
228 static async generateQuestionAnswerSummary(input: string[]) {

Callers 1

crawlToStoreMethod · 0.95

Calls 3

cleanMethod · 0.80
readMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected