You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Goal and project specifications** use [LangChain](https://python.langchain.com/) to summarize, search or query documents. I'm a medical student so I need to be able to query from **tens of thousands** of documents, of different types ([Supported filetypes](#Supported-filetypes)). I also have little free time so I needed a tailor made summary feature to keep up with the news.
@@ -114,9 +117,56 @@
114
117
6. To know more about each argument supported by each filetype, `wdoc --help`
115
118
7. There is a specific recursive filetype I should mention: `--filetype="link_file"`. Basically the file designated by `--path` should contain in each line (`#comments` and empty lines are ignored) one url, that will be parsed by WDoc. I made this so that I can quickly use the "share" button on android from my browser to a text file (so it just appends the url to the file), this file is synced via [syncthing](https://github.com/syncthing/syncthing) to my browser and WDoc automatically summarize them and add them to my [Logseq](https://github.com/logseq/logseq/). Note that the url is parsed in each line, so formatting is ignored, for example it works even in markdown bullet point list.
116
119
8. If you want to make sure your data remains private here's an example with ollama: `wdoc --private --llms_api_bases='{"model": "http://localhost:11434", "query_eval_model": "http://localhost:11434"}' --modelname="ollama_chat/gemma:2b" --query_eval_modelname="ollama_chat/gemma:2b" --embed_model="BAAI/bge-m3" my_task`
117
-
9. Now say you just want to summarize a webpage: `wdoc summary --path="https://arstechnica.com/science/2024/06/to-pee-or-not-to-pee-that-is-a-question-for-the-bladder-and-the-brain/"`.
120
+
9. Now say you just want to summarize [Tim Urban's TED talk on procrastination](https://www.youtube.com/watch?v=arj7oStGLkU): `wdoc summary --path 'https://www.youtube.com/watch?v=arj7oStGLkU' --youtube_language="english" --disable_md_printing`:
121
+
> # Summary
122
+
> ## https://www.youtube.com/watch?v=arj7oStGLkU
123
+
> - The speaker, Tim Urban, was a government major in college who had to write many papers
124
+
> -*He claims* his typical work pattern for papers was:
125
+
> - Planning to spread work evenly
126
+
> - Actually procrastinating until the last minute
127
+
> - For his 90-page senior thesis:
128
+
> - Planned to work steadily over a year
129
+
> -*Actually* ended up writing 90 pages in 72 hours before the deadline
130
+
> - Pulled two all-nighters
131
+
> - Resulted in a 'very, very bad thesis'
132
+
> - Urban is now a writer-blogger for 'Wait But Why'
133
+
> - He wrote about procrastination to explain it to non-procrastinators
134
+
> -*Humorously claims* to have done brain scans comparing procrastinator and non-procrastinator brains
135
+
> - Introduces concept of 'Instant Gratification Monkey' in procrastinator's brain
136
+
> - Monkey takes control from the Rational Decision-Maker
137
+
> - Leads to unproductive activities like reading Wikipedia, checking fridge, YouTube spirals
138
+
> - Monkey characteristics:
139
+
> - Lives in the present moment
140
+
> - No memory of past or knowledge of future
141
+
> - Only cares about 'easy and fun'
142
+
> - Rational Decision-Maker:
143
+
> - Allows long-term planning and big picture thinking
144
+
> - Wants to do what makes sense in the moment
145
+
> - 'Dark Playground': where procrastinators spend time on leisure activities when they shouldn't
146
+
> - Filled with guilt, dread, anxiety, self-hatred
0 commit comments