{"createdAt":"2024-07-07T12:17:31.634Z","updatedAt":"2024-10-25T20:03:46.052Z","id":"zGnRcHR1stcreqZM","name":"Grocq with Redis + Supabase","active":true,"nodes":[{"parameters":{"options":{},"requestOptions":{}},"id":"fadd999f-1222-437d-91c0-745ef8d99a61","name":"Groq Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatGroq","typeVersion":1,"position":[1040,520],"credentials":{"groqApi":{"id":"u4SobGEjjuXQixeQ","name":"Groq account"}}},{"parameters":{},"id":"5aabb27f-ba4e-43b2-9433-5724fa9141f1","name":"Question and Answer Chain","type":"@n8n/n8n-nodes-langchain.chainRetrievalQa","typeVersion":1.3,"position":[740,300]},{"parameters":{"requestOptions":{}},"id":"387d2a2c-dc1f-483a-9583-a3e0382d444e","name":"Vector Store Retriever","type":"@n8n/n8n-nodes-langchain.retrieverVectorStore","typeVersion":1,"position":[740,500]},{"parameters":{"options":{"endpointUrl":""},"requestOptions":{}},"id":"7cda3952-6dc7-4d6a-bdef-c3730232c170","name":"Embeddings HuggingFace Inference","type":"@n8n/n8n-nodes-langchain.embeddingsHuggingFaceInference","typeVersion":1,"position":[820,800],"credentials":{"huggingFaceApi":{"id":"sG1DWgbq7Q3simy5","name":"HuggingFaceApi account"}}},{"parameters":{"sessionIdType":"customKey","sessionKey":"test-c99ec669-866e-4437-86d5-32584de03cfb","requestOptions":{}},"id":"ce08f3b6-4a5f-41e8-95ba-f0d1eac08dc7","name":"Redis Chat Memory1","type":"@n8n/n8n-nodes-langchain.memoryRedisChat","typeVersion":1.2,"position":[1060,800],"credentials":{"redis":{"id":"wWb5QYSGlU3ORgUe","name":"Redis account"}}},{"parameters":{"public":true,"initialMessages":"Tu parles avec un agent conversationnel à double mémoire :\n- apprentissage RAG de la spéléologie\n- mémoire des précédentes conversations","options":{"inputPlaceholder":"Tapez votre question...","loadPreviousSession":"memory","responseMode":"lastNode","showWelcomeScreen":true,"getStarted":"Nouvelle conversation","subtitle":"🗣️ IA Vecteur RAG + Mémoire Redis 🚀","title":"https://n8n.ia86.cc"}},"id":"a3b85900-1ea9-4119-b693-af0d48a767cd","name":"When chat message received","type":"@n8n/n8n-nodes-langchain.chatTrigger","typeVersion":1,"position":[460,300],"webhookId":"a03c26d4-7eaa-4f8d-a0c5-978ddde578df"},{"parameters":{"promptType":"define","text":"={{ $node['When chat message received'].json.chatInput }}","options":{"systemMessage":"=Dans ta base de données personnelle de connaissance, tu disposer de cette réponse \"{{ $json.response.text }}\". Prend la en considération si elle apporte des informations supplémentaires sinon ignore là. Lorsque tu fais référence au texte que l'on t'a fournis, parle des tes connaissances personnelles.\n\nSoit bref dans ta réponse et ne répète sous aucun cas la question. Formule ta réponse en français dans un langage plutôt soutenu."}},"id":"4711e3d4-f5a2-48e4-bc56-96bfa697af76","name":"AI Agent1","type":"@n8n/n8n-nodes-langchain.agent","typeVersion":1.6,"position":[1100,300]},{"parameters":{"tableName":{"__rl":true,"value":"test-ia","mode":"list","cachedResultName":"test-ia"},"options":{}},"id":"e463cb12-4fd1-4818-a347-51b0af5c53bd","name":"Supabase Vector Store","type":"@n8n/n8n-nodes-langchain.vectorStoreSupabase","typeVersion":1,"position":[680,660],"credentials":{"supabaseApi":{"id":"1EJp22t9h2tW0moQ","name":"Supabase account 2"}}}],"connections":{"Groq Chat Model":{"ai_languageModel":[[{"node":"Question and Answer Chain","type":"ai_languageModel","index":0},{"node":"AI Agent1","type":"ai_languageModel","index":0}]]},"Vector Store Retriever":{"ai_retriever":[[{"node":"Question and Answer Chain","type":"ai_retriever","index":0}]]},"Embeddings HuggingFace Inference":{"ai_embedding":[[{"node":"Supabase Vector Store","type":"ai_embedding","index":0}]]},"Question and Answer Chain":{"main":[[{"node":"AI Agent1","type":"main","index":0}]]},"Redis Chat Memory1":{"ai_memory":[[{"node":"When chat message received","type":"ai_memory","index":0},{"node":"AI Agent1","type":"ai_memory","index":0}]]},"When chat message received":{"main":[[{"node":"Question and Answer Chain","type":"main","index":0}]]},"Supabase Vector Store":{"ai_vectorStore":[[{"node":"Vector Store Retriever","type":"ai_vectorStore","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"806684c6-092d-414e-84a8-ace3f8c6cdef","triggerCount":2,"tags":[]}