Note Assumed that you are inside the src
folder of the dev-branch
.
Your pwd should look like this .../src/
- Install Poetry
# Install the poetry package
pip install poetry
- Install all the dependencies
# Poetry installs all the required dependencies
poetry install
- Run the module
# to store the data
python src/data_extraction.py --max_results 50 --days 50
# to run the "recommender" module
python src/recommender.py --query "Attention mechanism, gpt"
# to run the "user" module
python -m user "Attention mechanism, gpt"
- Expected Output
[(40, 0.07523317245996379), (30, 0.0645704279199833), (68, 0.019730676950393673), (66, 0.01706847010186102), (88, 0.01676402091510068), (9, 0.015864706383126106), (5, 0.012539847098876067), (2, 0.011670485300686375), (84, 0.009874931918079605), (51, 0.009075828413454008)]
(40, 0.07523317245996379)
Index 0 i.e 40:
Index of the document.Index 1 i.e 0.075:
Similarity score of thequery
wrt to thedocument
at that position.