Check the supported dimensions of a vector column
Convert a column into using only one dimension
Get all rows when
sourcetype
isn’t given (by :source
). Otherwise, get only rows where sourcetype
is givenNếu
DELETE
mà doc ko tồn tại thì vẫn ok. Khi ấy result.rowcount
ra 0 (cái này là row affected)Could not locate column in row for column 'status’
Có nghĩa là lúc
SELECT ....
thiếu đi “status”. Thêm nó vào là ok.After removing a row, the foreign IDs in other places will be automatically deleted (the tables related to the ID in this table will also be deleted)
sqlalchemy.exc.ResourceClosedError: This result object is closed
You may only call
first()
once on a result set. after that, it's closed!Convert a result to a list of dict
Add a new column
is_faq
to the document
table. If the create_date
is after "2024-06-04" and the text
column contains "Question: <any>, Answer: <any>", set is_faq
to True; otherwise, set it to False.Only get column
text
if includeContent=true
. If onlyFaqs=true
, get all rows, otherwise, get only rows where is_faq=TRUE