Skip to content

Commit

Permalink
Merge pull request #36 from MKhalusova/polishing-derek's-notebook
Browse files Browse the repository at this point in the history
updates to Derek's notebook
  • Loading branch information
MKhalusova committed Feb 19, 2024
2 parents fe78cf0 + b445e26 commit 6e7fb43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
4 changes: 2 additions & 2 deletions notebooks/en/_toctree.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- title: Open-Source AI Cookbook
sections:
- local: automatic_embedding_tei_inference_endpoints
title: Automatic Embeddings with TEI through Inference Endpoints
- local: index
title: Open-Source AI Cookbook
- local: automatic_embedding_tei_inference_endpoints
title: Automatic Embeddings with TEI through Inference Endpoints
- local: faiss_with_hf_datasets_and_clip
title: Embedding multimodal data for similarity search
- local: fine_tuning_code_llm_on_single_gpu
Expand Down
27 changes: 4 additions & 23 deletions notebooks/en/automatic_embedding_tei_inference_endpoints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"metadata": {},
"source": [
"# How to use Inference Endpoints to Embed Documents\n",
"[Derek Thomas](https://huggingface.co/derek-thomas)\n",
"[LinkedIn](https://www.linkedin.com/in/dthomas/)\n",
"[Blog](https://datavistics.github.io)\n",
"\n",
"_Authored by: [Derek Thomas](https://huggingface.co/derek-thomas)_\n",
"\n",
"## Goal\n",
"I have a dataset I want to embed for semantic search (or QA, or RAG), I want the easiest way to do embed this and put it in a new dataset.\n",
Expand Down Expand Up @@ -37,22 +36,12 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "35386f72-32cb-49fa-a108-3aa504e20429",
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m A new release of pip is available: \u001B[0m\u001B[31;49m23.0.1\u001B[0m\u001B[39;49m -> \u001B[0m\u001B[32;49m23.3.1\u001B[0m\n",
"\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m To update, run: \u001B[0m\u001B[32;49mpip install --upgrade pip\u001B[0m\n"
]
}
],
"outputs": [],
"source": [
"!pip install -q aiohttp==3.8.3 datasets==2.14.6 pandas==1.5.3 requests==2.31.0 tqdm==4.66.1 huggingface-hub>=0.20"
]
Expand Down Expand Up @@ -806,14 +795,6 @@
"else:\n",
" print('Delete Endpoint in manually') "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5db1b1c3-16c3-403a-9472-a97e730826d5",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 6e7fb43

Please sign in to comment.