Created
January 30, 2025 10:13
-
-
Save cenrak/097c9139009437b686811ba950e1ffba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from llama_index.core import ( | |
| VectorStoreIndex, | |
| SimpleDirectoryReader, | |
| ) | |
| documents = SimpleDirectoryReader("data").load_data() | |
| index = VectorStoreIndex.from_documents(documents) | |
| query_engine = index.as_query_engine(similarity_top_k=10) |
Author
Author
retriever = index.as_retriever()
retriever.retrieve('كيف اقدم تظلم على قرارات الترسية؟')
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#r = query_engine.query(' أجب باللغة العربية.اجعل الجواب مكتوب بشكل شعر عربي و باسلوب امرؤ القيس. كيف اقدم تظلم على قرارات الترسية؟')