I think the following link that is in the openAI cookbook covers this quite well. Assistants API Overview (Python SDK) | OpenAI Cookbook
And of course also this https://platform.openai.com/docs/assistants/quickstart
Have you looked into this at all?