Find answers from the community

Home
Members
lapexer
l
lapexer
Offline, last seen 3 months ago
Joined September 25, 2024
How to write a simple RAG in QueryPipeline of DAG ?here three modules, prompt, retriever, llm. Any comment?thx!
2 comments
l
L
CRAG pack download error,
Plain Text
llamaindex-cli download-llamapack CorrectiveRAGPack --download-dir ./corrective_rag_pack 

ValueError: Failed to find python package for class CorrectiveRAGPack
1 comment
W
https://discord.com/channels/1059199217496772688/1073670729054294197/1207845501660168232
Created a new conda env, still cannot import any thing from core.
Plain Text
conda create -n llamaindex python=3.12
conda activate llamaindex
pip install llama-index

from llama_index.core import SimpleDirectoryReader

Python 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
from llama_index.core import SimpleDirectoryReader
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamain
from llama_index.core.ingestion.data_sources import (
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/llama_index/core/ingestion/data_sources.py", line 340, in <module>
ConfigurableDataSources = build_conifurable_data_source_enum()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/llama_index/core/ingestion/data_sources.py", line 117, in build_conifurable_data_source_enum
DataSource(
File "/opt/homebrew/Caskroom/miniforge/base/envs/llamaindex/lib/python3.12/site-packages/pydantic/v1/main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for DataSource
component_type
subclass of BaseComponent expected (type=type_error.subclass; expected_class=BaseComponent)
>>>
7 comments
l
L