???? ??? ?? ????? ?????? ???? ???? ?? ????? ?? ??? ????. ?? ??? ?? ??? ???? ???? ???? ???? ?? ??? ???? ??? ????. KaibanJS? ??? ???? RAG ?? ??? ? ????? ????? ? ???? ?? AI ?? ???? ??? ???? ???.
???? RAG ?? ??? ??????
? ??? ??? HTML ?? ??? RAG(?? ?? ??)? ???? ???? ??? ?? ? ??? ??????.
?? ??:
- ??? ? ?? ??: ?? ????? ???? ? ???? ????? ?????.
- ?? ??: ??? ??? ??? ?? ??? ?? ??? ?????.
- HTML ???: ??? HTML ?? ??? ?? Cheerio? ?????.
- ??? ??: ??? ???? ??? ?? ??? ? ?? ???? ??? ??? ? ????.
KaibanJS? ?? ???? RAG ?? ??? ???? ??? ??????
? ??? KaibanJS? ???? ???? AI ????? ??? ??? ? ????.
- ??? ?? ??: ???? ? ??? ??? ???? ??? ??? ?????.
- ??? ??: ??? ??? ????? ??? ??? ?????.
- ??? ?? ??: AI ????? ??? ??? ??? ???? ??? ? ????.
???? RAG ?? ?? ????
?? ??? ???? KaibanJS ????? ???? RAG ?? ??? ?????.
1??: ??? ??? ??
KaibanJS ?? ??? ? Cheerio? ?????.
npm install @kaibanjs/tools cheerio
2??: OpenAI API ? ??
???? ??? ?????? OpenAI ??? ????? OpenAI API ?? ????.
3??: ???? RAG ?? ?? ??
?? ??? ??? ????.
import { WebsiteSearch } from '@kaibanjs/tools'; import { Agent, Task, Team } from 'kaibanjs'; // Initialize the tool const websiteSearchTool = new WebsiteSearch({ OPENAI_API_KEY: 'your-openai-api-key', url: 'https://example.com' }); // Create an agent using the tool const webAnalyst = new Agent({ name: 'Emma', role: 'Web Content Analyst', goal: 'Analyze website data using semantic search', background: 'Web Content Specialist', tools: [websiteSearchTool] }); // Define a task for the agent const websiteAnalysisTask = new Task({ description: 'Analyze {url} to answer: {query}', expectedOutput: 'Detailed answers from website content', agent: webAnalyst }); // Create a team const webSearchTeam = new Team({ name: 'Web Analysis Team', agents: [webAnalyst], tasks: [websiteAnalysisTask], inputs: { url: 'https://example.com', query: 'What are the key features of this website?' }, env: { OPENAI_API_KEY: 'your-openai-api-key' } });
??: ??? ??
???? ????? ??? ?? ??? ?? Pinecone? ?????.
import { PineconeStore } from '@langchain/pinecone'; import { Pinecone } from '@pinecone-database/pinecone'; import { OpenAIEmbeddings } from '@langchain/openai'; // ... (embeddings and pinecone setup as in original example) ... const websiteSearchTool = new WebsiteSearch({ OPENAI_API_KEY: 'your-openai-api-key', url: 'https://example.com', embeddings: embeddings, vectorStore: vectorStore });
?? ??
??? ??? ????:
-
??? URL ?? :
- ????? ???? ??? ??? ? ???? ?????? ?? ?? : ??? ??? ??? ?? ??? ? ?? ??? ??? ?????. ??? ?? ?? : ?? ? ?? ?? ?? ??
-
??
? ??? ?? ?? ??? ????? ????? ??? ?? ??? ?? AI ????? ??? ???? ? ??? ??? ??????. Kaibanjs?? ??? ???? ???? ?? ????? ??? ?? ????? ??? ?? ??? ??? ? ??? ??? ?? ????? ?? ? ??? ?????. Github? ?? ???? ??? ?????. ?????!
? ??? KaibanJS? ???? RAG ??? ???? ? ??? ?? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.

ES ??? CommonJS? ?? ???? ?? ?? ? ?? ???????. 1. Commonjs? ????????? Node.js ?? ? ??? ?????. 2.ES ??? ???????? ????? ?? ???? ??? ?????. 3. ??, ES ??? ?? ??/????? ???? ??? ??? ?????? CommonJS? Quiew/Module.exports? ???? ???? ???? ?? ? ? ????. 4. Commonjs? Express? ?? ???? Node.js ? ?????? ?? ???? ?? ???? ?? ES ??? ?? ??? ?? ??? ?? ? Node.jsv14? ?????. 5. ?? ? ? ??? ?? ??? ??? ? ????.

JavaScript? ??? ?? ????? ??? ?? ??? ??? ?? ?? ?? ????? ?? ???? ???? ?????. ??? ?? ???? ?? ??? ?? ??? ???? ???? ?? ?? ???? ???? ?????. ?? ??, ??? ? ?? ???? ??? (? : ??? null? ??) ?? ??? ????? ??????. ??? ??? ???? ??? ??? ????. closure?? ?? ??? ?? ??; ? ??? ??? ?? ?? ???? ?? ???? ????. V8 ??? ?? ???, ?? ??, ??/?? ???? ?? ??? ?? ??? ??? ????? ?? ??? ?? ??? ????. ?? ?? ???? ??? ??? ??? ??? ???? ????? ?? ?? ???? ?? ???????.

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

VAR, Let ? Const? ???? ??, ?? ? ?? ?????. 1.var? ?? ??????? ?? ???? ?? ? ??? ?????. 2. let? ?? ?? ????? ?? ?? ???? ?? ? ??? ???? ????. 3. ???? ?? ?? ???? ?? ??????? ? ?? ? ? ??? ?? ??? ?? ?? ??? ? ????. ?? const? ???? ??? ??? ? LET? ???? VAR? ???? ????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

DOM Traversal? ? ??? ?? ??? ?????. ???? ???? ??? ?????. 1. ParentNode? ???? ?? ??? ?? ???? ?? ? ????. 2. ???? ?? ?? ??? ???? ??? ?? ? ?? ?? ?? ??? ??? ??????. 3. NextElementsibling? ?? ?? ??? ?? ?? ??? ???? ??? ??? ??? ?????. ???? ?? ??, ??? ?? ?? ?? ?? ?? ????? ??? ???? ?? Brother ??? ?? ?????. ??? ??? ??? ? ??? ??? ??? ???? ?? ? ? ????.
