This repository was archived by the owner on Jul 22, 2025. It is now read-only.
"Citations" does not work. #119
Unanswered
PhilippeT3
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have an issue dealing with the API for citations, and numbering of citations. And I'd love to get some help please! =)
We asked a question about bioluminescence. We get a nice response, but we get totally wrong citations URLs.
(See code block below. Citations URLs are about semantic search instead of bioluminescence.) How can we fix this? It seems outside of my reach.
On multiple tests, we'd get responses which contains [1][4][5][6][8][9] in the text for number end notes. But notice... without 2, 3, 7, or whatever. Number seems randomly generated whether we add or not a system prompt. Any clue of the problem? Could it be related to problem 1?
Here is the raw response for problem 1:
{'id': '47eff853-1a90-4331-b040-23dfa241c698', 'model': 'sonar', 'created': 1737662050, 'usage': {'prompt_tokens': 4615, 'completion_tokens': 273, 'total_tokens': 4888}, 'citations': ['https://www.kdnuggets.com/semantic-search-with-vector-databases', 'https://www.timescale.com/learn/vector-search-vs-semantic-search', 'https://opster.com/guides/opensearch/opensearch-machine-learning/introduction-to-vector-search/', 'https://rockset.com/blog/introduction-to-semantic-search-embeddings-similarity-metrics-vector-dbs/', 'https://cohere.com/llmu/what-is-semantic-search'], 'object': 'chat.completion', 'choices': [{'index': 0, 'finish_reason': 'stop', 'message': {'role': 'assistant', 'content': "If you're interested in learning more about bioluminescence, here are some suggestions:\n\n1. Biological Mechanism: Bioluminescence involves a chemical reaction that converts chemical energy into light energy. This process is highly efficient and is used by various organisms for purposes like attracting prey or communicating with other organisms. For more information, you can explore scientific articles or educational resources on bioluminescence.\n\n2. Examples of Bioluminescent Organisms: \n - Fireflies: Use bioluminescence to attract mates.\n - Glowworms: Produce light to lure prey.\n - Deep-Sea Fish: Some species have bioluminescent lures to attract prey in dark environments.\n\n3. Applications of Bioluminescence: \n - Medical Research: Bioluminescent markers are used to track biological processes in real-time.\n - Environmental Monitoring: Bioluminescent organisms can serve as indicators of pollution levels.\n\n4. Reputable Sources: You can explore resources like [National Geographic](https://www.nationalgeographic.org/) or [Scientific American](https://www.scientificamerican.com/) for detailed articles and insights into bioluminescence. Additionally, academic journals like [Nature](https://www.nature.com/) often publish research on this topic."}, 'delta': {'role': 'assistant', 'content': ''}}]}
Beta Was this translation helpful? Give feedback.
All reactions