there are some extensive notebooks in the docs
This one is probably a good example
https://colab.research.google.com/drive/1UoPcoiA5EOBghxWKWduQhChliMHxla7U?usp=sharingBut also, hugginface can be a bit annyoing to setup. If you have limited resources, I also like using ollama for the LLM and huggingface for embeddings
service_context = ServiceContext(
llm=Ollama(model="mistral", request_timeout=300.0),
embed_model=HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5")
)