|
18 | 18 | },
|
19 | 19 | {
|
20 | 20 | "cell_type": "code",
|
21 |
| - "execution_count": null, |
| 21 | + "execution_count": 1, |
22 | 22 | "id": "47264e32",
|
23 |
| - "metadata": {}, |
| 23 | + "metadata": { |
| 24 | + "ExecuteTime": { |
| 25 | + "end_time": "2023-02-10T12:20:23.988789Z", |
| 26 | + "start_time": "2023-02-10T12:20:23.967877Z" |
| 27 | + } |
| 28 | + }, |
24 | 29 | "outputs": [],
|
25 | 30 | "source": [
|
26 | 31 | "import logging\n",
|
|
32 | 37 | },
|
33 | 38 | {
|
34 | 39 | "cell_type": "code",
|
35 |
| - "execution_count": 1, |
| 40 | + "execution_count": 2, |
36 | 41 | "id": "0c9f4d21-145a-401e-95ff-ccb259e8ef84",
|
37 | 42 | "metadata": {
|
38 | 43 | "ExecuteTime": {
|
39 |
| - "end_time": "2023-01-30T18:22:07.383871Z", |
40 |
| - "start_time": "2023-01-30T18:22:06.922046Z" |
| 44 | + "end_time": "2023-02-10T12:20:24.908956Z", |
| 45 | + "start_time": "2023-02-10T12:20:24.537064Z" |
41 | 46 | },
|
42 | 47 | "pycharm": {
|
43 | 48 | "is_executing": true
|
|
50 | 55 | },
|
51 | 56 | {
|
52 | 57 | "cell_type": "code",
|
53 |
| - "execution_count": 2, |
| 58 | + "execution_count": 3, |
54 | 59 | "id": "b1757e8a",
|
55 | 60 | "metadata": {
|
56 | 61 | "ExecuteTime": {
|
57 |
| - "end_time": "2023-01-30T18:22:07.509759Z", |
58 |
| - "start_time": "2023-01-30T18:22:07.385881Z" |
| 62 | + "end_time": "2023-02-10T12:20:24.986059Z", |
| 63 | + "start_time": "2023-02-10T12:20:24.910787Z" |
59 | 64 | },
|
60 | 65 | "pycharm": {
|
61 | 66 | "is_executing": true
|
|
80 | 85 | },
|
81 | 86 | {
|
82 | 87 | "cell_type": "code",
|
83 |
| - "execution_count": 3, |
| 88 | + "execution_count": 4, |
84 | 89 | "id": "0a2bcc07",
|
85 | 90 | "metadata": {
|
86 | 91 | "ExecuteTime": {
|
87 |
| - "end_time": "2023-01-30T18:22:08.604548Z", |
88 |
| - "start_time": "2023-01-30T18:22:07.512307Z" |
| 92 | + "end_time": "2023-02-10T12:20:30.170536Z", |
| 93 | + "start_time": "2023-02-10T12:20:29.402794Z" |
89 | 94 | },
|
90 | 95 | "pycharm": {
|
91 | 96 | "is_executing": true
|
|
99 | 104 | },
|
100 | 105 | {
|
101 | 106 | "cell_type": "code",
|
102 |
| - "execution_count": 4, |
| 107 | + "execution_count": 5, |
103 | 108 | "id": "68cbd239-880e-41a3-98d8-dbb3fab55431",
|
104 | 109 | "metadata": {
|
105 | 110 | "ExecuteTime": {
|
106 |
| - "end_time": "2023-01-30T18:22:08.611152Z", |
107 |
| - "start_time": "2023-01-30T18:22:08.608198Z" |
| 111 | + "end_time": "2023-02-10T12:20:30.175678Z", |
| 112 | + "start_time": "2023-02-10T12:20:30.172456Z" |
108 | 113 | },
|
109 | 114 | "pycharm": {
|
110 | 115 | "is_executing": true
|
|
118 | 123 | },
|
119 | 124 | {
|
120 | 125 | "cell_type": "code",
|
121 |
| - "execution_count": 5, |
| 126 | + "execution_count": 6, |
122 | 127 | "id": "ba1558b3",
|
123 | 128 | "metadata": {
|
124 | 129 | "ExecuteTime": {
|
125 |
| - "end_time": "2023-01-30T18:22:20.150199Z", |
126 |
| - "start_time": "2023-01-30T18:22:08.613561Z" |
| 130 | + "end_time": "2023-02-10T12:20:33.735897Z", |
| 131 | + "start_time": "2023-02-10T12:20:30.404245Z" |
127 | 132 | },
|
128 | 133 | "pycharm": {
|
129 | 134 | "is_executing": true
|
|
134 | 139 | "name": "stdout",
|
135 | 140 | "output_type": "stream",
|
136 | 141 | "text": [
|
137 |
| - "> Adding chunk: \t\t\n", |
138 |
| - "\n", |
139 |
| - "What I Worked On\n", |
140 |
| - "\n", |
141 |
| - "February 2021\n", |
142 |
| - "\n", |
143 |
| - "Before col...\n", |
144 |
| - "> Adding chunk: only up to age 25 and already there are such co...\n", |
145 |
| - "> Adding chunk: clear that it was even possible. To find out, w...\n", |
146 |
| - "> Adding chunk: a name for the kind of company Viaweb was, an \"...\n", |
147 |
| - "> Adding chunk: get their initial set of customers almost entir...\n", |
148 |
| - "> Adding chunk: had smart people and built impressive technolog...\n", |
| 142 | + "INFO:root:> [build_index_from_documents] Total LLM token usage: 0 tokens\n", |
149 | 143 | "> [build_index_from_documents] Total LLM token usage: 0 tokens\n",
|
| 144 | + "INFO:root:> [build_index_from_documents] Total embedding token usage: 17621 tokens\n", |
150 | 145 | "> [build_index_from_documents] Total embedding token usage: 17621 tokens\n"
|
151 | 146 | ]
|
152 | 147 | }
|
|
157 | 152 | },
|
158 | 153 | {
|
159 | 154 | "cell_type": "code",
|
160 |
| - "execution_count": 6, |
| 155 | + "execution_count": 7, |
161 | 156 | "id": "c36cadc1",
|
162 | 157 | "metadata": {
|
163 | 158 | "ExecuteTime": {
|
164 |
| - "end_time": "2023-01-30T18:22:20.231198Z", |
165 |
| - "start_time": "2023-01-30T18:22:20.156095Z" |
| 159 | + "end_time": "2023-02-10T12:20:33.742793Z", |
| 160 | + "start_time": "2023-02-10T12:20:33.738289Z" |
166 | 161 | }
|
167 | 162 | },
|
168 | 163 | "outputs": [],
|
|
173 | 168 | },
|
174 | 169 | {
|
175 | 170 | "cell_type": "code",
|
176 |
| - "execution_count": 7, |
| 171 | + "execution_count": 8, |
177 | 172 | "id": "70b372a7",
|
178 | 173 | "metadata": {
|
179 | 174 | "ExecuteTime": {
|
180 |
| - "end_time": "2023-01-30T18:22:20.497373Z", |
181 |
| - "start_time": "2023-01-30T18:22:20.238928Z" |
| 175 | + "end_time": "2023-02-10T12:20:33.821131Z", |
| 176 | + "start_time": "2023-02-10T12:20:33.745017Z" |
182 | 177 | }
|
183 | 178 | },
|
184 | 179 | "outputs": [],
|
|
197 | 192 | },
|
198 | 193 | {
|
199 | 194 | "cell_type": "code",
|
200 |
| - "execution_count": 8, |
| 195 | + "execution_count": 9, |
201 | 196 | "id": "35369eda",
|
202 | 197 | "metadata": {
|
203 | 198 | "ExecuteTime": {
|
204 |
| - "end_time": "2023-01-30T18:22:22.963556Z", |
205 |
| - "start_time": "2023-01-30T18:22:20.504119Z" |
| 199 | + "end_time": "2023-02-10T12:20:51.328762Z", |
| 200 | + "start_time": "2023-02-10T12:20:33.822688Z" |
206 | 201 | }
|
207 | 202 | },
|
208 | 203 | "outputs": [
|
209 | 204 | {
|
210 | 205 | "name": "stdout",
|
211 | 206 | "output_type": "stream",
|
212 | 207 | "text": [
|
213 |
| - "> Top 1 nodes:\n", |
214 |
| - "> [Node 95fda200-57a3-4ec2-ad2d-32da0564ce4d] [Similarity score: 0.777002] had smart people and built impressive technology, and yet got crushed by Moore's Law. In the 1990...\n", |
215 |
| - "> Searching in chunk: doc_id: 33bf1319-d69c-48a5-a451-7a88751ce99b\n", |
216 |
| - "te...\n", |
217 |
| - "> Initial response: \n", |
218 |
| - "The author does not provide any information about what they did growing up.\n", |
219 |
| - "> [query] Total LLM token usage: 2829 tokens\n", |
| 208 | + "INFO:root:> [query] Total LLM token usage: 3841 tokens\n", |
| 209 | + "> [query] Total LLM token usage: 3841 tokens\n", |
| 210 | + "INFO:root:> [query] Total embedding token usage: 8 tokens\n", |
220 | 211 | "> [query] Total embedding token usage: 8 tokens\n"
|
221 | 212 | ]
|
222 | 213 | }
|
|
228 | 219 | },
|
229 | 220 | {
|
230 | 221 | "cell_type": "code",
|
231 |
| - "execution_count": 9, |
| 222 | + "execution_count": 10, |
232 | 223 | "id": "bedbb693-725f-478f-be26-fa7180ea38b2",
|
233 | 224 | "metadata": {
|
234 | 225 | "ExecuteTime": {
|
235 |
| - "end_time": "2023-01-30T18:22:22.990701Z", |
236 |
| - "start_time": "2023-01-30T18:22:22.969707Z" |
| 226 | + "end_time": "2023-02-10T12:20:51.337062Z", |
| 227 | + "start_time": "2023-02-10T12:20:51.330857Z" |
237 | 228 | }
|
238 | 229 | },
|
239 | 230 | "outputs": [
|
240 | 231 | {
|
241 | 232 | "data": {
|
242 | 233 | "text/markdown": [
|
243 | 234 | "<b>\n",
|
244 |
| - "The author does not provide any information about what they did growing up.</b>" |
| 235 | + "\n", |
| 236 | + "The author grew up writing short stories, programming on an IBM 1401, and building a computer kit with a friend. He also wrote simple games, a program to predict how high his model rockets would fly, and a word processor. He studied philosophy in college, but switched to AI and taught himself Lisp. He wrote a book about Lisp hacking and reverse-engineered SHRDLU. He also took art classes at Harvard and applied to art schools, but was disappointed by the lack of teaching and learning in the painting department at the Accademia. He also had experience with 19th century studio painting conventions, such as having a little stove fed with kindling and a nude model sitting as close to it as possible.</b>" |
245 | 237 | ],
|
246 | 238 | "text/plain": [
|
247 | 239 | "<IPython.core.display.Markdown object>"
|
|
257 | 249 | },
|
258 | 250 | {
|
259 | 251 | "cell_type": "code",
|
260 |
| - "execution_count": 10, |
| 252 | + "execution_count": 11, |
261 | 253 | "id": "99212d33",
|
262 | 254 | "metadata": {
|
263 | 255 | "ExecuteTime": {
|
264 |
| - "end_time": "2023-01-30T18:22:26.533275Z", |
265 |
| - "start_time": "2023-01-30T18:22:23.000258Z" |
| 256 | + "end_time": "2023-02-10T12:21:10.337294Z", |
| 257 | + "start_time": "2023-02-10T12:20:51.338718Z" |
266 | 258 | }
|
267 | 259 | },
|
268 | 260 | "outputs": [
|
269 | 261 | {
|
270 | 262 | "name": "stdout",
|
271 | 263 | "output_type": "stream",
|
272 | 264 | "text": [
|
273 |
| - "> Top 1 nodes:\n", |
274 |
| - "> [Node 95fda200-57a3-4ec2-ad2d-32da0564ce4d] [Similarity score: 0.815135] had smart people and built impressive technology, and yet got crushed by Moore's Law. In the 1990...\n", |
275 |
| - "> Searching in chunk: doc_id: 33bf1319-d69c-48a5-a451-7a88751ce99b\n", |
276 |
| - "te...\n", |
277 |
| - "> Initial response: \n", |
278 |
| - "After his time at Y Combinator, the author wrote essays and ran a forum. He also wrote about the concept of invented versus discovered and talked about space aliens. He also thanked those who read drafts of his work.\n", |
279 |
| - "> [query] Total LLM token usage: 2866 tokens\n", |
| 265 | + "INFO:root:> [query] Total LLM token usage: 3899 tokens\n", |
| 266 | + "> [query] Total LLM token usage: 3899 tokens\n", |
| 267 | + "INFO:root:> [query] Total embedding token usage: 14 tokens\n", |
280 | 268 | "> [query] Total embedding token usage: 14 tokens\n"
|
281 | 269 | ]
|
282 | 270 | }
|
|
288 | 276 | },
|
289 | 277 | {
|
290 | 278 | "cell_type": "code",
|
291 |
| - "execution_count": 11, |
| 279 | + "execution_count": 12, |
292 | 280 | "id": "1a720ad6",
|
293 | 281 | "metadata": {
|
294 | 282 | "ExecuteTime": {
|
295 |
| - "end_time": "2023-01-30T18:22:26.553482Z", |
296 |
| - "start_time": "2023-01-30T18:22:26.539893Z" |
| 283 | + "end_time": "2023-02-10T12:21:10.355872Z", |
| 284 | + "start_time": "2023-02-10T12:21:10.343486Z" |
297 | 285 | }
|
298 | 286 | },
|
299 | 287 | "outputs": [
|
300 | 288 | {
|
301 | 289 | "data": {
|
302 | 290 | "text/markdown": [
|
303 | 291 | "<b>\n",
|
304 |
| - "After his time at Y Combinator, the author wrote essays and ran a forum. He also wrote about the concept of invented versus discovered and talked about space aliens. He also thanked those who read drafts of his work.</b>" |
| 292 | + "\n", |
| 293 | + "After his time at Y Combinator, the author wrote essays, worked on Lisp, painted, and moved to England. He wrote a new Lisp called Bel, which took four years to complete. After finishing Bel, he wrote a bunch of essays and started to think about other things he could work on. He wrote an essay for himself to answer the question of how to choose what to work on, and then wrote a more detailed version for others to read. He also reflected on the exponential growth of commodity processors and the tight coupling of money and coolness in the art world. He also found a rent-stabilized apartment in New York, which was much cheaper than market price. Finally, he worked on software that could be launched as soon as it was done.</b>" |
305 | 294 | ],
|
306 | 295 | "text/plain": [
|
307 | 296 | "<IPython.core.display.Markdown object>"
|
|
340 | 329 | "name": "python",
|
341 | 330 | "nbconvert_exporter": "python",
|
342 | 331 | "pygments_lexer": "ipython3",
|
343 |
| - "version": "3.11.1" |
| 332 | + "version": "3.9.16" |
344 | 333 | }
|
345 | 334 | },
|
346 | 335 | "nbformat": 4,
|
|
0 commit comments