Search results
Jan 26, 2021 · 3. I'm learning to code and now I am on the stage of a small pet project with Sanity as a CMS. Long story short, making an API I'm trying to fetch cocktails data with votes for the cocktails. The votes are stored within persons who voted: GROQ query. *[. _type == "cocktail" &&.
Jun 7, 2024 · import logging from crewai import Agent, Task, Crew, Process from langchain.agents import Tool from langchain_experimental.utilities import PythonREPL from langchain_community.tools.ddg_search.tool import DuckDuckGoSearchRun from langchain_groq import ChatGroq # Ensure correct API key and model are set llm = ChatGroq(temperature=0, api_key="MY ...
May 5, 2024 · Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research!
Jul 29, 2024 · from llama_parse import LlamaParse from llama_index.llms.groq import Groq from llama_parse.base import ResultType, Language from llama_index.core.node_parser import MarkdownElementNodeParser parser = LlamaParse( api_key="xxx", result_type=ResultType.MD, language=Language.ENGLISH, parsing_instructions="""\ The document is an exam documents.
How do you query for a document using GROQ when the document has a value e.g. Width and you want to query for all documents that have a width value between 500 and 700 for example. It seems there isn'...
Dec 15, 2021 · 0. You have to format it like so: *[_type == "post" && categories == "SOCIAL" in categories[]->title]{. title, slug, body. } If nothing shows up then there are no posts associated with that category. Categories are also case sensitive, so make sure your capitalization is right.
Apr 4, 2022 · How to get all posts by a category slug in GROQ? You can see that a post is added to one or more categories. I would like to get all posts by a category slug to show the posts on a category page. I am new to Sanity.io's GROQ.
Apr 7, 2022 · I have a document which has an array of objects of which one of the fields is a reference to another document. The following query returns the referenced document _id and _type only, and I need other
Aug 9, 2024 · Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research!
Apr 26, 2024 · I get a 404 on the api call. It appears to be using the deprecated API. I want to know how do a fetch/curl call with latest groq.com API.