RagAgentλ κ²μ μ¦κ° μμ±(Retrieval-Augmented Generation) κΈ°λ°μ AI μμ΄μ νΈ μμ€ν μ λλ€. μ΄ λ ν¬μ§ν 리λ μΉ κ²μκ³Ό URL μ κ·Ό κΈ°λ₯μ ν΅ν©ν λνν AI μμ΄μ νΈλ₯Ό ꡬννλ μ½λλ₯Ό μ 곡ν©λλ€.
- Google κ²μ λ° μΉ νμ΄μ§ μ€ν¬λν ν΅ν©
- λ€μν AI λͺ¨λΈ μ§μ (Ollama, Hugging Face)
- 컨ν μ€νΈ κ΄λ¦¬ λ° μΊμ± μμ€ν
- νμ₯ κ°λ₯ν λꡬ μν€ν μ²
- λ‘κΉ λ° νμ€ν 리 μΆμ
git clone https://github.com/username/RagAgent.git
cd RagAgent
pip install -r requirements.txtconfig/config.json νμΌμ μμ νμ¬ μ¬μ©ν λͺ¨λΈκ³Ό μ€μ μ λ³κ²½ν μ μμ΅λλ€:
{
"platform": "ollama", # or HuggingFace
"model_path": "your_model_path",
"max_context": 100000
}-
src/tools/tool.pyλ₯Ό μμ νμ¬ μλ‘μ΄ λꡬ κΈ°λ₯μ ꡬνν μ μμ΅λλ€. -
config/tools.jsonνμΌμ μμ νμ¬ μμ΄μ νΈκ° μ¬μ©ν λꡬλ₯Ό μΆκ°νκ±°λ μμ ν μ μμ΅λλ€. -
νμ¬ κ²μ κΈ°λ₯μ SERP APIλ₯Ό νμ©νμ¬ κ΅¬νλμ΄ μμΌλ, νμμ λ°λΌ λ€λ₯Έ κ²μ APIλ‘ λ체νμ¬ μ¬μ©ν μ μμ΅λλ€.
src/tools/tool.pyμWebToolν΄λμ€λ₯Ό μμ νμ¬ μνλ κ²μ μμ§μ΄λ APIλ‘ λ³κ²½ κ°λ₯ν©λλ€.
python src/run.pyμμΈν μ¬μ©λ²μ μμ€μ½λμ μ£Όμμ μ°Έκ³ νμΈμ.
μ΄ νλ‘μ νΈλ λ€μ μ€νμμ€ λΌμ΄λΈλ¬λ¦¬λ€μ νμ©ν©λλ€:
- Ollama
- Hugging Face Transformers
- BeautifulSoup
- SerpAPI
μ΄ νλ‘μ νΈμ μ½λλ MIT Licenseμ λ°λΌ λ°°ν¬λ©λλ€:
MIT License
Copyright (c) 2024 RagAgent Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
λ¨, μ΄ νλ‘μ νΈμ ν¬ν¨λ μΈλΆ λΌμ΄λΈλ¬λ¦¬λ€μ κ°κ°μ λΌμ΄μΌμ€λ₯Ό λ°λ¦ λλ€.