Examples and guides for using the OpenAI API
add the last chunk to the list of chunks in web-qa.ipynb (#691)
ys647cda7e2df799
diff --git a/apps/web-crawl-q-and-a/web-qa.ipynb b/apps/web-crawl-q-and-a/web-qa.ipynbindex ebe39af0..87c530de 100644--- a/apps/web-crawl-q-and-a/web-qa.ipynb+++ b/apps/web-crawl-q-and-a/web-qa.ipynb@@ -780,6 +780,10 @@" chunk.append(sentence)\n"," tokens_so_far += token + 1\n","\n",+ " # Add the last chunk to the list of chunks\n",+ " if chunk:\n",+ " chunks.append(\". \".join(chunk) + \".\")\n",+ "\n"," return chunks\n"," \n","\n",