Description
Here is what I would like to do for a RAG system using weaviate.
- Add a data field to say metadata.
- Able to retriver all documents in ascending date order.
How would one go about doing this?
Thank you
Here is what I would like to do for a RAG system using weaviate.
How would one go about doing this?
Thank you
hi! Check how to do sorting in our documentation:
for instance:
from weaviate.classes.query import Sort
response = questions.query.fetch_objects(
# Note: To sort by multiple properties, chain the relevant `by_xxx` methods.
sort=Sort.by_property(name="points", ascending=False).by_property(name="answer", ascending=True),
limit=3
)
Let me know if this helps.
Thanks!