In ancient times, there were stories and legends about fairy worship and cowherd and weaver girl, which reflected the weaving pattern of men and women in agricultural society. In the Han Dynasty, this legend emphasized that the Weaver Girl was the granddaughter of the Emperor of Heaven. Among the existing figures, the earliest record of personal identity is the Historical Records of the Han Dynasty: "Weaver Girl, Goddess Sun Ye."
"Cowherd and Weaver Girl" originated from the worship of the stars by the ancients, and it was the result of the deification and personification of the stars in the sky by the ancients. Altair is located in the east of the Milky Way, Vega is located in the west of the Milky Way, and the two stars face each other across the river, which makes people have endless reverie. The traditional festival related to the Weaver Girl is Valentine's Day in China. Ge Hong's Miscellanies of Xijing in the Eastern Jin Dynasty recorded that "women in the Han Dynasty often wore seven-hole needles on July 7 in the building, and everyone did it". This is the earliest record of begging for cleverness that we have seen in the existing literature, so people think that the custom of begging for cleverness originated from the Han Dynasty according to the records in Xijing Miscellanies.