Hi,
I am new to RAG and basically I pulled an article from about SQL Injection from Wikipedia and wrote the code following the llama index tutorials from deeplearning
documents = SimpleDirectoryReader(
input_files = ["./docs/sql-injection.txt"]
).load_data()
document = Document(text="\n\n".join([doc.text for doc in documents]))
sentence_index = build_sentence_window_index(
document,
llm,
embed_model="local:BAAI/bge-small-en-v1.5",
save_dir="sentence_index"
)
sentence_window_engine = get_sentence_window_query_engine(sentence_index)
window_response = sentence_window_engine.query("""
what is sql injection?
""")
print(str(window_response))
And it return me
The context does not provide information on what SQL injection is.What is happening here?
When I pass it research paper in pdf format. It reads the pdf and returns me the answer. What's wrong with SQL_injection.txt scenario?