treygrainger / ai-powered-search

The codebase for the book "AI-Powered Search" (Manning Publications, 2024)
https://aipoweredsearch.com
152 stars 37 forks source link

`ch6/bonus.related-terms-from-documents`, `ch6/synonym detection-v2.ipynb` & `ch6/RelatedKeywords-Samples` has missing code #90

Closed alexott closed 7 months ago

alexott commented 11 months ago

Cell 4 uses a variable that isn't defined

aggr_signals = aggr_signals[aggr_signals["count"] > 1]
aggr_signals.shape[0]

gives

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 aggr_signals = aggr_signals[aggr_signals["count"] > 1]
      2 aggr_signals.shape[0]

NameError: name 'aggr_signals' is not defined
treygrainger commented 8 months ago

ch6/synonym detection-v2.ipynb & ch6/RelatedKeywords-Samples were old notebooks. I've removed them. The bonus one I was planning to keep just as extra useful code, but will take a look at it to see if it's worth keeping, as it's not referenced in the manuscript and may not be worth the effort.

alexott commented 7 months ago

fixed