20260202

Using a vector index

 For example, imagine you have two documents with the following contents:


"The children played joyfully in the park."

"Kids happily ran around the playground."


These two documents contain texts that are semantically related, even though different words are used. By creating vector embeddings for the text in the documents, the relation between the words in the text can be mathematically calculated.


Imagine the keywords being extracted from the document and plotted as a vector in a multidimensional space:






The distance between vectors can be calculated by measuring the cosine of the angle between two vectors, also known as the cosine similarity. In other words, the cosine similarity computes the semantic similarity between documents and a query.

By representing words and their meanings with vectors, you can extract relevant context from your data source even when your data is stored in different formats (text or image) and languages.



20260119

2026年渣打馬拉松全馬破四回憶錄:熱勝紅日光

 

破四回憶錄:熱勝紅日光

<2026年1月18日>

凌晨4:00
鬧鐘響起時,窗外溫度顯示20度——比預期高太多。心頭一沉,想起去年14度的涼爽,知道今天將是場硬仗。匆匆吞下麵包早餐,檢查裝備:五包能量膠、鹽丸、還有賽前半小時前的一條能量Bar。



清晨5:15
抵達尖沙咀,全馬半馬各組別都齊集一起,處處是人海十分熱鬧。去年被編入一組的空間已成回憶,此刻前後左右都是跑者,空氣中瀰漫著悶熱與人聲。我擠到較前位置,在開跑前十分鐘吃下第一包藍色能量膠。

6:50 鳴槍起跑
人群緩慢移動,可能是二組關係大家配速不是特猛,我感覺自己配速5:15已是快車部隊之列。我耐心調整呼吸,告訴自己:「別急,後面還長。」

Related Posts Plugin for WordPress, Blogger...