Reddit Programming
207 subscribers
1.22K photos
123K links
I will send you newest post from subreddit /r/programming
Download Telegram
Difficulties with Last.fm API: No albums found for artist
https://www.reddit.com/r/programming/comments/1gmb2si/difficulties_with_lastfm_api_no_albums_found_for/

<!-- SC_OFF -->I'm working on a music app that uses the Last.fm API to search for information about artists, albums, and songs. I'm having trouble trying to get albums from a specific artist. Logs: I have reviewed the logs and here are the relevant messages: 2024-11-03 18:02:16.531 15537-15537 ArtistAlbumsViewModel com.example.barratrasparente1 E No albums found: ArtistInfoResponse(artist=ArtistInfo(name=Ariana Grande, url=https://www.last.fm/music/Ariana+Grande, albums=null)) 2024-11-03 18:02:16.544 15537-15537 ArtistAlbumsScreen com.example.barratrasparente1 E Error loading albums: No albums found for the artist. Here is a summary of some parts of my code: API interface: kotlin interface LastFmApi { @GET("2.0/") suspend fun getArtistAlbums( @Query("method") method: String = "artist.getinfo", @Query("artist") artist: String, @Query("api_key") apiKey: String = "YOUR_API_KEY", @Query("format") format: String = "json" ): ArtistInfoResponse } ViewModel: kotlin class ArtistAlbumsViewModel : ViewModel() { fun fetchArtistAlbums(artistName: String) { viewModelScope.launch { val response = RetrofitInstance.api.getArtistAlbums(artist = artistName) if (response.artist.albums != null) { // Procesar álbumes } else { // Manejo de error } } } } Function call: Kotlin LaunchedEffect(artistName) { Log.d("ArtistAlbumsScreen", "Llamando a fetchArtistAlbums para el artista: $artistName") viewModel.fetchArtistAlbums(artistName) } <!-- SC_ON --> submitted by /u/Winter_Ice_9209 (https://www.reddit.com/user/Winter_Ice_9209)
[link] (https://github.com/camachomorales/music-player-android.git) [comments] (https://www.reddit.com/r/programming/comments/1gmb2si/difficulties_with_lastfm_api_no_albums_found_for/)
🔄 Semantic Chunking: Smarter Text Division for Better AI Retrieval
https://www.reddit.com/r/programming/comments/1gmlwi0/semantic_chunking_smarter_text_division_for/

<!-- SC_OFF -->📚 Semantic chunking is an advanced method for dividing text in RAG. Instead of using arbitrary word/token/character counts, it breaks content into meaningful segments based on context. Here's how it works: Content Analysis Intelligent Segmentation Contextual Embedding Benefits over traditional chunking: Preserves complete ideas & concepts Maintains context across divisions Improves retrieval accuracy Enables better handling of complex information This approach leads to more accurate and comprehensive AI responses, especially for complex queries. for more details read the full blog I wrote which is attached to this post. <!-- SC_ON --> submitted by /u/Diamant-AI (https://www.reddit.com/user/Diamant-AI)
[link] (https://open.substack.com/pub/diamantai/p/semantic-chunking-improving-ai-information?r=336pe4&utm_campaign=post&utm_medium=web) [comments] (https://www.reddit.com/r/programming/comments/1gmlwi0/semantic_chunking_smarter_text_division_for/)
I made a tool to improve dev experience when working with AWS Lambda and Terraform. Local execution and debugging of infrastructure deployed in to AWS.
https://www.reddit.com/r/programming/comments/1gmlxda/i_made_a_tool_to_improve_dev_experience_when/

submitted by /u/uatec (https://www.reddit.com/user/uatec)
[link] (https://github.com/uatec/teleform) [comments] (https://www.reddit.com/r/programming/comments/1gmlxda/i_made_a_tool_to_improve_dev_experience_when/)