To add to the collective anecdata, here Gpt 4.o does fine and Claude invents packages that don’t exist:
Question:
“Write code in Swift to use RAG and LLMs to allow users to ask questions about a document collection.
Let’s use services to get the app completed quickly.
What do you think about using Cohere for the text embedding model, and Pinecone for the vector db?”
Output (packages don’t exist):
import Cohere
import PineconeSwift
class RAGService {
private let cohere: CohereAPI
private let pinecone: Pinecone